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

目标: 1000 元 · 已筹: 1359 元

100%

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

一分钟漏洞结论

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

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于btrfs子页面在清理前过早清除TOWRITE标签,可能导致排序保证失效和文件截断错误。

CVSS 7.8 · High EPSS 0.15% · P4

影响版本矩阵 8

厂商产品 版本范围状态
Linux Linux 3470da3b7d87fde4b9729d4e29c2dc074cd59c10< 3d61136945a7008fc90d013c3c67007ce0c96131 affected
3470da3b7d87fde4b9729d4e29c2dc074cd59c10< bce7a5c77a1e7a759e227b7713dde18c52da4759 affected
3470da3b7d87fde4b9729d4e29c2dc074cd59c10< b1511360c8ac882b0c52caa263620538e8d73220 affected
5.13 affected
< 5.13 unaffected
6.12.44≤ 6.12.* unaffected
6.16.4≤ 6.16.* unaffected
6.17≤ * unaffected
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
btrfs: subpage: keep TOWRITE tag until folio is cleaned
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: subpage: keep TOWRITE tag until folio is cleaned btrfs_subpage_set_writeback() calls folio_start_writeback() the first time a folio is written back, and it also clears the PAGECACHE_TAG_TOWRITE tag even if there are still dirty blocks in the folio. This can break ordering guarantees, such as those required by btrfs_wait_ordered_extents(). That ordering breakage leads to a real failure. For example, running generic/464 on a zoned setup will hit the following ASSERT. This happens because the broken ordering fails to flush existing dirty pages before the file size is truncated. assertion failed: !list_empty(&ordered->list) :: 0, in fs/btrfs/zoned.c:1899 ------------[ cut here ]------------ kernel BUG at fs/btrfs/zoned.c:1899! Oops: invalid opcode: 0000 [#1] SMP NOPTI CPU: 2 UID: 0 PID: 1906169 Comm: kworker/u130:2 Kdump: loaded Not tainted 6.16.0-rc6-BTRFS-ZNS+ #554 PREEMPT(voluntary) Hardware name: Supermicro Super Server/H12SSL-NT, BIOS 2.0 02/22/2021 Workqueue: btrfs-endio-write btrfs_work_helper [btrfs] RIP: 0010:btrfs_finish_ordered_zoned.cold+0x50/0x52 [btrfs] RSP: 0018:ffffc9002efdbd60 EFLAGS: 00010246 RAX: 000000000000004c RBX: ffff88811923c4e0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff827e38b1 RDI: 00000000ffffffff RBP: ffff88810005d000 R08: 00000000ffffdfff R09: ffffffff831051c8 R10: ffffffff83055220 R11: 0000000000000000 R12: ffff8881c2458c00 R13: ffff88811923c540 R14: ffff88811923c5e8 R15: ffff8881c1bd9680 FS: 0000000000000000(0000) GS:ffff88a04acd0000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f907c7a918c CR3: 0000000004024000 CR4: 0000000000350ef0 Call Trace: <TASK> ? srso_return_thunk+0x5/0x5f btrfs_finish_ordered_io+0x4a/0x60 [btrfs] btrfs_work_helper+0xf9/0x490 [btrfs] process_one_work+0x204/0x590 ? srso_return_thunk+0x5/0x5f worker_thread+0x1d6/0x3d0 ? __pfx_worker_thread+0x10/0x10 kthread+0x118/0x230 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x205/0x260 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 </TASK> Consider process A calling writepages() with WB_SYNC_NONE. In zoned mode or for compressed writes, it locks several folios for delalloc and starts writing them out. Let's call the last locked folio folio X. Suppose the write range only partially covers folio X, leaving some pages dirty. Process A calls btrfs_subpage_set_writeback() when building a bio. This function call clears the TOWRITE tag of folio X, whose size = 8K and the block size = 4K. It is following state. 0 4K 8K |/////|/////| (flag: DIRTY, tag: DIRTY) <-----> Process A will write this range. Now suppose process B concurrently calls writepages() with WB_SYNC_ALL. It calls tag_pages_for_writeback() to tag dirty folios with PAGECACHE_TAG_TOWRITE. Since folio X is still dirty, it gets tagged. Then, B collects tagged folios using filemap_get_folios_tag() and must wait for folio X to be written before returning from writepages(). 0 4K 8K |/////|/////| (flag: DIRTY, tag: DIRTY|TOWRITE) However, between tagging and collecting, process A may call btrfs_subpage_set_writeback() and clear folio X's TOWRITE tag. 0 4K 8K | |/////| (flag: DIRTY|WRITEBACK, tag: DIRTY) As a result, process B won't see folio X in its batch, and returns without waiting for it. This breaks the WB_SYNC_ALL ordering requirement. Fix this by using btrfs_subpage_set_writeback_keepwrite(), which retains the TOWRITE tag. We now manually clear the tag only after the folio becomes clean, via the xas operation.
来源: 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存在安全漏洞,该漏洞源于btrfs子页面在清理前过早清除TOWRITE标签,可能导致排序保证失效和文件截断错误。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Linux Linux 3470da3b7d87fde4b9729d4e29c2dc074cd59c10 ~ 3d61136945a7008fc90d013c3c67007ce0c96131 -
Linux Linux 5.13 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

同批安全公告 · Linux · 2025-09-11 · 共 54 条

CVE-2025-39758 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2025-39761 8.8 HIGH Linux kernel 安全漏洞
CVE-2025-39750 8.8 HIGH Linux kernel 安全漏洞
CVE-2025-39790 8.4 HIGH Linux kernel 安全漏洞
CVE-2025-39791 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-39780 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-39787 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-39740 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-39786 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-39785 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-39770 7.5 HIGH Linux kernel 安全漏洞
CVE-2025-39738 7.3 HIGH Linux kernel 安全漏洞
CVE-2025-39789 7.3 HIGH Linux kernel 安全漏洞
CVE-2025-39776 7.0 HIGH Linux kernel 安全漏洞
CVE-2025-39768 Linux kernel 安全漏洞
CVE-2025-39773 Linux kernel 安全漏洞
CVE-2025-39772 Linux kernel 安全漏洞
CVE-2025-39766 Linux kernel 安全漏洞
CVE-2025-39769 Linux kernel 安全漏洞
CVE-2025-39771 Linux kernel 安全漏洞

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-39779

暂无评论


发表评论