Linux Kernel up to 6.12.52/6.17.2 USB 9pfs Transport Layer usb9pfs_rx_header buffer overflow

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
7.6$0-$5k0.00

Summaryinfo

A vulnerability has been found in Linux Kernel up to 6.12.52/6.17.2 and classified as critical. Affected is the function usb9pfs_rx_header of the component USB 9pfs Transport Layer. Performing a manipulation results in buffer overflow. This vulnerability is identified as CVE-2025-40004. There is not any exploit available. The affected component should be upgraded.

Detailsinfo

A vulnerability classified as critical has been found in Linux Kernel up to 6.12.52/6.17.2. This affects the function usb9pfs_rx_header of the component USB 9pfs Transport Layer. The manipulation with an unknown input leads to a buffer overflow vulnerability. CWE is classifying the issue as CWE-120. The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:

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.

It is possible to read the advisory at git.kernel.org. This vulnerability is uniquely identified as CVE-2025-40004 since 04/16/2025. The exploitability is told to be easy. Technical details of the vulnerability are known, but there is no available exploit. The pricing for an exploit might be around USD $0-$5k at the moment (estimation calculated on 02/13/2026).

The vulnerability scanner Nessus provides a plugin with the ID 271675 (Linux Distros Unpatched Vulnerability : CVE-2025-40004), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 6.12.53, 6.17.3 or 6.18-rc1 eliminates this vulnerability. Applying the patch 0da18d49f874d444ad83c8a546fa33bfcf2f582c/df8462f0fc045b4475dc494a5787a03c972ba2a2/c04db81cd0288dfc68b7a0f7d09bd49b40bba451 is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the databases at CNNVD (CNNVD-202510-2635), Tenable (271675), EUVD (EUVD-2025-35036) and CERT Bund (WID-SEC-2025-2340). Be aware that VulDB is the high quality source for vulnerability data.

Affected

  • Debian Linux
  • Amazon Linux 2
  • Ubuntu Linux
  • SUSE Linux
  • Oracle Linux
  • SUSE openSUSE
  • Open Source Linux Kernel

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.0
VulDB Meta Temp Score: 7.6

VulDB Base Score: 8.0
VulDB Temp Score: 7.6
VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Buffer overflow
CWE: CWE-120 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒

Physical: No
Local: No
Remote: Partially

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 271675
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-40004

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: Kernel 6.12.53/6.17.3/6.18-rc1
Patch: 0da18d49f874d444ad83c8a546fa33bfcf2f582c/df8462f0fc045b4475dc494a5787a03c972ba2a2/c04db81cd0288dfc68b7a0f7d09bd49b40bba451

Timelineinfo

04/16/2025 CVE reserved
10/20/2025 +187 days Advisory disclosed
10/20/2025 +0 days VulDB entry created
02/13/2026 +116 days VulDB entry last update

Sourcesinfo

Vendor: kernel.org

Advisory: git.kernel.org
Status: Confirmed

CVE: CVE-2025-40004 (🔒)
GCVE (CVE): GCVE-0-2025-40004
GCVE (VulDB): GCVE-100-329031
EUVD: 🔒
CERT Bund: WID-SEC-2025-2340 - Linux Kernel: Mehrere Schwachstellen ermöglichen Denial of Service
CNNVD: CNNVD-202510-2635 - Linux kernel 安全漏洞

Entryinfo

Created: 10/20/2025 10:28
Updated: 02/13/2026 03:21
Changes: 10/20/2025 10:28 (59), 10/20/2025 10:53 (1), 10/20/2025 19:02 (7), 10/21/2025 21:21 (6), 10/27/2025 19:53 (2), 12/22/2025 04:02 (1), 02/13/2026 03:21 (1)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!