{"id":"CVE-2025-40004","published":"2025-10-20T05:26:08Z","modified":"2026-05-11T21:40:36Z","title":"net/9p: Fix buffer overflow in USB transport layer","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/9p: Fix buffer overflow in USB transport layer\n\nA buffer overflow vulnerability exists in the USB 9pfs transport layer\nwhere inconsistent size validation between packet header parsing and\nactual data copying allows a malicious USB host to overflow heap buffers.\n\nThe issue occurs because:\n- usb9pfs_rx_header() validates only the declared size in packet header\n- usb9pfs_rx_complete() uses req->actual (actual received bytes) for\nmemcpy\n\nThis allows an attacker to craft packets with small declared size\n(bypassing validation) but large actual payload (triggering overflow\nin memcpy).\n\nAdd validation in usb9pfs_rx_complete() to ensure req->actual does not\nexceed the buffer capacity before copying data.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00303,"percentile":0.1546,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/0da18d49f874d444ad83c8a546fa33bfcf2f582c","tags":[]},{"url":"https://git.kernel.org/stable/c/df8462f0fc045b4475dc494a5787a03c972ba2a2","tags":[]},{"url":"https://git.kernel.org/stable/c/c04db81cd0288dfc68b7a0f7d09bd49b40bba451","tags":[]}],"priority":{"score":3.1,"factors":[{"name":"EPSS percentile","points":3.09}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < 0da18d49f874d444ad83c8a546fa33bfcf2f582c",">= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < df8462f0fc045b4475dc494a5787a03c972ba2a2",">= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < c04db81cd0288dfc68b7a0f7d09bd49b40bba451"]},{"vendor":"Linux","product":"Linux","versions":["6.12"]}],"euvd":{"id":"EUVD-2025-35036","exploited":false,"provenance":"source"}}