Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于USB 9pfs传输层中数据包头解析和实际数据复制之间的不一致大小验证,可能导致堆缓冲区溢出。

AI Predicted 7.8 Difficulty: Moderate EPSS 0.27% · P18

Possible ATT&CK Techniques 1 AI

T1203 · Exploitation for Client Execution

Affected Version Matrix 8

VendorProduct Version RangeStatus
Linux Linux a3be076dc174d9022a71a12554feb4c97b5c4d5c< 0da18d49f874d444ad83c8a546fa33bfcf2f582c affected
a3be076dc174d9022a71a12554feb4c97b5c4d5c< df8462f0fc045b4475dc494a5787a03c972ba2a2 affected
a3be076dc174d9022a71a12554feb4c97b5c4d5c< c04db81cd0288dfc68b7a0f7d09bd49b40bba451 affected
6.12 affected
< 6.12 unaffected
6.12.53≤ 6.12.* unaffected
6.17.3≤ 6.17.* unaffected
6.18≤ * unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-40004

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
net/9p: Fix buffer overflow in USB transport layer
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于USB 9pfs传输层中数据包头解析和实际数据复制之间的不一致大小验证,可能导致堆缓冲区溢出。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux a3be076dc174d9022a71a12554feb4c97b5c4d5c ~ 0da18d49f874d444ad83c8a546fa33bfcf2f582c -
Linux Linux 6.12 -

II. Public POCs for CVE-2025-40004

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-40004

请登录查看更多情报信息。

Patches & Fixes for CVE-2025-40004 (1)

Same Patch Batch · Linux · 2025-10-20 · 13 CVEs total

CVE-2025-40012 7.8 HIGH net/smc: fix warning in smc_rx_splice() when calling get_page()
CVE-2025-40006 7.8 HIGH mm/hugetlb: fix folio is still mapped when deleted
CVE-2025-40017 media: iris: Fix memory leak by freeing untracked persist buffer
CVE-2025-40015 media: stm32-csi: Fix dereference before NULL check
CVE-2025-40016 media: uvcvideo: Mark invalid entities with id UVC_INVALID_ENTITY_ID
CVE-2025-40013 ASoC: qcom: audioreach: fix potential null pointer dereference
CVE-2025-40011 drm/gma500: Fix null dereference in hdmi teardown
CVE-2025-40010 afs: Fix potential null pointer dereference in afs_put_server
CVE-2025-40009 fs/proc/task_mmu: check p->vec_buf for NULL
CVE-2025-40008 kmsan: fix out-of-bounds access to shadow memory
CVE-2025-40007 netfs: fix reference leak
CVE-2025-40005 spi: cadence-quadspi: Implement refcount to handle unbind during busy

IV. Related Vulnerabilities

V. Comments for CVE-2025-40004

No comments yet


Leave a comment