目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2025-40007— Linux kernel 安全漏洞

一分钟漏洞结论

影响对象
Linux Linux
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于netfs_alloc_request函数中引用计数初始化不当,可能导致引用泄漏和死锁。

AI 预测 6.5 利用难度: 困难 EPSS 0.22% · P12

可能的 ATT&CK 技术 1 AI

T1499 · Endpoint Denial of Service

影响版本矩阵 8

厂商产品 版本范围状态
Linux Linux 20d72b00ca814d748f5663484e5c53bb2bf37a3a< 8df142e93098b4531fadb5dfcf93087649f570b3 affected
20d72b00ca814d748f5663484e5c53bb2bf37a3a< 4d428dca252c858bfac691c31fa95d26cd008706 affected
1a8360c2eed3b292ed654c2ac61b09de4a80e298 affected
6.15.3< 6.16 affected
6.16 affected
< 6.16 unaffected
6.16.10≤ 6.16.* unaffected
6.17≤ * unaffected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2025-40007 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
netfs: fix reference leak
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: netfs: fix reference leak Commit 20d72b00ca81 ("netfs: Fix the request's work item to not require a ref") modified netfs_alloc_request() to initialize the reference counter to 2 instead of 1. The rationale was that the requet's "work" would release the second reference after completion (via netfs_{read,write}_collection_worker()). That works most of the time if all goes well. However, it leaks this additional reference if the request is released before the I/O operation has been submitted: the error code path only decrements the reference counter once and the work item will never be queued because there will never be a completion. This has caused outages of our whole server cluster today because tasks were blocked in netfs_wait_for_outstanding_io(), leading to deadlocks in Ceph (another bug that I will address soon in another patch). This was caused by a netfs_pgpriv2_begin_copy_to_cache() call which failed in fscache_begin_write_operation(). The leaked netfs_io_request was never completed, leaving `netfs_inode.io_count` with a positive value forever. All of this is super-fragile code. Finding out which code paths will lead to an eventual completion and which do not is hard to see: - Some functions like netfs_create_write_req() allocate a request, but will never submit any I/O. - netfs_unbuffered_read_iter_locked() calls netfs_unbuffered_read() and then netfs_put_request(); however, netfs_unbuffered_read() can also fail early before submitting the I/O request, therefore another netfs_put_request() call must be added there. A rule of thumb is that functions that return a `netfs_io_request` do not submit I/O, and all of their callers must be checked. For my taste, the whole netfs code needs an overhaul to make reference counting easier to understand and less fragile & obscure. But to fix this bug here and now and produce a patch that is adequate for a stable backport, I tried a minimal approach that quickly frees the request object upon early failure. I decided against adding a second netfs_put_request() each time because that would cause code duplication which obscures the code further. Instead, I added the function netfs_put_failed_request() which frees such a failed request synchronously under the assumption that the reference count is exactly 2 (as initially set by netfs_alloc_request() and never touched), verified by a WARN_ON_ONCE(). It then deinitializes the request object (without going through the "cleanup_work" indirection) and frees the allocation (with RCU protection to protect against concurrent access by netfs_requests_seq_start()). All code paths that fail early have been changed to call netfs_put_failed_request() instead of netfs_put_request(). Additionally, I have added a netfs_put_request() call to netfs_unbuffered_read() as explained above because the netfs_put_failed_request() approach does not work there.
来源: CVE Program / CVE List V5
CVSS Information
N/A
来源: CVE Program / CVE List V5
Vulnerability Type
N/A
来源: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于netfs_alloc_request函数中引用计数初始化不当,可能导致引用泄漏和死锁。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Linux Linux 20d72b00ca814d748f5663484e5c53bb2bf37a3a ~ 8df142e93098b4531fadb5dfcf93087649f570b3 -
Linux Linux 6.16 -

二、漏洞 CVE-2025-40007 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2025-40007 的情报信息

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

同批安全公告 · Linux · 2025-10-20 · 共 13 条

CVE-2025-40012 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-40006 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-40017 Linux kernel 安全漏洞
CVE-2025-40015 Linux kernel 安全漏洞
CVE-2025-40016 Linux kernel 安全漏洞
CVE-2025-40013 Linux kernel 安全漏洞
CVE-2025-40011 Linux kernel 安全漏洞
CVE-2025-40010 Linux kernel 安全漏洞
CVE-2025-40009 Linux kernel 安全漏洞
CVE-2025-40008 Linux kernel 安全漏洞
CVE-2025-40005 Linux kernel 安全漏洞
CVE-2025-40004 Linux kernel 安全漏洞

IV. Related Vulnerabilities

V. Comments for CVE-2025-40007

暂无评论


发表评论