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

目标: 1000 元 · 已筹: 1359 元

100%

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

一分钟漏洞结论

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

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

CVSS 7.8 · High EPSS 0.22% · P12

可能的 ATT&CK 技术 1 AI

T1499 · Endpoint Denial of Service

影响版本矩阵 10

厂商产品 版本范围状态
Linux Linux 8b62b72b26bcd72082c4a69d179dd906bcc22200< 4ace6fb49c8be23b005828763d8b0d0bb0f3b0c5 affected
8b62b72b26bcd72082c4a69d179dd906bcc22200< 10b3772292bf1be45604ba83fd9650eb94382e78 affected
8b62b72b26bcd72082c4a69d179dd906bcc22200< 692cf71173bb41395c855acbbbe197d3aedfa5d4 affected
8b62b72b26bcd72082c4a69d179dd906bcc22200< 06f364284794f149d2abc167c11d556cf20c954b affected
2.6.32 affected
< 2.6.32 unaffected
6.6.160≤ 6.6.* unaffected
6.12.36≤ 6.12.* unaffected
… +2 条更多
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
btrfs: do proper folio cleanup when cow_file_range() failed
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: do proper folio cleanup when cow_file_range() failed [BUG] When testing with COW fixup marked as BUG_ON() (this is involved with the new pin_user_pages*() change, which should not result new out-of-band dirty pages), I hit a crash triggered by the BUG_ON() from hitting COW fixup path. This BUG_ON() happens just after a failed btrfs_run_delalloc_range(): BTRFS error (device dm-2): failed to run delalloc range, root 348 ino 405 folio 65536 submit_bitmap 6-15 start 90112 len 106496: -28 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent_io.c:1444! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP CPU: 0 UID: 0 PID: 434621 Comm: kworker/u24:8 Tainted: G OE 6.12.0-rc7-custom+ #86 Hardware name: QEMU KVM Virtual Machine, BIOS unknown 2/2/2022 Workqueue: events_unbound btrfs_async_reclaim_data_space [btrfs] pc : extent_writepage_io+0x2d4/0x308 [btrfs] lr : extent_writepage_io+0x2d4/0x308 [btrfs] Call trace: extent_writepage_io+0x2d4/0x308 [btrfs] extent_writepage+0x218/0x330 [btrfs] extent_write_cache_pages+0x1d4/0x4b0 [btrfs] btrfs_writepages+0x94/0x150 [btrfs] do_writepages+0x74/0x190 filemap_fdatawrite_wbc+0x88/0xc8 start_delalloc_inodes+0x180/0x3b0 [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: aa1403e1 9402f3ef aa1403e0 9402f36f (d4210000) ---[ end trace 0000000000000000 ]--- [CAUSE] That failure is mostly from cow_file_range(), where we can hit -ENOSPC. Although the -ENOSPC is already a bug related to our space reservation code, let's just focus on the error handling. For example, we have the following dirty range [0, 64K) of an inode, with 4K sector size and 4K page size: 0 16K 32K 48K 64K |///////////////////////////////////////| |#######################################| Where |///| means page are still dirty, and |###| means the extent io tree has EXTENT_DELALLOC flag. - Enter extent_writepage() for page 0 - Enter btrfs_run_delalloc_range() for range [0, 64K) - Enter cow_file_range() for range [0, 64K) - Function btrfs_reserve_extent() only reserved one 16K extent So we created extent map and ordered extent for range [0, 16K) 0 16K 32K 48K 64K |////////|//////////////////////////////| |<- OE ->|##############################| And range [0, 16K) has its delalloc flag cleared. But since we haven't yet submit any bio, involved 4 pages are still dirty. - Function btrfs_reserve_extent() returns with -ENOSPC Now we have to run error cleanup, which will clear all EXTENT_DELALLOC* flags and clear the dirty flags for the remaining ranges: 0 16K 32K 48K 64K |////////| | | | | Note that range [0, 16K) still has its pages dirty. - Some time later, writeback is triggered again for the range [0, 16K) since the page range still has dirty flags. - btrfs_run_delalloc_range() will do nothing because there is no EXTENT_DELALLOC flag. - extent_writepage_io() finds page 0 has no ordered flag Which falls into the COW fixup path, triggering the BUG_ON(). Unfortunately this error handling bug dates back to the introduction of btrfs. Thankfully with the abuse of COW fixup, at least it won't crash the kernel. [FIX] Instead of immediately unlocking the extent and folios, we keep the extent and folios locked until either erroring out or the whole delalloc range finished. When the whole delalloc range finished without error, we just unlock the whole range with PAGE_SET_ORDERED (and PAGE_UNLOCK for !keep_locked cases) ---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存在安全漏洞,该漏洞源于cow_file_range失败时未正确清理folio。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Linux Linux 8b62b72b26bcd72082c4a69d179dd906bcc22200 ~ 4ace6fb49c8be23b005828763d8b0d0bb0f3b0c5 -
Linux Linux 2.6.32 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

CVE-2024-57976 补丁与修复 (3)

同批安全公告 · 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-57976

暂无评论


发表评论