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

目标: 1000 元 · 已筹: 1336

100%

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

一分钟漏洞结论

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

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于btrfs_add_qgroup_relation函数在无效qgroup级别时未释放预分配的qgroup_list结构,可能导致内存泄漏。

AI 预测 5.5 利用难度: 中等 EPSS 0.18% · P8

影响版本矩阵 8

厂商产品 版本范围状态
Linux Linux 4addc1ffd67ad34394674dc91379dc04cfdd2537< 3412d0e973e8f8381747d69033eda809a57a2581 affected
4addc1ffd67ad34394674dc91379dc04cfdd2537< a4d9ebe23bcb79d9d057e3c995db73b7b3aae414 affected
4addc1ffd67ad34394674dc91379dc04cfdd2537< f260c6aff0b8af236084012d14f9f1bf792ea883 affected
6.11 affected
< 6.11 unaffected
6.12.58≤ 6.12.* unaffected
6.17.8≤ 6.17.* unaffected
6.18≤ * unaffected
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
btrfs: fix memory leak of qgroup_list in btrfs_add_qgroup_relation
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix memory leak of qgroup_list in btrfs_add_qgroup_relation When btrfs_add_qgroup_relation() is called with invalid qgroup levels (src >= dst), the function returns -EINVAL directly without freeing the preallocated qgroup_list structure passed by the caller. This causes a memory leak because the caller unconditionally sets the pointer to NULL after the call, preventing any cleanup. The issue occurs because the level validation check happens before the mutex is acquired and before any error handling path that would free the prealloc pointer. On this early return, the cleanup code at the 'out' label (which includes kfree(prealloc)) is never reached. In btrfs_ioctl_qgroup_assign(), the code pattern is: prealloc = kzalloc(sizeof(*prealloc), GFP_KERNEL); ret = btrfs_add_qgroup_relation(trans, sa->src, sa->dst, prealloc); prealloc = NULL; // Always set to NULL regardless of return value ... kfree(prealloc); // This becomes kfree(NULL), does nothing When the level check fails, 'prealloc' is never freed by either the callee or the caller, resulting in a 64-byte memory leak per failed operation. This can be triggered repeatedly by an unprivileged user with access to a writable btrfs mount, potentially exhausting kernel memory. Fix this by freeing prealloc before the early return, ensuring prealloc is always freed on all error paths.
来源: 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存在安全漏洞,该漏洞源于btrfs_add_qgroup_relation函数在无效qgroup级别时未释放预分配的qgroup_list结构,可能导致内存泄漏。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Linux Linux 4addc1ffd67ad34394674dc91379dc04cfdd2537 ~ 3412d0e973e8f8381747d69033eda809a57a2581 -
Linux Linux 6.11 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

登录查看更多情报信息。

同批安全公告 · Linux · 2025-11-21 · 共 3 条

CVE-2025-40210 7.5 HIGH Linux kernel 安全漏洞
CVE-2025-40211 Linux kernel 安全漏洞

IV. Related Vulnerabilities

V. Comments for CVE-2025-40209

暂无评论


发表评论