CVE-2024-26641
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
18/03/2024
Last modified:
28/03/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
ip6_tunnel: make sure to pull inner header in __ip6_tnl_rcv()<br />
<br />
syzbot found __ip6_tnl_rcv() could access unitiliazed data [1].<br />
<br />
Call pskb_inet_may_pull() to fix this, and initialize ipv6h<br />
variable after this call as it can change skb->head.<br />
<br />
[1]<br />
BUG: KMSAN: uninit-value in __INET_ECN_decapsulate include/net/inet_ecn.h:253 [inline]<br />
BUG: KMSAN: uninit-value in INET_ECN_decapsulate include/net/inet_ecn.h:275 [inline]<br />
BUG: KMSAN: uninit-value in IP6_ECN_decapsulate+0x7df/0x1e50 include/net/inet_ecn.h:321<br />
__INET_ECN_decapsulate include/net/inet_ecn.h:253 [inline]<br />
INET_ECN_decapsulate include/net/inet_ecn.h:275 [inline]<br />
IP6_ECN_decapsulate+0x7df/0x1e50 include/net/inet_ecn.h:321<br />
ip6ip6_dscp_ecn_decapsulate+0x178/0x1b0 net/ipv6/ip6_tunnel.c:727<br />
__ip6_tnl_rcv+0xd4e/0x1590 net/ipv6/ip6_tunnel.c:845<br />
ip6_tnl_rcv+0xce/0x100 net/ipv6/ip6_tunnel.c:888<br />
gre_rcv+0x143f/0x1870<br />
ip6_protocol_deliver_rcu+0xda6/0x2a60 net/ipv6/ip6_input.c:438<br />
ip6_input_finish net/ipv6/ip6_input.c:483 [inline]<br />
NF_HOOK include/linux/netfilter.h:314 [inline]<br />
ip6_input+0x15d/0x430 net/ipv6/ip6_input.c:492<br />
ip6_mc_input+0xa7e/0xc80 net/ipv6/ip6_input.c:586<br />
dst_input include/net/dst.h:461 [inline]<br />
ip6_rcv_finish+0x5db/0x870 net/ipv6/ip6_input.c:79<br />
NF_HOOK include/linux/netfilter.h:314 [inline]<br />
ipv6_rcv+0xda/0x390 net/ipv6/ip6_input.c:310<br />
__netif_receive_skb_one_core net/core/dev.c:5532 [inline]<br />
__netif_receive_skb+0x1a6/0x5a0 net/core/dev.c:5646<br />
netif_receive_skb_internal net/core/dev.c:5732 [inline]<br />
netif_receive_skb+0x58/0x660 net/core/dev.c:5791<br />
tun_rx_batched+0x3ee/0x980 drivers/net/tun.c:1555<br />
tun_get_user+0x53af/0x66d0 drivers/net/tun.c:2002<br />
tun_chr_write_iter+0x3af/0x5d0 drivers/net/tun.c:2048<br />
call_write_iter include/linux/fs.h:2084 [inline]<br />
new_sync_write fs/read_write.c:497 [inline]<br />
vfs_write+0x786/0x1200 fs/read_write.c:590<br />
ksys_write+0x20f/0x4c0 fs/read_write.c:643<br />
__do_sys_write fs/read_write.c:655 [inline]<br />
__se_sys_write fs/read_write.c:652 [inline]<br />
__x64_sys_write+0x93/0xd0 fs/read_write.c:652<br />
do_syscall_x64 arch/x86/entry/common.c:52 [inline]<br />
do_syscall_64+0x6d/0x140 arch/x86/entry/common.c:83<br />
entry_SYSCALL_64_after_hwframe+0x63/0x6b<br />
<br />
Uninit was created at:<br />
slab_post_alloc_hook+0x129/0xa70 mm/slab.h:768<br />
slab_alloc_node mm/slub.c:3478 [inline]<br />
kmem_cache_alloc_node+0x5e9/0xb10 mm/slub.c:3523<br />
kmalloc_reserve+0x13d/0x4a0 net/core/skbuff.c:560<br />
__alloc_skb+0x318/0x740 net/core/skbuff.c:651<br />
alloc_skb include/linux/skbuff.h:1286 [inline]<br />
alloc_skb_with_frags+0xc8/0xbd0 net/core/skbuff.c:6334<br />
sock_alloc_send_pskb+0xa80/0xbf0 net/core/sock.c:2787<br />
tun_alloc_skb drivers/net/tun.c:1531 [inline]<br />
tun_get_user+0x1e8a/0x66d0 drivers/net/tun.c:1846<br />
tun_chr_write_iter+0x3af/0x5d0 drivers/net/tun.c:2048<br />
call_write_iter include/linux/fs.h:2084 [inline]<br />
new_sync_write fs/read_write.c:497 [inline]<br />
vfs_write+0x786/0x1200 fs/read_write.c:590<br />
ksys_write+0x20f/0x4c0 fs/read_write.c:643<br />
__do_sys_write fs/read_write.c:655 [inline]<br />
__se_sys_write fs/read_write.c:652 [inline]<br />
__x64_sys_write+0x93/0xd0 fs/read_write.c:652<br />
do_syscall_x64 arch/x86/entry/common.c:52 [inline]<br />
do_syscall_64+0x6d/0x140 arch/x86/entry/common.c:83<br />
entry_SYSCALL_64_after_hwframe+0x63/0x6b<br />
<br />
CPU: 0 PID: 5034 Comm: syz-executor331 Not tainted 6.7.0-syzkaller-00562-g9f8413c4a66f #0<br />
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
CPE | From | Up to |
---|---|---|
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.7 (including) | 5.10.210 (excluding) |
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11 (including) | 5.15.149 (excluding) |
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 6.1.77 (excluding) |
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.6.16 (excluding) |
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.7.4 (excluding) |
cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:* | ||
cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:* | ||
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | ||
cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:* | ||
cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:* | ||
cpe:2.3:o:netapp:a800_firmware:-:*:*:*:*:*:*:* | ||
cpe:2.3:h:netapp:a800:*:*:*:*:*:*:*:* | ||
cpe:2.3:o:netapp:c800_firmware:-:*:*:*:*:*:*:* | ||
cpe:2.3:h:netapp:c800:*:*:*:*:*:*:*:* | ||
cpe:2.3:o:netapp:a900_firmware:-:*:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/350a6640fac4b53564ec20aa3f4a0922cb0ba5e6
- https://git.kernel.org/stable/c/8d975c15c0cd744000ca386247432d57b21f9df0
- https://git.kernel.org/stable/c/a9bc32879a08f23cdb80a48c738017e39aea1080
- https://git.kernel.org/stable/c/af6b5c50d47ab43e5272ad61935d0ed2e264d3f0
- https://git.kernel.org/stable/c/c835df3bcc14858ae9b27315dd7de76370b94f3a
- https://git.kernel.org/stable/c/d54e4da98bbfa8c257bdca94c49652d81d18a4d8
- https://git.kernel.org/stable/c/350a6640fac4b53564ec20aa3f4a0922cb0ba5e6
- https://git.kernel.org/stable/c/8d975c15c0cd744000ca386247432d57b21f9df0
- https://git.kernel.org/stable/c/a9bc32879a08f23cdb80a48c738017e39aea1080
- https://git.kernel.org/stable/c/af6b5c50d47ab43e5272ad61935d0ed2e264d3f0
- https://git.kernel.org/stable/c/c835df3bcc14858ae9b27315dd7de76370b94f3a
- https://git.kernel.org/stable/c/d54e4da98bbfa8c257bdca94c49652d81d18a4d8
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html
- https://security.netapp.com/advisory/ntap-20241108-0008/