# CVE-2024-56372: net: tun: fix tun\_napi\_alloc\_frags()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-01-11T12:35:47.256Z
- **Modified:** 2026-11-05T21:17:35.287Z

## Who should check

- Anyone running Linux \>= de4f5fed3f231a8ff4790bf52975f847b95b85ea, \< efe74dd58a72bd987b158142c904b7ef2ad132e2; \>= de4f5fed3f231a8ff4790bf52975f847b95b85ea, \< 4f393ea1e2f9c3b646d00572dd92c48b1869c65f; \>= de4f5fed3f231a8ff4790bf52975f847b95b85ea, \< 429fde2d81bcef0ebab002215358955704586457
- Anyone running Linux 6.4

## Description

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

net: tun: fix tun\_napi\_alloc\_frags()

syzbot reported the following crash \[1\]

Issue came with the blamed commit. Instead of going through
all the iov components, we keep using the first one
and end up with a malformed skb.

\[1\]

kernel BUG at net/core/skbuff.c:2849 !
Oops: invalid opcode: 0000 \[\#1\] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 6230 Comm: syz-executor132 Not tainted 6.13.0-rc1-syzkaller-00407-g96b6fcc0ee41 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
 RIP: 0010:\_\_pskb\_pull\_tail+0x1568/0x1570 net/core/skbuff.c:2848
Code: 38 c1 0f 8c 32 f1 ff ff 4c 89 f7 e8 92 96 74 f8 e9 25 f1 ff ff e8 e8 ae 09 f8 48 8b 5c 24 08 e9 eb fb ff ff e8 d9 ae 09 f8 90 \<0f\> 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90004cbef30 EFLAGS: 00010293
RAX: ffffffff8995c347 RBX: 00000000fffffff2 RCX: ffff88802cf45a00
RDX: 0000000000000000 RSI: 00000000fffffff2 RDI: 0000000000000000
RBP: ffff88807df0c06a R08: ffffffff8995b084 R09: 1ffff1100fbe185c
R10: dffffc0000000000 R11: ffffed100fbe185d R12: ffff888076e85d50
R13: ffff888076e85c80 R14: ffff888076e85cf4 R15: ffff888076e85c80
FS:  00007f0dca6ea6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0dca6ead58 CR3: 00000000119da000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
  skb\_cow\_data+0x2da/0xcb0 net/core/skbuff.c:5284
  tipc\_aead\_decrypt net/tipc/crypto.c:894 \[inline\]
  tipc\_crypto\_rcv+0x402/0x24e0 net/tipc/crypto.c:1844
  tipc\_rcv+0x57e/0x12a0 net/tipc/node.c:2109
  tipc\_l2\_rcv\_msg+0x2bd/0x450 net/tipc/bearer.c:668
  \_\_netif\_receive\_skb\_list\_ptype net/core/dev.c:5720 \[inline\]
  \_\_netif\_receive\_skb\_list\_core+0x8b7/0x980 net/core/dev.c:5762
  \_\_netif\_receive\_skb\_list net/core/dev.c:5814 \[inline\]
  netif\_receive\_skb\_list\_internal+0xa51/0xe30 net/core/dev.c:5905
  gro\_normal\_list include/net/gro.h:515 \[inline\]
  napi\_complete\_done+0x2b5/0x870 net/core/dev.c:6256
  napi\_complete include/linux/netdevice.h:567 \[inline\]
  tun\_get\_user+0x2ea0/0x4890 drivers/net/tun.c:1982
  tun\_chr\_write\_iter+0x10d/0x1f0 drivers/net/tun.c:2057
 do\_iter\_readv\_writev+0x600/0x880
  vfs\_writev+0x376/0xba0 fs/read\_write.c:1050
  do\_writev+0x1b6/0x360 fs/read\_write.c:1096
  do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
  do\_syscall\_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

## Affected and fixed versions

- Linux: \>= de4f5fed3f231a8ff4790bf52975f847b95b85ea, \< efe74dd58a72bd987b158142c904b7ef2ad132e2; \>= de4f5fed3f231a8ff4790bf52975f847b95b85ea, \< 4f393ea1e2f9c3b646d00572dd92c48b1869c65f; \>= de4f5fed3f231a8ff4790bf52975f847b95b85ea, \< 429fde2d81bcef0ebab002215358955704586457 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 429fde2d81bcef0ebab002215358955704586457 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-56372. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56372.md
Affected: Linux >= de4f5fed3f231a8ff4790bf52975f847b95b85ea, < efe74dd58a72bd987b158142c904b7ef2ad132e2; >= de4f5fed3f231a8ff4790bf52975f847b95b85ea, < 4f393ea1e2f9c3b646d00572dd92c48b1869c65f; >= de4f5fed3f231a8ff4790bf52975f847b95b85ea, < 429fde2d81bcef0ebab002215358955704586457; Linux 6.4
Fixed in: Linux 4f393ea1e2f9c3b646d00572dd92c48b1869c65f, Linux 429fde2d81bcef0ebab002215358955704586457

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-56372 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= de4f5fed3f231a8ff4790bf52975f847b95b85ea, \< efe74dd58a72bd987b158142c904b7ef2ad132e2; \>= de4f5fed3f231a8ff4790bf52975f847b95b85ea, \< 4f393ea1e2f9c3b646d00572dd92c48b1869c65f; \>= de4f5fed3f231a8ff4790bf52975f847b95b85ea, \< 429fde2d81bcef0ebab002215358955704586457; Linux 6.4.

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

Yes. Fixed in Linux 4f393ea1e2f9c3b646d00572dd92c48b1869c65f, Linux 429fde2d81bcef0ebab002215358955704586457. Upgrade Linux to 429fde2d81bcef0ebab002215358955704586457 or later.

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

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/efe74dd58a72bd987b158142c904b7ef2ad132e2>
- patch: <https://git.kernel.org/stable/c/4f393ea1e2f9c3b646d00572dd92c48b1869c65f>
- patch: <https://git.kernel.org/stable/c/429fde2d81bcef0ebab002215358955704586457>

## 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-56372>

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