LiveActive security incident?Get immediate response
CVE Record

CVE-2025-40004: net/9p: Fix buffer overflow in USB transport layer

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2025-40004 is a Linux kernel heap buffer overflow in the USB transport layer for 9pfs. A malicious USB host could send inconsistent packet sizes that pass header validation but overflow memory during copying. Business risk is concentrated on systems using this USB 9p transport with exposure to untrusted USB hosts.

Executive priority

Prioritize for fleets that use USB 9pfs or attach to untrusted USB hosts. For typical servers without this transport path, handle through normal kernel patch cycles unless local exposure analysis shows otherwise.

Technical view

The flaw is in net/9p USB transport handling. usb9pfs_rx_header() validates the declared packet size, but usb9pfs_rx_complete() copies req->actual bytes. A small declared size with a larger actual payload can exceed the receive buffer. Kernel stable commits add validation before memcpy to ensure actual received bytes fit the buffer capacity.

Likely exposure

Exposure appears limited to Linux systems with the USB 9pfs transport in use and reachable by a malicious USB host. The provided data lists Linux kernel versions as affected but does not provide downstream distribution package status.

Exploitation context

The source describes a malicious USB host attack path. KEV is false, and the provided bundle contains no evidence of active exploitation or public exploit availability.

Researcher notes

The root cause is validation mismatch between header-declared size and req->actual in receive completion. The fix direction is bounds-checking actual received bytes before copying. The bundle does not include CVSS, CWE, exploit telemetry, or distro-specific fixed versions.

Mitigation direction

  • Update to a Linux kernel containing the referenced stable fixes or a vendor backport.
  • Check Linux distribution advisories for exact patched package versions.
  • Reduce use of USB 9pfs transport where it is not operationally required.
  • Treat untrusted USB host connectivity as unsafe until patched.

Validation and detection

  • Inventory systems running Linux kernels in the affected version range.
  • Confirm whether USB 9pfs transport is enabled or used.
  • Map installed kernel packages to vendor advisories or referenced stable commits.
  • Prioritize validation on systems exposed to untrusted USB host connections.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2025-40004 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
3Timeline events
0ADP providers
4Source links

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinuxa3be076dc174d9022a71a12554feb4c97b5c4d5c, a3be076dc174d9022a71a12554feb4c97b5c4d5c, a3be076dc174d9022a71a12554feb4c97b5c4d5cunaffected
LinuxLinux6.12, 0, 6.12.53, 6.17.3, 6.18affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.