VDB

CVE-2025-40004

CVE-2025-40004 PUBLISHED

net/9p: Fix buffer overflow in USB transport layer

Reported by linux · Published October 20, 2025

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.

EPSS 0.27% · 19.0th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinuxdf8462f0fc045b4475dc494a5787a03c972ba2a2, c04db81cd0288dfc68b7a0f7d09bd49b40bba451, 6.12, 0da18d49f874d444ad83c8a546fa33bfcf2f582c

Risk scores

EPSS Score
0.27%
19.0th percentile

Affected products

VendorProductVersions
LinuxLinuxa3be076dc174d9022a71a12554feb4c97b5c4d5c, a3be076dc174d9022a71a12554feb4c97b5c4d5c, a3be076dc174d9022a71a12554feb4c97b5c4d5c
LinuxLinux6.12, 0, 6.12.53
LinuxLinux6.12, 6.12.53, 6.17.3
linuxlinux_kernel6.12, 6.12, 6.12

Timeline

  • Oct 19, 2025 CVE Published
  • Oct 20, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 20, 2025 Coalition ESS Score (7 in total, the first dated here)
  • Dec 15, 2025 Security Advisory (64 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (61 in total, the first dated here)
  • May 11, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-40004
vulnetix vdb fixes CVE-2025-40004

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40004/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›