CVE-2025-40004 Details
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 data copying allows a malicious USB host to overflow heap buffers. The issue occurs because: - usb9pfs_rx_header() validates only the declared size in packet header - usb9pfs_rx_complete() uses req->actual (actual received bytes) for memcpy This allows an attacker to craft packets with small declared size (bypassing validation) but large actual payload (triggering overflow in memcpy). Add validation in usb9pfs_rx_complete() to ensure req->actual does not exceed the buffer capacity before copying data.
A buffer overflow vulnerability has been identified in the USB 9pfs transport layer of the Linux kernel. This issue arises from inconsistent size validation between packet header parsing and actual data copying, allowing a malicious USB host to overflow heap buffers. The vulnerability occurs because the function usb9pfs_rx_header() only validates the declared size in the packet header, while usb9pfs_rx_complete() uses the actual received bytes for memory copying. As a result, an attacker can craft packets with a small declared size that bypasses validation, but with a large actual payload that triggers the overflow during the copying process.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been patched. Instructions for downloading the updated kernel can be found on the official Linux kernel website.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 20, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0da18d49f874d444ad83c8a546fa33bfcf2f582c | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/c04db81cd0288dfc68b7a0f7d09bd49b40bba451 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/df8462f0fc045b4475dc494a5787a03c972ba2a2 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 20, 2025 | New CVE Received | kernel.org |
Volerion