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

目标: 1000 元 · 已筹: 1359 元

100%

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

一分钟漏洞结论

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

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于允许缓存中出现过大的读取请求。

AI 预测 7.8 利用难度: 困难 EPSS 0.20% · P9

可能的 ATT&CK 技术 1 AI

T1499 · Endpoint Denial of Service

影响版本矩阵 6

厂商产品 版本范围状态
Linux Linux cafe563591446cf80bfbc2fe3bc72a2e36cf1060< 555002a840ab88468e252b0eedf0b05e2ce7099c affected
cafe563591446cf80bfbc2fe3bc72a2e36cf1060< 41fe8d088e96472f63164e213de44ec77be69478 affected
3.10 affected
< 3.10 unaffected
5.12.11≤ 5.12.* unaffected
5.13≤ * unaffected
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
bcache: avoid oversized read request in cache missing code path
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: bcache: avoid oversized read request in cache missing code path In the cache missing code path of cached device, if a proper location from the internal B+ tree is matched for a cache miss range, function cached_dev_cache_miss() will be called in cache_lookup_fn() in the following code block, [code block 1] 526 unsigned int sectors = KEY_INODE(k) == s->iop.inode 527 ? min_t(uint64_t, INT_MAX, 528 KEY_START(k) - bio->bi_iter.bi_sector) 529 : INT_MAX; 530 int ret = s->d->cache_miss(b, s, bio, sectors); Here s->d->cache_miss() is the call backfunction pointer initialized as cached_dev_cache_miss(), the last parameter 'sectors' is an important hint to calculate the size of read request to backing device of the missing cache data. Current calculation in above code block may generate oversized value of 'sectors', which consequently may trigger 2 different potential kernel panics by BUG() or BUG_ON() as listed below, 1) BUG_ON() inside bch_btree_insert_key(), [code block 2] 886 BUG_ON(b->ops->is_extents && !KEY_SIZE(k)); 2) BUG() inside biovec_slab(), [code block 3] 51 default: 52 BUG(); 53 return NULL; All the above panics are original from cached_dev_cache_miss() by the oversized parameter 'sectors'. Inside cached_dev_cache_miss(), parameter 'sectors' is used to calculate the size of data read from backing device for the cache missing. This size is stored in s->insert_bio_sectors by the following lines of code, [code block 4] 909 s->insert_bio_sectors = min(sectors, bio_sectors(bio) + reada); Then the actual key inserting to the internal B+ tree is generated and stored in s->iop.replace_key by the following lines of code, [code block 5] 911 s->iop.replace_key = KEY(s->iop.inode, 912 bio->bi_iter.bi_sector + s->insert_bio_sectors, 913 s->insert_bio_sectors); The oversized parameter 'sectors' may trigger panic 1) by BUG_ON() from the above code block. And the bio sending to backing device for the missing data is allocated with hint from s->insert_bio_sectors by the following lines of code, [code block 6] 926 cache_bio = bio_alloc_bioset(GFP_NOWAIT, 927 DIV_ROUND_UP(s->insert_bio_sectors, PAGE_SECTORS), 928 &dc->disk.bio_split); The oversized parameter 'sectors' may trigger panic 2) by BUG() from the agove code block. Now let me explain how the panics happen with the oversized 'sectors'. In code block 5, replace_key is generated by macro KEY(). From the definition of macro KEY(), [code block 7] 71 #define KEY(inode, offset, size) \ 72 ((struct bkey) { \ 73 .high = (1ULL << 63) | ((__u64) (size) << 20) | (inode), \ 74 .low = (offset) \ 75 }) Here 'size' is 16bits width embedded in 64bits member 'high' of struct bkey. But in code block 1, if "KEY_START(k) - bio->bi_iter.bi_sector" is very probably to be larger than (1<<16) - 1, which makes the bkey size calculation in code block 5 is overflowed. In one bug report the value of parameter 'sectors' is 131072 (= 1 << 17), the overflowed 'sectors' results the overflowed s->insert_bio_sectors in code block 4, then makes size field of s->iop.replace_key to be 0 in code block 5. Then the 0- sized s->iop.replace_key is inserted into the internal B+ tree as cache missing check key (a special key to detect and avoid a racing between normal write request and cache missing read request) as, [code block 8] 915 ret = bch_btree_insert_check_key(b, &s->op, &s->iop.replace_key); Then the 0-sized s->iop.replace_key as 3rd parameter triggers the bkey size check BUG_ON() in code block 2, and causes the kernel panic 1). Another ke ---truncated---
来源: CVE Program / CVE List V5
CVSS Information
N/A
来源: 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 cafe563591446cf80bfbc2fe3bc72a2e36cf1060 ~ 555002a840ab88468e252b0eedf0b05e2ce7099c -
Linux Linux 3.10 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

CVE-2021-47275 其他参考 (2)

同批安全公告 · Linux · 2024-05-21 · 共 361 条

CVE-2023-52741 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2021-47378 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2023-52755 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2021-47427 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2023-52732 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2021-47328 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2021-47232 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2023-52846 8.8 HIGH Linux kernel 安全漏洞
CVE-2023-52769 8.8 HIGH Linux kernel 安全漏洞
CVE-2023-52790 8.8 HIGH Linux kernel 安全漏洞
CVE-2021-47308 8.8 HIGH Linux kernel 安全漏洞
CVE-2021-47390 8.8 HIGH Linux kernel 安全漏洞
CVE-2023-52801 8.8 HIGH Linux kernel 安全漏洞
CVE-2023-52776 8.8 HIGH Linux kernel 安全漏洞
CVE-2023-52798 8.8 HIGH Linux kernel 安全漏洞
CVE-2021-47388 8.8 HIGH Linux kernel 安全漏洞
CVE-2023-52829 8.4 HIGH Linux kernel 安全漏洞
CVE-2021-47240 8.4 HIGH Linux kernel 安全漏洞
CVE-2021-47352 8.4 HIGH Linux kernel 安全漏洞
CVE-2021-47244 8.2 HIGH Linux kernel 安全漏洞

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

IV. Related Vulnerabilities

V. Comments for CVE-2021-47275

暂无评论


发表评论