{"id":71975,"date":"2025-10-20T09:45:36","date_gmt":"2025-10-20T06:15:36","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-40004-net-9p-fix-buffer-overflow-in-usb-transport-layer\/"},"modified":"2025-10-20T09:45:36","modified_gmt":"2025-10-20T06:15:36","slug":"cve-2025-40004-net-9p-fix-buffer-overflow-in-usb-transport-layer","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-40004-net-9p-fix-buffer-overflow-in-usb-transport-layer\/","title":{"rendered":"CVE-2025-40004 &#8211; net\/9p: Fix buffer overflow in USB transport layer"},"content":{"rendered":"<p>CVE ID : CVE-2025-40004<\/p>\n<p>Published :  Oct. 20, 2025, 6:15 a.m. | 26\u00a0minutes ago<\/p>\n<p>Description : In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>net\/9p: Fix buffer overflow in USB transport layer<\/p>\n<p>A buffer overflow vulnerability exists in the USB 9pfs transport layer<br \/>\nwhere inconsistent size validation between packet header parsing and<br \/>\nactual data copying allows a malicious USB host to overflow heap buffers.<\/p>\n<p>The issue occurs because:<br \/>\n&#8211; usb9pfs_rx_header() validates only the declared size in packet header<br \/>\n&#8211; usb9pfs_rx_complete() uses req-&gt;actual (actual received bytes) for<br \/>\nmemcpy<\/p>\n<p>This allows an attacker to craft packets with small declared size<br \/>\n(bypassing validation) but large actual payload (triggering overflow<br \/>\nin memcpy).<\/p>\n<p>Add validation in usb9pfs_rx_complete() to ensure req-&gt;actual does not<br \/>\nexceed the buffer capacity before copying data.<\/p>\n<p>Severity: 0.0 | NA<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-40004 Published : Oct. 20, 2025, 6:15 a.m. | 26\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: net\/9p: Fix buffer overflow in USB transport layer A buffer overflow vulnerability exists in the USB 9pfs transport layer where inconsistent size validation between packet header parsing and actual &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-71975","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/71975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=71975"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/71975\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=71975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=71975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=71975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}