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

目标: 1000 元 · 已筹: 1359 元

100%

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

一分钟漏洞结论

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

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于重命名和目录日志之间存在竞争条件。

CVSS 9.1 · Critical EPSS 0.33% · P25

可能的 ATT&CK 技术 1 AI

T1070 · Indicator Removal

影响版本矩阵 12

厂商产品 版本范围状态
Linux Linux 259c4b96d78dda8477a3ac21d6b3cf0eb9f75c8b< 51bd363c7010d033d3334daf457c824484bf9bf0 affected
259c4b96d78dda8477a3ac21d6b3cf0eb9f75c8b< aeeae8feeaae4445a86f9815273e81f902dc1f5b affected
259c4b96d78dda8477a3ac21d6b3cf0eb9f75c8b< 2088895d5903082bb9021770b919e733c57edbc1 affected
259c4b96d78dda8477a3ac21d6b3cf0eb9f75c8b< 8c6874646c21bd820cf475e2874e62c133954023 affected
259c4b96d78dda8477a3ac21d6b3cf0eb9f75c8b< 3ca864de852bc91007b32d2a0d48993724f4abad affected
5.18 affected
< 5.18 unaffected
6.1.143≤ 6.1.* unaffected
… +4 条更多
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
btrfs: fix a race between renames and directory logging
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix a race between renames and directory logging We have a race between a rename and directory inode logging that if it happens and we crash/power fail before the rename completes, the next time the filesystem is mounted, the log replay code will end up deleting the file that was being renamed. This is best explained following a step by step analysis of an interleaving of steps that lead into this situation. Consider the initial conditions: 1) We are at transaction N; 2) We have directories A and B created in a past transaction (< N); 3) We have inode X corresponding to a file that has 2 hardlinks, one in directory A and the other in directory B, so we'll name them as "A/foo_link1" and "B/foo_link2". Both hard links were persisted in a past transaction (< N); 4) We have inode Y corresponding to a file that as a single hard link and is located in directory A, we'll name it as "A/bar". This file was also persisted in a past transaction (< N). The steps leading to a file loss are the following and for all of them we are under transaction N: 1) Link "A/foo_link1" is removed, so inode's X last_unlink_trans field is updated to N, through btrfs_unlink() -> btrfs_record_unlink_dir(); 2) Task A starts a rename for inode Y, with the goal of renaming from "A/bar" to "A/baz", so we enter btrfs_rename(); 3) Task A inserts the new BTRFS_INODE_REF_KEY for inode Y by calling btrfs_insert_inode_ref(); 4) Because the rename happens in the same directory, we don't set the last_unlink_trans field of directoty A's inode to the current transaction id, that is, we don't cal btrfs_record_unlink_dir(); 5) Task A then removes the entries from directory A (BTRFS_DIR_ITEM_KEY and BTRFS_DIR_INDEX_KEY items) when calling __btrfs_unlink_inode() (actually the dir index item is added as a delayed item, but the effect is the same); 6) Now before task A adds the new entry "A/baz" to directory A by calling btrfs_add_link(), another task, task B is logging inode X; 7) Task B starts a fsync of inode X and after logging inode X, at btrfs_log_inode_parent() it calls btrfs_log_all_parents(), since inode X has a last_unlink_trans value of N, set at in step 1; 8) At btrfs_log_all_parents() we search for all parent directories of inode X using the commit root, so we find directories A and B and log them. Bu when logging direct A, we don't have a dir index item for inode Y anymore, neither the old name "A/bar" nor for the new name "A/baz" since the rename has deleted the old name but has not yet inserted the new name - task A hasn't called yet btrfs_add_link() to do that. Note that logging directory A doesn't fallback to a transaction commit because its last_unlink_trans has a lower value than the current transaction's id (see step 4); 9) Task B finishes logging directories A and B and gets back to btrfs_sync_file() where it calls btrfs_sync_log() to persist the log tree; 10) Task B successfully persisted the log tree, btrfs_sync_log() completed with success, and a power failure happened. We have a log tree without any directory entry for inode Y, so the log replay code deletes the entry for inode Y, name "A/bar", from the subvolume tree since it doesn't exist in the log tree and the log tree is authorative for its index (we logged a BTRFS_DIR_LOG_INDEX_KEY item that covers the index range for the dentry that corresponds to "A/bar"). Since there's no other hard link for inode Y and the log replay code deletes the name "A/bar", the file is lost. The issue wouldn't happen if task B synced the log only after task A called btrfs_log_new_name(), which would update the log with the new name for inode Y ("A/bar"). Fix this by pinning the log root during renames before removing the old directory entry, and unpinning af ---truncated---
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
来源: 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存在安全漏洞,该漏洞源于重命名和目录日志之间存在竞争条件。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Linux Linux 259c4b96d78dda8477a3ac21d6b3cf0eb9f75c8b ~ 51bd363c7010d033d3334daf457c824484bf9bf0 -
Linux Linux 5.18 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

同批安全公告 · Linux · 2025-07-25 · 共 114 条

CVE-2025-38429 10.0 CRITICAL Linux kernel 安全漏洞
CVE-2025-38430 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2025-38411 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2025-38439 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2025-38437 8.8 HIGH Linux kernel 安全漏洞
CVE-2025-38377 8.8 HIGH Linux kernel 安全漏洞
CVE-2025-38367 8.8 HIGH Linux kernel 安全漏洞
CVE-2025-38375 8.4 HIGH Linux kernel 安全漏洞
CVE-2025-38395 8.4 HIGH Linux kernel 安全漏洞
CVE-2025-38434 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38449 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38382 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38412 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38447 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38401 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38398 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38396 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38440 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38422 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38435 7.8 HIGH Linux kernel 安全漏洞

显示前 20 条,共 114 条。 查看全部 &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2025-38365

暂无评论


发表评论