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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2022-49999— Linux kernel 安全漏洞

一分钟漏洞结论

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

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于空间缓存损坏和潜在的双重分配问题。

CVSS 7.8 · High EPSS 0.26% · P16

影响版本矩阵 8

厂商产品 版本范围状态
Linux Linux d0c2f4fa555e70324ec2a129b822ab58f172cc62< 92dc4c1a8e58bcc7a183a4c86b055c24cc88d967 affected
d0c2f4fa555e70324ec2a129b822ab58f172cc62< a2e54eb64229f07f917b05d0c323604fda9b89f7 affected
d0c2f4fa555e70324ec2a129b822ab58f172cc62< ced8ecf026fd8084cf175530ff85c76d6085d715 affected
5.12 affected
< 5.12 unaffected
5.15.65≤ 5.15.* unaffected
5.19.6≤ 5.19.* unaffected
6.0≤ * unaffected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2022-49999 基础信息

漏洞信息

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

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

Vulnerability Title
btrfs: fix space cache corruption and potential double allocations
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix space cache corruption and potential double allocations When testing space_cache v2 on a large set of machines, we encountered a few symptoms: 1. "unable to add free space :-17" (EEXIST) errors. 2. Missing free space info items, sometimes caught with a "missing free space info for X" error. 3. Double-accounted space: ranges that were allocated in the extent tree and also marked as free in the free space tree, ranges that were marked as allocated twice in the extent tree, or ranges that were marked as free twice in the free space tree. If the latter made it onto disk, the next reboot would hit the BUG_ON() in add_new_free_space(). 4. On some hosts with no on-disk corruption or error messages, the in-memory space cache (dumped with drgn) disagreed with the free space tree. All of these symptoms have the same underlying cause: a race between caching the free space for a block group and returning free space to the in-memory space cache for pinned extents causes us to double-add a free range to the space cache. This race exists when free space is cached from the free space tree (space_cache=v2) or the extent tree (nospace_cache, or space_cache=v1 if the cache needs to be regenerated). struct btrfs_block_group::last_byte_to_unpin and struct btrfs_block_group::progress are supposed to protect against this race, but commit d0c2f4fa555e ("btrfs: make concurrent fsyncs wait less when waiting for a transaction commit") subtly broke this by allowing multiple transactions to be unpinning extents at the same time. Specifically, the race is as follows: 1. An extent is deleted from an uncached block group in transaction A. 2. btrfs_commit_transaction() is called for transaction A. 3. btrfs_run_delayed_refs() -> __btrfs_free_extent() runs the delayed ref for the deleted extent. 4. __btrfs_free_extent() -> do_free_extent_accounting() -> add_to_free_space_tree() adds the deleted extent back to the free space tree. 5. do_free_extent_accounting() -> btrfs_update_block_group() -> btrfs_cache_block_group() queues up the block group to get cached. block_group->progress is set to block_group->start. 6. btrfs_commit_transaction() for transaction A calls switch_commit_roots(). It sets block_group->last_byte_to_unpin to block_group->progress, which is block_group->start because the block group hasn't been cached yet. 7. The caching thread gets to our block group. Since the commit roots were already switched, load_free_space_tree() sees the deleted extent as free and adds it to the space cache. It finishes caching and sets block_group->progress to U64_MAX. 8. btrfs_commit_transaction() advances transaction A to TRANS_STATE_SUPER_COMMITTED. 9. fsync calls btrfs_commit_transaction() for transaction B. Since transaction A is already in TRANS_STATE_SUPER_COMMITTED and the commit is for fsync, it advances. 10. btrfs_commit_transaction() for transaction B calls switch_commit_roots(). This time, the block group has already been cached, so it sets block_group->last_byte_to_unpin to U64_MAX. 11. btrfs_commit_transaction() for transaction A calls btrfs_finish_extent_commit(), which calls unpin_extent_range() for the deleted extent. It sees last_byte_to_unpin set to U64_MAX (by transaction B!), so it adds the deleted extent to the space cache again! This explains all of our symptoms above: * If the sequence of events is exactly as described above, when the free space is re-added in step 11, it will fail with EEXIST. * If another thread reallocates the deleted extent in between steps 7 and 11, then step 11 will silently re-add that space to the space cache as free even though it is actually allocated. Then, if that space is allocated *again*, the free space tree will be corrupted (namely, the wrong item will be deleted). * If we don't catch this free space tree corr ---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存在安全漏洞,该漏洞源于空间缓存损坏和潜在的双重分配问题。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Linux Linux d0c2f4fa555e70324ec2a129b822ab58f172cc62 ~ 92dc4c1a8e58bcc7a183a4c86b055c24cc88d967 -
Linux Linux 5.12 -

二、漏洞 CVE-2022-49999 的公开POC

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

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2022-49999 的情报信息

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

同批安全公告 · Linux · 2025-06-18 · 共 362 条

CVE-2025-38075 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-50098 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-49934 8.8 HIGH Linux kernel 安全漏洞
CVE-2025-38052 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-50164 8.8 HIGH Linux kernel 安全漏洞
CVE-2025-38016 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-49974 8.8 HIGH Linux kernel 安全漏洞
CVE-2025-38074 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-49968 8.0 HIGH Linux kernel 安全漏洞
CVE-2022-49939 7.8 HIGH Linux kernel 安全漏洞
CVE-2022-49948 7.8 HIGH Linux kernel 安全漏洞
CVE-2022-49935 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38082 7.8 HIGH Linux kernel 安全漏洞
CVE-2022-50182 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38080 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38079 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38078 7.8 HIGH Linux kernel 安全漏洞
CVE-2022-50099 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38062 7.8 HIGH Linux kernel 安全漏洞
CVE-2025-38060 7.8 HIGH Linux kernel 安全漏洞

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

IV. Related Vulnerabilities

V. Comments for CVE-2022-49999

暂无评论


发表评论