CVE-2024-47685 netfilter: nf_reject_ipv6: fix nf_reject_ip6_tcphdr_put()
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_reject_ipv6: fix nf_reject_ip6_tcphdr_put()
syzbot reported that nf_reject_ip6_tcphdr_put() was possibly sending
garbage on the four reserved tcp bits (th->res1)
Use skb_put_zero() to clear the whole TCP header,
as done in nf_reject_ip_tcphdr_put()
BUG: KMSAN: uninit-value in nf_reject_ip6_tcphdr_put+0x688/0x6c0 net/ipv6/netfilter/nf_reject_ipv6.c:255
nf_reject_ip6_tcphdr_put+0x688/0x6c0 net/ipv6/netfilter/nf_reject_ipv6.c:255
nf_send_reset6+0xd84/0x15b0 net/ipv6/netfilter/nf_reject_ipv6.c:344
nft_reject_inet_eval+0x3c1/0x880 net/netfilter/nft_reject_inet.c:48
expr_call_ops_eval net/netfilter/nf_tables_core.c:240 [inline]
nft_do_chain+0x438/0x22a0 net/netfilter/nf_tables_core.c:288
nft_do_chain_inet+0x41a/0x4f0 net/netfilter/nft_chain_filter.c:161
nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline]
nf_hook_slow+0xf4/0x400 net/netfilter/core.c:626
nf_hook include/linux/netfilter.h:269 [inline]
NF_HOOK include/linux/netfilter.h:312 [inline]
ipv6_rcv+0x29b/0x390 net/ipv6/ip6_input.c:310
__netif_receive_skb_one_core net/core/dev.c:5661 [inline]
__netif_receive_skb+0x1da/0xa00 net/core/dev.c:5775
process_backlog+0x4ad/0xa50 net/core/dev.c:6108
__napi_poll+0xe7/0x980 net/core/dev.c:6772
napi_poll net/core/dev.c:6841 [inline]
net_rx_action+0xa5a/0x19b0 net/core/dev.c:6963
handle_softirqs+0x1ce/0x800 kernel/softirq.c:554
__do_softirq+0x14/0x1a kernel/softirq.c:588
do_softirq+0x9a/0x100 kernel/softirq.c:455
__local_bh_enable_ip+0x9f/0xb0 kernel/softirq.c:382
local_bh_enable include/linux/bottom_half.h:33 [inline]
rcu_read_unlock_bh include/linux/rcupdate.h:908 [inline]
__dev_queue_xmit+0x2692/0x5610 net/core/dev.c:4450
dev_queue_xmit include/linux/netdevice.h:3105 [inline]
neigh_resolve_output+0x9ca/0xae0 net/core/neighbour.c:1565
neigh_output include/net/neighbour.h:542 [inline]
ip6_finish_output2+0x2347/0x2ba0 net/ipv6/ip6_output.c:141
__ip6_finish_output net/ipv6/ip6_output.c:215 [inline]
ip6_finish_output+0xbb8/0x14b0 net/ipv6/ip6_output.c:226
NF_HOOK_COND include/linux/netfilter.h:303 [inline]
ip6_output+0x356/0x620 net/ipv6/ip6_output.c:247
dst_output include/net/dst.h:450 [inline]
NF_HOOK include/linux/netfilter.h:314 [inline]
ip6_xmit+0x1ba6/0x25d0 net/ipv6/ip6_output.c:366
inet6_csk_xmit+0x442/0x530 net/ipv6/inet6_connection_sock.c:135
__tcp_transmit_skb+0x3b07/0x4880 net/ipv4/tcp_output.c:1466
tcp_transmit_skb net/ipv4/tcp_output.c:1484 [inline]
tcp_connect+0x35b6/0x7130 net/ipv4/tcp_output.c:4143
tcp_v6_connect+0x1bcc/0x1e40 net/ipv6/tcp_ipv6.c:333
__inet_stream_connect+0x2ef/0x1730 net/ipv4/af_inet.c:679
inet_stream_connect+0x6a/0xd0 net/ipv4/af_inet.c:750
__sys_connect_file net/socket.c:2061 [inline]
__sys_connect+0x606/0x690 net/socket.c:2078
__do_sys_connect net/socket.c:2088 [inline]
__se_sys_connect net/socket.c:2085 [inline]
__x64_sys_connect+0x91/0xe0 net/socket.c:2085
x64_sys_call+0x27a5/0x3ba0 arch/x86/include/generated/asm/syscalls_64.h:43
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Uninit was stored to memory at:
nf_reject_ip6_tcphdr_put+0x60c/0x6c0 net/ipv6/netfilter/nf_reject_ipv6.c:249
nf_send_reset6+0xd84/0x15b0 net/ipv6/netfilter/nf_reject_ipv6.c:344
nft_reject_inet_eval+0x3c1/0x880 net/netfilter/nft_reject_inet.c:48
expr_call_ops_eval net/netfilter/nf_tables_core.c:240 [inline]
nft_do_chain+0x438/0x22a0 net/netfilter/nf_tables_core.c:288
nft_do_chain_inet+0x41a/0x4f0 net/netfilter/nft_chain_filter.c:161
nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline]
nf_hook_slow+0xf4/0x400 net/netfilter/core.c:626
nf_hook include/linux/netfilter.h:269 [inline]
NF_HOOK include/linux/netfilter.h:312 [inline]
ipv6_rcv+0x29b/0x390 net/ipv6/ip6_input.c:310
__netif_receive_skb_one_core
---truncated---
Upgrade path
15 packages: 14 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.115-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +27 more | 6.1.115-1 | Fixed |
| debian/linux(Debian 13) | < 6.11.2-1 | 6.11.2-1 | Fixed |
| debian/linux(Debian 14) | < 6.11.2-1 | 6.11.2-1 | Fixed |
| Linux kernel | < 4.19.323; < 5.4.285; < 5.10.227; < 5.15.168 +23 more | 4.19.323, 5.4.285, 5.10.227, 5.15.168, 6.1.113, 6.6.54, 6.10.13, 6.11.2, 6.12, 7a7b5a27c53b55e91eecf646d1b204e73fa4af93, 7bcbc4cda777d26c88500d973fad0d497fc8a82e, 7ea2bcfd9bf4c3dbbf22546162226fd1c14d8ad2, 9c778fe48d20ef362047e3376dee56d77f8500d4, 872eca64c3267dbc5836b715716fc6c03a18eda7, 10210658f827ad45061581cbfc05924b723e8922, af4b8a704f26f38310655bad67fd8096293275a2, dcf48ab3ca2c55b09c8f9c8de0df01c1943bc4e5, fbff87d682e57ddbbe82abf6d0a1a4a36a98afcd | Fixed |
| Microsoft azure linux | < 6.6.56.1-5 | 6.6.56.1-5 | Fixed |
| Siemens RUGGEDCOM RST2428P | < V3.2 | V3.2 | Fixed |
| Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | < V3.2 | V3.2 | Fixed |
| Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family | < V3.2 | V3.2 | Fixed |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | < V1.1.1 | V1.1.1 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-127.137 | 5.15.0-127.137 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-54.56 | 6.8.0-54.56 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1070.75 | 5.15.0-1070.75 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1066.69 | 5.15.0-1066.69 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1019.23 | 6.8.0-1019.23 | Fixed |
| debian linux | = 11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft azure linux | < 6.6.56.1-5 | 6.6.56.1-5 |
| debian/linux(Debian:12) | < 6.1.115-1 | 6.1.115-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
Show 46 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.11.2-1 | 6.11.2-1 |
| debian/linux(Debian:14) | < 6.11.2-1 | 6.11.2-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-127.137 | 5.15.0-127.137 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1070.75 | 5.15.0-1070.75 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1066.69 | 5.15.0-1066.69 |
| Linux kernel | >= c8d7b98bec43faaa6583c3135030be5eb4693acb, < 872eca64c3267dbc5836b715716fc6c03a18eda7 | 872eca64c3267dbc5836b715716fc6c03a18eda7 |
| Linux kernel | >= c8d7b98bec43faaa6583c3135030be5eb4693acb, < 7bcbc4cda777d26c88500d973fad0d497fc8a82e | 7bcbc4cda777d26c88500d973fad0d497fc8a82e |
| Linux kernel | >= c8d7b98bec43faaa6583c3135030be5eb4693acb, < dcf48ab3ca2c55b09c8f9c8de0df01c1943bc4e5 | dcf48ab3ca2c55b09c8f9c8de0df01c1943bc4e5 |
| Linux kernel | >= c8d7b98bec43faaa6583c3135030be5eb4693acb, < fbff87d682e57ddbbe82abf6d0a1a4a36a98afcd | fbff87d682e57ddbbe82abf6d0a1a4a36a98afcd |
| Linux kernel | >= c8d7b98bec43faaa6583c3135030be5eb4693acb, < 7ea2bcfd9bf4c3dbbf22546162226fd1c14d8ad2 | 7ea2bcfd9bf4c3dbbf22546162226fd1c14d8ad2 |
| Linux kernel | >= c8d7b98bec43faaa6583c3135030be5eb4693acb, < af4b8a704f26f38310655bad67fd8096293275a2 | af4b8a704f26f38310655bad67fd8096293275a2 |
| Linux kernel | >= c8d7b98bec43faaa6583c3135030be5eb4693acb, < 7a7b5a27c53b55e91eecf646d1b204e73fa4af93 | 7a7b5a27c53b55e91eecf646d1b204e73fa4af93 |
| Linux kernel | >= c8d7b98bec43faaa6583c3135030be5eb4693acb, < 10210658f827ad45061581cbfc05924b723e8922 | 10210658f827ad45061581cbfc05924b723e8922 |
| Linux kernel | >= c8d7b98bec43faaa6583c3135030be5eb4693acb, < 9c778fe48d20ef362047e3376dee56d77f8500d4 | 9c778fe48d20ef362047e3376dee56d77f8500d4 |
| Linux kernel | = 3.18 | No fix listed |
| Linux kernel | < 4.19.323 | 4.19.323 |
| Linux kernel | < 5.4.285 | 5.4.285 |
| Linux kernel | < 5.10.227 | 5.10.227 |
| Linux kernel | < 5.15.168 | 5.15.168 |
| Linux kernel | < 6.1.113 | 6.1.113 |
| Linux kernel | < 6.6.54 | 6.6.54 |
| Linux kernel | < 6.10.13 | 6.10.13 |
| Linux kernel | < 6.11.2 | 6.11.2 |
| Linux kernel | < 6.12 | 6.12 |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | < V1.1.1 | V1.1.1 |
| Siemens RUGGEDCOM RST2428P | < V3.2 | V3.2 |
| Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | < V3.2 | V3.2 |
| Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family | < V3.2 | V3.2 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-54.56 | 6.8.0-54.56 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1019.23 | 6.8.0-1019.23 |
| debian linux | = 11.0 | No fix listed |
| Linux kernel | >= 3.18, < 4.19.323 | 4.19.323 |
| Linux kernel | >= 4.20, < 5.4.285 | 5.4.285 |
| Linux kernel | >= 5.5, < 5.10.227 | 5.10.227 |
| Linux kernel | >= 5.11, < 5.15.168 | 5.15.168 |
| Linux kernel | >= 5.16, < 6.1.113 | 6.1.113 |
| Linux kernel | >= 6.2, < 6.6.54 | 6.6.54 |
| Linux kernel | >= 6.7, < 6.10.13 | 6.10.13 |
| Linux kernel | >= 6.11, < 6.11.2 | 6.11.2 |
References
- MSRC Security Update Guide vendor-advisory
- kernel vendor-advisory
- Debian Security Tracker CVE-2024-47685 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7166-1 vendor-advisory
- USN-7166-2 vendor-advisory
- USN-7166-3 vendor-advisory
- USN-7186-1 vendor-advisory
- USN-7186-2 vendor-advisory
- USN-7194-1 vendor-advisory
- USN-7166-4 vendor-advisory
- USN-7276-1 vendor-advisory
- USN-7277-1 vendor-advisory
- USN-7293-1 vendor-advisory
- USN-7294-1 vendor-advisory
- USN-7295-1 vendor-advisory
- USN-7301-1 vendor-advisory
- USN-7303-1 vendor-advisory
- USN-7304-1 vendor-advisory
- USN-7294-2 vendor-advisory
- USN-7294-3 vendor-advisory
- USN-7303-2 vendor-advisory
- USN-7310-1 vendor-advisory
- USN-7311-1 vendor-advisory
- USN-7303-3 vendor-advisory
- USN-7294-4 vendor-advisory
- USN-7384-1 vendor-advisory
- USN-7385-1 vendor-advisory
- USN-7386-1 vendor-advisory
- USN-7393-1 vendor-advisory
- USN-7384-2 vendor-advisory
- USN-7401-1 vendor-advisory
- USN-7403-1 vendor-advisory
- USN-7413-1 vendor-advisory
- USN-7468-1 vendor-advisory
- USN-7539-1 vendor-advisory
- USN-7540-1 vendor-advisory
- USN-7727-1 vendor-advisory
- USN-7727-2 vendor-advisory
- USN-7727-3 vendor-advisory
- USN-7755-1 vendor-advisory
- USN-7755-2 vendor-advisory
- USN-7755-3 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org mailing-list third-party-advisory
- lists.debian.org mailing-list third-party-advisory
- cert-portal.siemens.com
- cert-portal.siemens.com
- ENISA EUVD EUVD-2024-42605 third-party-advisory