# CVE-2025-40290: xsk: avoid data corruption on cq descriptor number

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-12-08T00:09:08.370Z
- **Modified:** 2026-10-14T22:10:00.210Z

## Who should check

- Anyone running Linux \>= 30f241fcf52aaaef7ac16e66530faa11be78a865, \< c5ea2e50b5c9aa80c5b53526257540f0c26cd66d; \>= 30f241fcf52aaaef7ac16e66530faa11be78a865, \< 0ebc27a4c67d44e5ce88d21cdad8201862b78837; 932cb57e675a62982d4719e4b04e9f09a15a5baf; \>= 6.16.8, \< 6.17
- Anyone running Linux 6.17

## Description

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

xsk: avoid data corruption on cq descriptor number

Since commit 30f241fcf52a ("xsk: Fix immature cq descriptor
production"), the descriptor number is stored in skb control block and
xsk\_cq\_submit\_addr\_locked() relies on it to put the umem addrs onto
pool's completion queue.

skb control block shouldn't be used for this purpose as after transmit
xsk doesn't have control over it and other subsystems could use it. This
leads to the following kernel panic due to a NULL pointer dereference.

 BUG: kernel NULL pointer dereference, address: 0000000000000000
 \#PF: supervisor read access in kernel mode
 \#PF: error\_code(0x0000) - not-present page
 PGD 0 P4D 0
 Oops: Oops: 0000 \[\#1\] SMP NOPTI
 CPU: 2 UID: 1 PID: 927 Comm: p4xsk.bin Not tainted 6.16.12+deb14-cloud-amd64 \#1 PREEMPT(lazy)  Debian 6.16.12-1
 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-debian-1.17.0-1 04/01/2014
 RIP: 0010:xsk\_destruct\_skb+0xd0/0x180
 \[...\]
 Call Trace:
  \<IRQ\>
  ? napi\_complete\_done+0x7a/0x1a0
  ip\_rcv\_core+0x1bb/0x340
  ip\_rcv+0x30/0x1f0
  \_\_netif\_receive\_skb\_one\_core+0x85/0xa0
  process\_backlog+0x87/0x130
  \_\_napi\_poll+0x28/0x180
  net\_rx\_action+0x339/0x420
  handle\_softirqs+0xdc/0x320
  ? handle\_edge\_irq+0x90/0x1e0
  do\_softirq.part.0+0x3b/0x60
  \</IRQ\>
  \<TASK\>
  \_\_local\_bh\_enable\_ip+0x60/0x70
  \_\_dev\_direct\_xmit+0x14e/0x1f0
  \_\_xsk\_generic\_xmit+0x482/0xb70
  ? \_\_remove\_hrtimer+0x41/0xa0
  ? \_\_xsk\_generic\_xmit+0x51/0xb70
  ? \_raw\_spin\_unlock\_irqrestore+0xe/0x40
  xsk\_sendmsg+0xda/0x1c0
  \_\_sys\_sendto+0x1ee/0x200
  \_\_x64\_sys\_sendto+0x24/0x30
  do\_syscall\_64+0x84/0x2f0
  ? \_\_pfx\_pollwake+0x10/0x10
  ? \_\_rseq\_handle\_notify\_resume+0xad/0x4c0
  ? restore\_fpregs\_from\_fpstate+0x3c/0x90
  ? switch\_fpu\_return+0x5b/0xe0
  ? do\_syscall\_64+0x204/0x2f0
  ? do\_syscall\_64+0x204/0x2f0
  ? do\_syscall\_64+0x204/0x2f0
  entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
  \</TASK\>
 \[...\]
 Kernel panic - not syncing: Fatal exception in interrupt
 Kernel Offset: 0x1c000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)

Instead use the skb destructor\_arg pointer along with pointer tagging.
As pointers are always aligned to 8B, use the bottom bit to indicate
whether this a single address or an allocated struct containing several
addresses.

## Affected and fixed versions

- Linux: \>= 30f241fcf52aaaef7ac16e66530faa11be78a865, \< c5ea2e50b5c9aa80c5b53526257540f0c26cd66d; \>= 30f241fcf52aaaef7ac16e66530faa11be78a865, \< 0ebc27a4c67d44e5ce88d21cdad8201862b78837; 932cb57e675a62982d4719e4b04e9f09a15a5baf; \>= 6.16.8, \< 6.17 (cvelist)
- Linux: 6.17 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-40290.md
Affected: Linux >= 30f241fcf52aaaef7ac16e66530faa11be78a865, < c5ea2e50b5c9aa80c5b53526257540f0c26cd66d; >= 30f241fcf52aaaef7ac16e66530faa11be78a865, < 0ebc27a4c67d44e5ce88d21cdad8201862b78837; 932cb57e675a62982d4719e4b04e9f09a15a5baf; >= 6.16.8, < 6.17; Linux 6.17
Fixed in: Linux 0ebc27a4c67d44e5ce88d21cdad8201862b78837, Linux 6.17

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 30f241fcf52aaaef7ac16e66530faa11be78a865, \< c5ea2e50b5c9aa80c5b53526257540f0c26cd66d; \>= 30f241fcf52aaaef7ac16e66530faa11be78a865, \< 0ebc27a4c67d44e5ce88d21cdad8201862b78837; 932cb57e675a62982d4719e4b04e9f09a15a5baf; \>= 6.16.8, \< 6.17; Linux 6.17.

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

Yes. Fixed in Linux 0ebc27a4c67d44e5ce88d21cdad8201862b78837, Linux 6.17. Upgrade Linux to 6.17 or later.

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

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/c5ea2e50b5c9aa80c5b53526257540f0c26cd66d>
- other: <https://git.kernel.org/stable/c/0ebc27a4c67d44e5ce88d21cdad8201862b78837>
- other: <https://bugs.debian.org/1118437>

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

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