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

目标: 1000 元 · 已筹: 1336

100%

CVE-2021-47635— Linux kernel 安全漏洞

一分钟漏洞结论

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

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于页面设置为私有时未增加引用计数。

CVSS 7.8 · High EPSS 0.25% · P17

可能的 ATT&CK 技术 1 AI

T1499 · Endpoint Denial of Service

影响版本矩阵 12

厂商产品 版本范围状态
Linux Linux 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d< c34ae24a2590fee96a3a7735ba2fa6cc52306221 affected
1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d< 4f75bab98565afd4f905059c56ec4caba88a7eec affected
1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d< 5aaa2c0f0052b02c4a982993d4c5bb68fb7cbe22 affected
1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d< fbeb2139eed65e929ce806c6468e6601ade01b1b affected
1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d< 3b67db8a6ca83e6ff90b756d3da0c966f61cd37b affected
2.6.27 affected
< 2.6.27 unaffected
5.10.110≤ 5.10.* unaffected
… +4 条更多
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2021-47635 基础信息

漏洞信息

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

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

Vulnerability Title
ubifs: Fix to add refcount once page is set private
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: ubifs: Fix to add refcount once page is set private MM defined the rule [1] very clearly that once page was set with PG_private flag, we should increment the refcount in that page, also main flows like pageout(), migrate_page() will assume there is one additional page reference count if page_has_private() returns true. Otherwise, we may get a BUG in page migration: page:0000000080d05b9d refcount:-1 mapcount:0 mapping:000000005f4d82a8 index:0xe2 pfn:0x14c12 aops:ubifs_file_address_operations [ubifs] ino:8f1 dentry name:"f30e" flags: 0x1fffff80002405(locked|uptodate|owner_priv_1|private|node=0| zone=1|lastcpupid=0x1fffff) page dumped because: VM_BUG_ON_PAGE(page_count(page) != 0) ------------[ cut here ]------------ kernel BUG at include/linux/page_ref.h:184! invalid opcode: 0000 [#1] SMP CPU: 3 PID: 38 Comm: kcompactd0 Not tainted 5.15.0-rc5 RIP: 0010:migrate_page_move_mapping+0xac3/0xe70 Call Trace: ubifs_migrate_page+0x22/0xc0 [ubifs] move_to_new_page+0xb4/0x600 migrate_pages+0x1523/0x1cc0 compact_zone+0x8c5/0x14b0 kcompactd+0x2bc/0x560 kthread+0x18c/0x1e0 ret_from_fork+0x1f/0x30 Before the time, we should make clean a concept, what does refcount means in page gotten from grab_cache_page_write_begin(). There are 2 situations: Situation 1: refcount is 3, page is created by __page_cache_alloc. TYPE_A - the write process is using this page TYPE_B - page is assigned to one certain mapping by calling __add_to_page_cache_locked() TYPE_C - page is added into pagevec list corresponding current cpu by calling lru_cache_add() Situation 2: refcount is 2, page is gotten from the mapping's tree TYPE_B - page has been assigned to one certain mapping TYPE_A - the write process is using this page (by calling page_cache_get_speculative()) Filesystem releases one refcount by calling put_page() in xxx_write_end(), the released refcount corresponds to TYPE_A (write task is using it). If there are any processes using a page, page migration process will skip the page by judging whether expected_page_refs() equals to page refcount. The BUG is caused by following process: PA(cpu 0) kcompactd(cpu 1) compact_zone ubifs_write_begin page_a = grab_cache_page_write_begin add_to_page_cache_lru lru_cache_add pagevec_add // put page into cpu 0's pagevec (refcnf = 3, for page creation process) ubifs_write_end SetPagePrivate(page_a) // doesn't increase page count ! unlock_page(page_a) put_page(page_a) // refcnt = 2 [...] PB(cpu 0) filemap_read filemap_get_pages add_to_page_cache_lru lru_cache_add __pagevec_lru_add // traverse all pages in cpu 0's pagevec __pagevec_lru_add_fn SetPageLRU(page_a) isolate_migratepages isolate_migratepages_block get_page_unless_zero(page_a) // refcnt = 3 list_add(page_a, from_list) migrate_pages(from_list) __unmap_and_move move_to_new_page ubifs_migrate_page(page_a) migrate_page_move_mapping expected_page_refs get 3 (migration[1] + mapping[1] + private[1]) release_pages put_page_testzero(page_a) // refcnt = 3 page_ref_freeze // refcnt = 0 page_ref_dec_and_test(0 - 1 = -1) page_ref_unfreeze VM_BUG_ON_PAGE(-1 != 0, page) UBIFS doesn't increase the page refcount after setting private flag, which leads to page migration task believes the page is not used by any other processes, so the page is migrated. This causes concurrent accessing on page refcount between put_page() called by other process(eg. read process calls lru_cache_add) and page_ref_unfreeze() called by mi ---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 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d ~ c34ae24a2590fee96a3a7735ba2fa6cc52306221 -
Linux Linux 2.6.27 -

二、漏洞 CVE-2021-47635 的公开POC

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

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2021-47635 的情报信息

登录查看更多情报信息。

CVE-2021-47635 补丁与修复 (5)

同批安全公告 · Linux · 2025-02-26 · 共 706 条

CVE-2022-49561 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-49149 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-49356 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-49280 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-49362 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-49260 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-49418 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-49407 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-49201 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-49194 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-49093 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-49094 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-49058 9.1 CRITICAL Linux kernel 安全漏洞
CVE-2022-49111 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-49535 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-49238 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-49519 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-49138 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-49471 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-49159 8.8 HIGH Linux kernel 安全漏洞

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

IV. Related Vulnerabilities

V. Comments for CVE-2021-47635

暂无评论


发表评论