Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files191
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- ipset/
- ipvs/
- Kconfig
- Makefile
- core.c
- nf_conncount.c
- nf_conntrack_acct.c
- nf_conntrack_amanda.c
- nf_conntrack_broadcast.c
- nf_conntrack_core.c
- nf_conntrack_ecache.c
- nf_conntrack_expect.c
- nf_conntrack_extend.c
- nf_conntrack_ftp.c
- nf_conntrack_h323_asn1.c
- nf_conntrack_h323_main.c
- nf_conntrack_h323_types.c
- nf_conntrack_helper.c
- nf_conntrack_irc.c
- nf_conntrack_labels.c
- nf_conntrack_netbios_ns.c
- nf_conntrack_netlink.c
- nf_conntrack_pptp.c
- nf_conntrack_proto.c
- nf_conntrack_proto_dccp.c
- nf_conntrack_proto_generic.c
- nf_conntrack_proto_gre.c
- nf_conntrack_proto_icmp.c
- nf_conntrack_proto_icmpv6.c
- nf_conntrack_proto_sctp.c
- nf_conntrack_proto_tcp.c
- nf_conntrack_proto_udp.c
- nf_conntrack_sane.c
- nf_conntrack_seqadj.c
- nf_conntrack_sip.c
- nf_conntrack_snmp.c
- nf_conntrack_standalone.c
- nf_conntrack_tftp.c
- nf_conntrack_timeout.c
- nf_conntrack_timestamp.c
- nf_dup_netdev.c
- nf_flow_table_core.c
- nf_flow_table_inet.c
- nf_flow_table_ip.c
- nf_internals.h
- nf_log.c
- nf_log_common.c
- nf_log_netdev.c
- nf_nat_amanda.c
- nf_nat_core.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
net/netfilter/nf_nat_tftp.c
C · 1,389 bytes/* (C) 2001-2002 Magnus Boden <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/module.h>
#include <linux/udp.h>
#include <net/netfilter/nf_conntrack_helper.h>
#include <net/netfilter/nf_conntrack_expect.h>
#include <net/netfilter/nf_nat_helper.h>
#include <linux/netfilter/nf_conntrack_tftp.h>
MODULE_AUTHOR("Magnus Boden <[email protected]>");
MODULE_DESCRIPTION("TFTP NAT helper");
MODULE_LICENSE("GPL");
MODULE_ALIAS("ip_nat_tftp");
static unsigned int help(struct sk_buff *skb,
enum ip_conntrack_info ctinfo,
struct nf_conntrack_expect *exp)
{
const struct nf_conn *ct = exp->master;
exp->saved_proto.udp.port
= ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port;
exp->dir = IP_CT_DIR_REPLY;
exp->expectfn = nf_nat_follow_master;
if (nf_ct_expect_related(exp) != 0) {
nf_ct_helper_log(skb, exp->master, "cannot add expectation");
return NF_DROP;
}
return NF_ACCEPT;
}
static void __exit nf_nat_tftp_fini(void)
{
RCU_INIT_POINTER(nf_nat_tftp_hook, NULL);
synchronize_rcu();
}
static int __init nf_nat_tftp_init(void)
{
BUG_ON(nf_nat_tftp_hook != NULL);
RCU_INIT_POINTER(nf_nat_tftp_hook, help);
return 0;
}
module_init(nf_nat_tftp_init);
module_exit(nf_nat_tftp_fini);