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 files74
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- ila/
- netfilter/
- Kconfig
- Makefile
- addrconf.c
- addrconf_core.c
- addrlabel.c
- af_inet6.c
- ah6.c
- anycast.c
- calipso.c
- datagram.c
- esp6.c
- esp6_offload.c
- exthdrs.c
- exthdrs_core.c
- exthdrs_offload.c
- fib6_notifier.c
- fib6_rules.c
- fou6.c
- icmp.c
- inet6_connection_sock.c
- inet6_hashtables.c
- ip6_checksum.c
- ip6_fib.c
- ip6_flowlabel.c
- ip6_gre.c
- ip6_icmp.c
- ip6_input.c
- ip6_offload.c
- ip6_offload.h
- ip6_output.c
- ip6_tunnel.c
- ip6_udp_tunnel.c
- ip6_vti.c
- ip6mr.c
- ipcomp6.c
- ipv6_sockglue.c
- mcast.c
- mcast_snoop.c
- mip6.c
- ndisc.c
- netfilter.c
- output_core.c
- ping.c
- proc.c
- protocol.c
- raw.c
- reassembly.c
- route.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
net/ipv6/protocol.c
C · 2,126 bytes/*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* PF_INET6 protocol dispatch tables.
*
* Authors: Pedro Roque <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
/*
* Changes:
*
* Vince Laviano ([email protected]) 16 May 2001
* - Removed unused variable 'inet6_protocol_base'
* - Modified inet6_del_protocol() to correctly maintain copy bit.
*/
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/spinlock.h>
#include <net/protocol.h>
#if IS_ENABLED(CONFIG_IPV6)
struct inet6_protocol __rcu *inet6_protos[MAX_INET_PROTOS] __read_mostly;
EXPORT_SYMBOL(inet6_protos);
int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char protocol)
{
return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol],
NULL, prot) ? 0 : -1;
}
EXPORT_SYMBOL(inet6_add_protocol);
int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char protocol)
{
int ret;
ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol],
prot, NULL) == prot) ? 0 : -1;
synchronize_net();
return ret;
}
EXPORT_SYMBOL(inet6_del_protocol);
#endif
const struct net_offload __rcu *inet6_offloads[MAX_INET_PROTOS] __read_mostly;
EXPORT_SYMBOL(inet6_offloads);
int inet6_add_offload(const struct net_offload *prot, unsigned char protocol)
{
return !cmpxchg((const struct net_offload **)&inet6_offloads[protocol],
NULL, prot) ? 0 : -1;
}
EXPORT_SYMBOL(inet6_add_offload);
int inet6_del_offload(const struct net_offload *prot, unsigned char protocol)
{
int ret;
ret = (cmpxchg((const struct net_offload **)&inet6_offloads[protocol],
prot, NULL) == prot) ? 0 : -1;
synchronize_net();
return ret;
}
EXPORT_SYMBOL(inet6_del_offload);