# CVE-2024-26641: ip6\_tunnel: make sure to pull inner header in \_\_ip6\_tnl\_rcv()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.80% (percentile 54, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2024-03-18T10:19:07.581Z
- **Modified:** 2026-08-05T11:26:29.008Z

## Who should check

- Anyone running Linux \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< a9bc32879a08f23cdb80a48c738017e39aea1080; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< af6b5c50d47ab43e5272ad61935d0ed2e264d3f0; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< d54e4da98bbfa8c257bdca94c49652d81d18a4d8; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< 350a6640fac4b53564ec20aa3f4a0922cb0ba5e6; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< c835df3bcc14858ae9b27315dd7de76370b94f3a; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< 8d975c15c0cd744000ca386247432d57b21f9df0
- Anyone running Linux 4.7

## Description

In the Linux kernel, the following vulnerability has been resolved:

ip6\_tunnel: make sure to pull inner header in \_\_ip6\_tnl\_rcv()

syzbot found \_\_ip6\_tnl\_rcv() could access unitiliazed data \[1\].

Call pskb\_inet\_may\_pull() to fix this, and initialize ipv6h
variable after this call as it can change skb-\>head.

\[1\]
 BUG: KMSAN: uninit-value in \_\_INET\_ECN\_decapsulate include/net/inet\_ecn.h:253 \[inline\]
 BUG: KMSAN: uninit-value in INET\_ECN\_decapsulate include/net/inet\_ecn.h:275 \[inline\]
 BUG: KMSAN: uninit-value in IP6\_ECN\_decapsulate+0x7df/0x1e50 include/net/inet\_ecn.h:321
  \_\_INET\_ECN\_decapsulate include/net/inet\_ecn.h:253 \[inline\]
  INET\_ECN\_decapsulate include/net/inet\_ecn.h:275 \[inline\]
  IP6\_ECN\_decapsulate+0x7df/0x1e50 include/net/inet\_ecn.h:321
  ip6ip6\_dscp\_ecn\_decapsulate+0x178/0x1b0 net/ipv6/ip6\_tunnel.c:727
  \_\_ip6\_tnl\_rcv+0xd4e/0x1590 net/ipv6/ip6\_tunnel.c:845
  ip6\_tnl\_rcv+0xce/0x100 net/ipv6/ip6\_tunnel.c:888
 gre\_rcv+0x143f/0x1870
  ip6\_protocol\_deliver\_rcu+0xda6/0x2a60 net/ipv6/ip6\_input.c:438
  ip6\_input\_finish net/ipv6/ip6\_input.c:483 \[inline\]
  NF\_HOOK include/linux/netfilter.h:314 \[inline\]
  ip6\_input+0x15d/0x430 net/ipv6/ip6\_input.c:492
  ip6\_mc\_input+0xa7e/0xc80 net/ipv6/ip6\_input.c:586
  dst\_input include/net/dst.h:461 \[inline\]
  ip6\_rcv\_finish+0x5db/0x870 net/ipv6/ip6\_input.c:79
  NF\_HOOK include/linux/netfilter.h:314 \[inline\]
  ipv6\_rcv+0xda/0x390 net/ipv6/ip6\_input.c:310
  \_\_netif\_receive\_skb\_one\_core net/core/dev.c:5532 \[inline\]
  \_\_netif\_receive\_skb+0x1a6/0x5a0 net/core/dev.c:5646
  netif\_receive\_skb\_internal net/core/dev.c:5732 \[inline\]
  netif\_receive\_skb+0x58/0x660 net/core/dev.c:5791
  tun\_rx\_batched+0x3ee/0x980 drivers/net/tun.c:1555
  tun\_get\_user+0x53af/0x66d0 drivers/net/tun.c:2002
  tun\_chr\_write\_iter+0x3af/0x5d0 drivers/net/tun.c:2048
  call\_write\_iter include/linux/fs.h:2084 \[inline\]
  new\_sync\_write fs/read\_write.c:497 \[inline\]
  vfs\_write+0x786/0x1200 fs/read\_write.c:590
  ksys\_write+0x20f/0x4c0 fs/read\_write.c:643
  \_\_do\_sys\_write fs/read\_write.c:655 \[inline\]
  \_\_se\_sys\_write fs/read\_write.c:652 \[inline\]
  \_\_x64\_sys\_write+0x93/0xd0 fs/read\_write.c:652
  do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
  do\_syscall\_64+0x6d/0x140 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0x6b

Uninit was created at:
  slab\_post\_alloc\_hook+0x129/0xa70 mm/slab.h:768
  slab\_alloc\_node mm/slub.c:3478 \[inline\]
  kmem\_cache\_alloc\_node+0x5e9/0xb10 mm/slub.c:3523
  kmalloc\_reserve+0x13d/0x4a0 net/core/skbuff.c:560
  \_\_alloc\_skb+0x318/0x740 net/core/skbuff.c:651
  alloc\_skb include/linux/skbuff.h:1286 \[inline\]
  alloc\_skb\_with\_frags+0xc8/0xbd0 net/core/skbuff.c:6334
  sock\_alloc\_send\_pskb+0xa80/0xbf0 net/core/sock.c:2787
  tun\_alloc\_skb drivers/net/tun.c:1531 \[inline\]
  tun\_get\_user+0x1e8a/0x66d0 drivers/net/tun.c:1846
  tun\_chr\_write\_iter+0x3af/0x5d0 drivers/net/tun.c:2048
  call\_write\_iter include/linux/fs.h:2084 \[inline\]
  new\_sync\_write fs/read\_write.c:497 \[inline\]
  vfs\_write+0x786/0x1200 fs/read\_write.c:590
  ksys\_write+0x20f/0x4c0 fs/read\_write.c:643
  \_\_do\_sys\_write fs/read\_write.c:655 \[inline\]
  \_\_se\_sys\_write fs/read\_write.c:652 \[inline\]
  \_\_x64\_sys\_write+0x93/0xd0 fs/read\_write.c:652
  do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
  do\_syscall\_64+0x6d/0x140 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0x6b

CPU: 0 PID: 5034 Comm: syz-executor331 Not tainted 6.7.0-syzkaller-00562-g9f8413c4a66f \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023

## Affected and fixed versions

- Linux: \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< a9bc32879a08f23cdb80a48c738017e39aea1080; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< af6b5c50d47ab43e5272ad61935d0ed2e264d3f0; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< d54e4da98bbfa8c257bdca94c49652d81d18a4d8; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< 350a6640fac4b53564ec20aa3f4a0922cb0ba5e6; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< c835df3bcc14858ae9b27315dd7de76370b94f3a; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< 8d975c15c0cd744000ca386247432d57b21f9df0 (cvelist)
- Linux: 4.7 (cvelist)

## Mitigation

- Upgrade Linux to 8d975c15c0cd744000ca386247432d57b21f9df0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26641. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26641.md
Affected: Linux >= 0d3c703a9d1723c7707e0680019ac8ff5922db42, < a9bc32879a08f23cdb80a48c738017e39aea1080; >= 0d3c703a9d1723c7707e0680019ac8ff5922db42, < af6b5c50d47ab43e5272ad61935d0ed2e264d3f0; >= 0d3c703a9d1723c7707e0680019ac8ff5922db42, < d54e4da98bbfa8c257bdca94c49652d81d18a4d8; >= 0d3c703a9d1723c7707e068…
Fixed in: Linux 350a6640fac4b53564ec20aa3f4a0922cb0ba5e6, Linux 8d975c15c0cd744000ca386247432d57b21f9df0

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26641 being exploited?

There is no confirmed exploitation: CVE-2024-26641 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.80% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26641?

High: CVSS 8.6 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-26641?

Linux \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< a9bc32879a08f23cdb80a48c738017e39aea1080; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< af6b5c50d47ab43e5272ad61935d0ed2e264d3f0; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< d54e4da98bbfa8c257bdca94c49652d81d18a4d8; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< 350a6640fac4b53564ec20aa3f4a0922cb0ba5e6; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< c835df3bcc14858ae9b27315dd7de76370b94f3a; \>= 0d3c703a9d1723c7707e0680019ac8ff5922db42, \< 8d975c15c0cd744000ca386247432d57b21f9df0; Linux 4.7.

### Is there a fix for CVE-2024-26641?

Yes. Fixed in Linux 350a6640fac4b53564ec20aa3f4a0922cb0ba5e6, Linux 8d975c15c0cd744000ca386247432d57b21f9df0. Upgrade Linux to 8d975c15c0cd744000ca386247432d57b21f9df0 or later.

### How do I check if I'm affected by CVE-2024-26641?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a9bc32879a08f23cdb80a48c738017e39aea1080>
- patch: <https://git.kernel.org/stable/c/af6b5c50d47ab43e5272ad61935d0ed2e264d3f0>
- patch: <https://git.kernel.org/stable/c/d54e4da98bbfa8c257bdca94c49652d81d18a4d8>
- patch: <https://git.kernel.org/stable/c/350a6640fac4b53564ec20aa3f4a0922cb0ba5e6>
- patch: <https://git.kernel.org/stable/c/c835df3bcc14858ae9b27315dd7de76370b94f3a>
- patch: <https://git.kernel.org/stable/c/8d975c15c0cd744000ca386247432d57b21f9df0>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://security.netapp.com/advisory/ntap-20241108-0008/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26641>

HTML: <https://flawdb.com/CVE-2024-26641> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26641>
