# CVE-2025-39984: net: tun: Update napi-\>skb after XDP process

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-10-15T07:56:03.438Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= e6d5dbdd20aa6a86974af51deb9414cd2e7794cb, \< 953200d56fc23eebf80a5ad9eed6e2e8a3065093; \>= e6d5dbdd20aa6a86974af51deb9414cd2e7794cb, \< 1697577e1669b0321d02cd848384a5d33e284296; \>= e6d5dbdd20aa6a86974af51deb9414cd2e7794cb, \< 1091860a16a86ccdd77c09f2b21a5f634f5ab9ec
- Anyone running Linux 6.9

## Description

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

net: tun: Update napi-\>skb after XDP process

The syzbot report a UAF issue:

  BUG: KASAN: slab-use-after-free in skb\_reset\_mac\_header include/linux/skbuff.h:3150 \[inline\]
  BUG: KASAN: slab-use-after-free in napi\_frags\_skb net/core/gro.c:723 \[inline\]
  BUG: KASAN: slab-use-after-free in napi\_gro\_frags+0x6e/0x1030 net/core/gro.c:758
  Read of size 8 at addr ffff88802ef22c18 by task syz.0.17/6079
  CPU: 0 UID: 0 PID: 6079 Comm: syz.0.17 Not tainted syzkaller \#0 PREEMPT(full)
  Call Trace:
   \<TASK\>
   dump\_stack\_lvl+0x189/0x250 lib/dump\_stack.c:120
   print\_address\_description mm/kasan/report.c:378 \[inline\]
   print\_report+0xca/0x240 mm/kasan/report.c:482
   kasan\_report+0x118/0x150 mm/kasan/report.c:595
   skb\_reset\_mac\_header include/linux/skbuff.h:3150 \[inline\]
   napi\_frags\_skb net/core/gro.c:723 \[inline\]
   napi\_gro\_frags+0x6e/0x1030 net/core/gro.c:758
   tun\_get\_user+0x28cb/0x3e20 drivers/net/tun.c:1920
   tun\_chr\_write\_iter+0x113/0x200 drivers/net/tun.c:1996
   new\_sync\_write fs/read\_write.c:593 \[inline\]
   vfs\_write+0x5c9/0xb30 fs/read\_write.c:686
   ksys\_write+0x145/0x250 fs/read\_write.c:738
   do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
   do\_syscall\_64+0xfa/0x3b0 arch/x86/entry/syscall\_64.c:94
   entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
   \</TASK\>

  Allocated by task 6079:
   kasan\_save\_stack mm/kasan/common.c:47 \[inline\]
   kasan\_save\_track+0x3e/0x80 mm/kasan/common.c:68
   unpoison\_slab\_object mm/kasan/common.c:330 \[inline\]
   \_\_kasan\_mempool\_unpoison\_object+0xa0/0x170 mm/kasan/common.c:558
   kasan\_mempool\_unpoison\_object include/linux/kasan.h:388 \[inline\]
   napi\_skb\_cache\_get+0x37b/0x6d0 net/core/skbuff.c:295
   \_\_alloc\_skb+0x11e/0x2d0 net/core/skbuff.c:657
   napi\_alloc\_skb+0x84/0x7d0 net/core/skbuff.c:811
   napi\_get\_frags+0x69/0x140 net/core/gro.c:673
   tun\_napi\_alloc\_frags drivers/net/tun.c:1404 \[inline\]
   tun\_get\_user+0x77c/0x3e20 drivers/net/tun.c:1784
   tun\_chr\_write\_iter+0x113/0x200 drivers/net/tun.c:1996
   new\_sync\_write fs/read\_write.c:593 \[inline\]
   vfs\_write+0x5c9/0xb30 fs/read\_write.c:686
   ksys\_write+0x145/0x250 fs/read\_write.c:738
   do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
   do\_syscall\_64+0xfa/0x3b0 arch/x86/entry/syscall\_64.c:94
   entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

  Freed by task 6079:
   kasan\_save\_stack mm/kasan/common.c:47 \[inline\]
   kasan\_save\_track+0x3e/0x80 mm/kasan/common.c:68
   kasan\_save\_free\_info+0x46/0x50 mm/kasan/generic.c:576
   poison\_slab\_object mm/kasan/common.c:243 \[inline\]
   \_\_kasan\_slab\_free+0x5b/0x80 mm/kasan/common.c:275
   kasan\_slab\_free include/linux/kasan.h:233 \[inline\]
   slab\_free\_hook mm/slub.c:2422 \[inline\]
   slab\_free mm/slub.c:4695 \[inline\]
   kmem\_cache\_free+0x18f/0x400 mm/slub.c:4797
   skb\_pp\_cow\_data+0xdd8/0x13e0 net/core/skbuff.c:969
   netif\_skb\_check\_for\_xdp net/core/dev.c:5390 \[inline\]
   netif\_receive\_generic\_xdp net/core/dev.c:5431 \[inline\]
   do\_xdp\_generic+0x699/0x11a0 net/core/dev.c:5499
   tun\_get\_user+0x2523/0x3e20 drivers/net/tun.c:1872
   tun\_chr\_write\_iter+0x113/0x200 drivers/net/tun.c:1996
   new\_sync\_write fs/read\_write.c:593 \[inline\]
   vfs\_write+0x5c9/0xb30 fs/read\_write.c:686
   ksys\_write+0x145/0x250 fs/read\_write.c:738
   do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
   do\_syscall\_64+0xfa/0x3b0 arch/x86/entry/syscall\_64.c:94
   entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

After commit e6d5dbdd20aa ("xdp: add multi-buff support for xdp running in
generic mode"), the original skb may be freed in skb\_pp\_cow\_data() when
XDP program was attached, which was allocated in tun\_napi\_alloc\_frags().
However, the napi-\>skb still point to the original skb, update it after
XDP process.

## Affected and fixed versions

- Linux: \>= e6d5dbdd20aa6a86974af51deb9414cd2e7794cb, \< 953200d56fc23eebf80a5ad9eed6e2e8a3065093; \>= e6d5dbdd20aa6a86974af51deb9414cd2e7794cb, \< 1697577e1669b0321d02cd848384a5d33e284296; \>= e6d5dbdd20aa6a86974af51deb9414cd2e7794cb, \< 1091860a16a86ccdd77c09f2b21a5f634f5ab9ec (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 1091860a16a86ccdd77c09f2b21a5f634f5ab9ec or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-39984.md
Affected: Linux >= e6d5dbdd20aa6a86974af51deb9414cd2e7794cb, < 953200d56fc23eebf80a5ad9eed6e2e8a3065093; >= e6d5dbdd20aa6a86974af51deb9414cd2e7794cb, < 1697577e1669b0321d02cd848384a5d33e284296; >= e6d5dbdd20aa6a86974af51deb9414cd2e7794cb, < 1091860a16a86ccdd77c09f2b21a5f634f5ab9ec; Linux 6.9
Fixed in: Linux 953200d56fc23eebf80a5ad9eed6e2e8a3065093, Linux 1697577e1669b0321d02cd848384a5d33e284296, Linux 1091860a16a86ccdd77c09f2b21a5f634f5ab9ec

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-2025-39984 being exploited?

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

### How serious is CVE-2025-39984?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-39984?

Linux \>= e6d5dbdd20aa6a86974af51deb9414cd2e7794cb, \< 953200d56fc23eebf80a5ad9eed6e2e8a3065093; \>= e6d5dbdd20aa6a86974af51deb9414cd2e7794cb, \< 1697577e1669b0321d02cd848384a5d33e284296; \>= e6d5dbdd20aa6a86974af51deb9414cd2e7794cb, \< 1091860a16a86ccdd77c09f2b21a5f634f5ab9ec; Linux 6.9.

### Is there a fix for CVE-2025-39984?

Yes. Fixed in Linux 953200d56fc23eebf80a5ad9eed6e2e8a3065093, Linux 1697577e1669b0321d02cd848384a5d33e284296, Linux 1091860a16a86ccdd77c09f2b21a5f634f5ab9ec. Upgrade Linux to 1091860a16a86ccdd77c09f2b21a5f634f5ab9ec or later.

### How do I check if I'm affected by CVE-2025-39984?

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

- other: <https://git.kernel.org/stable/c/953200d56fc23eebf80a5ad9eed6e2e8a3065093>
- other: <https://git.kernel.org/stable/c/1697577e1669b0321d02cd848384a5d33e284296>
- other: <https://git.kernel.org/stable/c/1091860a16a86ccdd77c09f2b21a5f634f5ab9ec>

## 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-2025-39984>

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