{"id":"CVE-2025-21954","published":"2025-04-01T15:46:55Z","modified":"2026-08-05T11:55:34Z","title":"netmem: prevent TX of unreadable skbs","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetmem: prevent TX of unreadable skbs\n\nCurrently on stable trees we have support for netmem/devmem RX but not\nTX. It is not safe to forward/redirect an RX unreadable netmem packet\ninto the device's TX path, as the device may call dma-mapping APIs on\ndma addrs that should not be passed to it.\n\nFix this by preventing the xmit of unreadable skbs.\n\nTested by configuring tc redirect:\n\nsudo tc qdisc add dev eth1 ingress\nsudo tc filter add dev eth1 ingress protocol ip prio 1 flower ip_proto \\\n\ttcp src_ip 192.168.1.12 action mirred egress redirect dev eth1\n\nBefore, I see unreadable skbs in the driver's TX path passed to dma\nmapping APIs.\n\nAfter, I don't see unreadable skbs in the driver's TX path passed to dma\nmapping APIs.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00732,"percentile":0.50286,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/454825019d2f0c59e5174ece9e713f45ad80beff","tags":[]},{"url":"https://git.kernel.org/stable/c/1c17c8ced25c5fbe424c7ad7ea11d33014a986b1","tags":[]},{"url":"https://git.kernel.org/stable/c/f3600c867c99a2cc8038680ecf211089c50e7971","tags":[]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":10.06},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 65249feb6b3df9e17bab5911ee56fa7b0971e231, < 454825019d2f0c59e5174ece9e713f45ad80beff",">= 65249feb6b3df9e17bab5911ee56fa7b0971e231, < 1c17c8ced25c5fbe424c7ad7ea11d33014a986b1",">= 65249feb6b3df9e17bab5911ee56fa7b0971e231, < f3600c867c99a2cc8038680ecf211089c50e7971"]},{"vendor":"Linux","product":"Linux","versions":["6.12"]}],"euvd":{"id":"EUVD-2025-9366","exploited":false,"provenance":"source"}}