# CVE-2025-21954: netmem: prevent TX of unreadable skbs

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Published: 2025-04-01T15:46:55.226Z
- Modified: 2026-08-05T11:55:34.681Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

netmem: prevent TX of unreadable skbs

Currently on stable trees we have support for netmem/devmem RX but not
TX. It is not safe to forward/redirect an RX unreadable netmem packet
into the device's TX path, as the device may call dma-mapping APIs on
dma addrs that should not be passed to it.

Fix this by preventing the xmit of unreadable skbs.

Tested by configuring tc redirect:

sudo tc qdisc add dev eth1 ingress
sudo tc filter add dev eth1 ingress protocol ip prio 1 flower ip_proto \
	tcp src_ip 192.168.1.12 action mirred egress redirect dev eth1

Before, I see unreadable skbs in the driver's TX path passed to dma
mapping APIs.

After, I don't see unreadable skbs in the driver's TX path passed to dma
mapping APIs.

(As written by CVE List.)

## Affected

- Linux Linux: from 65249feb6b3df9e17bab5911ee56fa7b0971e231 before 454825019d2f0c59e5174ece9e713f45ad80beff; from 65249feb6b3df9e17bab5911ee56fa7b0971e231 before 1c17c8ced25c5fbe424c7ad7ea11d33014a986b1; from 65249feb6b3df9e17bab5911ee56fa7b0971e231 before f3600c867c99a2cc8038680ecf211089c50e7971; 6.12 (not affected: before 6.12; from 6.12.20 up to 6.12.*; from 6.13.8 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.12 before 6.12.20; from 6.13 before 6.13.8; 6.14

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/454825019d2f0c59e5174ece9e713f45ad80beff> (patch)
- <https://git.kernel.org/stable/c/1c17c8ced25c5fbe424c7ad7ea11d33014a986b1> (patch)
- <https://git.kernel.org/stable/c/f3600c867c99a2cc8038680ecf211089c50e7971> (patch)

## Sources

- CVE List: [CVE-2025-21954](https://www.cve.org/CVERecord?id=CVE-2025-21954), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-21954](https://nvd.nist.gov/vuln/detail/CVE-2025-21954), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-21954 · Whole record: https://cve.day/CVE-2025-21954.json · Rebuilt by cve.day 2026-11-25T22:58:55.905Z
