zephyr/subsys/net/ip
Robert Lubos 2f2c356ca7 net: tcp: Verify if IPv4/IPv6 is enabled before processing addr family
TCP processed IPv4/IPv6 packets w/o verifying first if IPv4/IPv6 is
enabled in the system. This could lead to problems especially for IPv6,
where in case it's disabled the sockaddr structure is not large enough
to accomodate IPv6 address, leading to possible out-of-bound access on
the sockaddr structure.

Fix this by adding appropriate checks where applicable.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-03-16 04:21:34 -07:00
..
6lo_private.h
6lo.c net: icmpv6: Remove in6_addr from packed structs 2021-11-25 10:46:35 -05:00
6lo.h
canbus_socket.c
canbus_socket.h
CMakeLists.txt net/tcp: Rename TCP2 to TCP 2021-11-11 07:26:41 -05:00
connection.c net: ipv6: Remove in6_addr from packed net_ipv6_hdr struct 2021-11-25 10:46:35 -05:00
connection.h
dhcpv4.c
dhcpv4.h
icmpv4.c net/icmpv4: Do not send error on a packet that was broadcasted 2021-12-21 17:12:33 +01:00
icmpv4.h
icmpv6.c net: ipv6: Remove in6_addr from packed net_ipv6_hdr struct 2021-11-25 10:46:35 -05:00
icmpv6.h net: icmpv6: Add support for Route Information option 2021-12-20 17:44:28 +01:00
igmp.c net: ipv4: Remove in_addr from packed net_ipv4_hdr struct 2021-11-25 10:46:35 -05:00
ipv4_autoconf_internal.h
ipv4_autoconf.c net: arp: Remove in_addr/in6_addr from packed net_arp_hdr struct 2021-11-25 10:46:35 -05:00
ipv4.c net: ipv4: Remove in_addr from packed net_ipv4_hdr struct 2021-11-25 10:46:35 -05:00
ipv4.h
ipv6_fragment.c net: ipv6: Remove in6_addr from packed net_ipv6_hdr struct 2021-11-25 10:46:35 -05:00
ipv6_mld.c net: icmpv6: Remove in6_addr from packed structs 2021-11-25 10:46:35 -05:00
ipv6_nbr.c net: route: Add support for route preference 2021-12-20 17:44:28 +01:00
ipv6.c net: route: Add support for route preference 2021-12-20 17:44:28 +01:00
ipv6.h net: ip: replace hardcoded NET_IPV6_FRAGMENTS_MAX_PKT with a Kconfig 2021-09-23 13:21:09 -04:00
Kconfig net: if: add default selection of first up interface 2022-03-10 13:24:03 -05:00
Kconfig.debug kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.ipv4 kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.ipv6 kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.mgmt kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.stack
Kconfig.stats
nbr.c
nbr.h
net_context.c net/tcp: Rename TCP2 to TCP 2021-11-11 07:26:41 -05:00
net_core.c net: introduce a network packet filter framework 2021-12-21 17:06:35 +01:00
net_if.c net: if: add default selection of first up interface 2022-03-10 13:24:03 -05:00
net_mgmt.c net: mgmt: Use mutex for net_mgmt_lock 2022-01-22 16:56:09 -05:00
net_pkt.c net: buf: POOL_FIXED_DEFINE explicit user data 2021-11-24 16:04:50 +02:00
net_private.h kernel: atomics: update print specifiers for atomic_t 2021-11-15 09:59:01 -05:00
net_shell.c net: shell: Fix packet leak in TCP receive handler 2022-03-11 09:21:51 +01:00
net_shell.h
net_stats.c
net_stats.h
net_tc_mapping.h
net_tc.c all: Deprecate UTIL_LISTIFY and replace with LISTIFY 2022-03-08 11:03:30 +01:00
net_timeout.c
packet_socket.c net: ip: packet_socket: fixing raw sckt IPPROTO_RAW usage 2021-09-14 08:37:36 -04:00
packet_socket.h
promiscuous.c
route.c net: ip: route: Fix log_strdup misuse 2021-12-22 12:13:55 +01:00
route.h net: route: Add support for route preference 2021-12-20 17:44:28 +01:00
tcp_internal.h net/tcp: Rename TCP2 to TCP 2021-11-11 07:26:41 -05:00
tcp_private.h net/tcp: Rename TCP2 to TCP 2021-11-11 07:26:41 -05:00
tcp.c net: tcp: Verify if IPv4/IPv6 is enabled before processing addr family 2022-03-16 04:21:34 -07:00
tcp.h net/tcp: Rename TCP2 to TCP 2021-11-11 07:26:41 -05:00
tp_priv.h
tp.c
tp.h
trickle.c kernel: workq: Fix type errors in delayable work handlers 2022-02-02 18:43:12 -05:00
udp_internal.h
udp.c
utils.c