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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2024-57975— Linux kernel 安全漏洞

一分钟漏洞结论

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

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于run_delalloc_nocow失败时未正确清理folio。

CVSS 7.8 · High EPSS 0.22% · P11

可能的 ATT&CK 技术 1 AI

T1496 · Resource Hijacking

影响版本矩阵 10

厂商产品 版本范围状态
Linux Linux 17ca04aff7e6171df684b7b65804df8830eb8c15< 545d6893d3a34737d000af103e1557c592075c41 affected
17ca04aff7e6171df684b7b65804df8830eb8c15< 5ae72abbf91eb172ce3a838a4dc34be3c9707296 affected
17ca04aff7e6171df684b7b65804df8830eb8c15< 2434533f1c963e7317c45880c98287e5bed98325 affected
17ca04aff7e6171df684b7b65804df8830eb8c15< c2b47df81c8e20a8e8cd94f0d7df211137ae94ed affected
3.5 affected
< 3.5 unaffected
6.6.160≤ 6.6.* unaffected
6.12.13≤ 6.12.* unaffected
… +2 条更多
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2024-57975 基础信息

漏洞信息

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

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

Vulnerability Title
btrfs: do proper folio cleanup when run_delalloc_nocow() failed
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: do proper folio cleanup when run_delalloc_nocow() failed [BUG] With CONFIG_DEBUG_VM set, test case generic/476 has some chance to crash with the following VM_BUG_ON_FOLIO(): BTRFS error (device dm-3): cow_file_range failed, start 1146880 end 1253375 len 106496 ret -28 BTRFS error (device dm-3): run_delalloc_nocow failed, start 1146880 end 1253375 len 106496 ret -28 page: refcount:4 mapcount:0 mapping:00000000592787cc index:0x12 pfn:0x10664 aops:btrfs_aops [btrfs] ino:101 dentry name(?):"f1774" flags: 0x2fffff80004028(uptodate|lru|private|node=0|zone=2|lastcpupid=0xfffff) page dumped because: VM_BUG_ON_FOLIO(!folio_test_locked(folio)) ------------[ cut here ]------------ kernel BUG at mm/page-writeback.c:2992! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP CPU: 2 UID: 0 PID: 3943513 Comm: kworker/u24:15 Tainted: G OE 6.12.0-rc7-custom+ #87 Tainted: [O]=OOT_MODULE, [E]=UNSIGNED_MODULE Hardware name: QEMU KVM Virtual Machine, BIOS unknown 2/2/2022 Workqueue: events_unbound btrfs_async_reclaim_data_space [btrfs] pc : folio_clear_dirty_for_io+0x128/0x258 lr : folio_clear_dirty_for_io+0x128/0x258 Call trace: folio_clear_dirty_for_io+0x128/0x258 btrfs_folio_clamp_clear_dirty+0x80/0xd0 [btrfs] __process_folios_contig+0x154/0x268 [btrfs] extent_clear_unlock_delalloc+0x5c/0x80 [btrfs] run_delalloc_nocow+0x5f8/0x760 [btrfs] btrfs_run_delalloc_range+0xa8/0x220 [btrfs] writepage_delalloc+0x230/0x4c8 [btrfs] extent_writepage+0xb8/0x358 [btrfs] extent_write_cache_pages+0x21c/0x4e8 [btrfs] btrfs_writepages+0x94/0x150 [btrfs] do_writepages+0x74/0x190 filemap_fdatawrite_wbc+0x88/0xc8 start_delalloc_inodes+0x178/0x3a8 [btrfs] btrfs_start_delalloc_roots+0x174/0x280 [btrfs] shrink_delalloc+0x114/0x280 [btrfs] flush_space+0x250/0x2f8 [btrfs] btrfs_async_reclaim_data_space+0x180/0x228 [btrfs] process_one_work+0x164/0x408 worker_thread+0x25c/0x388 kthread+0x100/0x118 ret_from_fork+0x10/0x20 Code: 910a8021 a90363f7 a9046bf9 94012379 (d4210000) ---[ end trace 0000000000000000 ]--- [CAUSE] The first two lines of extra debug messages show the problem is caused by the error handling of run_delalloc_nocow(). E.g. we have the following dirtied range (4K blocksize 4K page size): 0 16K 32K |//////////////////////////////////////| | Pre-allocated | And the range [0, 16K) has a preallocated extent. - Enter run_delalloc_nocow() for range [0, 16K) Which found range [0, 16K) is preallocated, can do the proper NOCOW write. - Enter fallback_to_fow() for range [16K, 32K) Since the range [16K, 32K) is not backed by preallocated extent, we have to go COW. - cow_file_range() failed for range [16K, 32K) So cow_file_range() will do the clean up by clearing folio dirty, unlock the folios. Now the folios in range [16K, 32K) is unlocked. - Enter extent_clear_unlock_delalloc() from run_delalloc_nocow() Which is called with PAGE_START_WRITEBACK to start page writeback. But folios can only be marked writeback when it's properly locked, thus this triggered the VM_BUG_ON_FOLIO(). Furthermore there is another hidden but common bug that run_delalloc_nocow() is not clearing the folio dirty flags in its error handling path. This is the common bug shared between run_delalloc_nocow() and cow_file_range(). [FIX] - Clear folio dirty for range [@start, @cur_offset) Introduce a helper, cleanup_dirty_folios(), which will find and lock the folio in the range, clear the dirty flag and start/end the writeback, with the extra handling for the @locked_folio. - Introduce a helper to clear folio dirty, start and end writeback - Introduce a helper to record the last failed COW range end This is to trace which range we should skip, to avoid double unlocking. - Skip the failed COW range for the e ---truncated---
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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存在安全漏洞,该漏洞源于run_delalloc_nocow失败时未正确清理folio。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Linux Linux 17ca04aff7e6171df684b7b65804df8830eb8c15 ~ 545d6893d3a34737d000af103e1557c592075c41 -
Linux Linux 3.5 -

二、漏洞 CVE-2024-57975 的公开POC

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

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2024-57975 的情报信息

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

CVE-2024-57975 补丁与修复 (4)

同批安全公告 · Linux · 2025-02-27 · 共 177 条

CVE-2025-21805 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2025-21707 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2025-21748 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2025-21796 9.8 CRITICAL Linux kernel 资源管理错误漏洞
CVE-2024-58006 9.6 CRITICAL Linux kernel 安全漏洞
CVE-2024-57999 8.8 HIGH Linux kernel 安全漏洞
CVE-2024-57997 8.8 HIGH Linux kernel 安全漏洞
CVE-2024-57995 8.8 HIGH Linux kernel 安全漏洞
CVE-2025-21735 8.8 HIGH Linux kernel 安全漏洞
CVE-2025-21710 8.2 HIGH Linux kernel 安全漏洞
CVE-2024-57973 8.1 HIGH Linux kernel 安全漏洞
CVE-2025-21760 8.1 HIGH Linux kernel 资源管理错误漏洞
CVE-2025-21762 8.1 HIGH Linux kernel 资源管理错误漏洞
CVE-2025-21766 8.1 HIGH Linux kernel 安全漏洞
CVE-2025-21765 8.1 HIGH Linux kernel 安全漏洞
CVE-2024-58003 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-54456 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-21780 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-58004 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-58002 7.8 HIGH Linux kernel 安全漏洞

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-57975

暂无评论


发表评论