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

目标: 1000 元 · 已筹: 1359 元

100%

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

一分钟漏洞结论

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

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于内存释放后重用。

CVSS 7.8 · High EPSS 0.24% · P14

可能的 ATT&CK 技术 1 AI

T1211 · Exploitation for Stealth

影响版本矩阵 8

厂商产品 版本范围状态
Linux Linux a748c6975dea325da540610c2ba9b5f332c603e6< a9f36bf3613c65cb587c70fac655c775d911409b affected
a748c6975dea325da540610c2ba9b5f332c603e6< 599148d40366bd5d1d504a3a8fcd65e21107e500 affected
a748c6975dea325da540610c2ba9b5f332c603e6< f263a81451c12da5a342d90572e317e611846f2c affected
5.10 affected
< 5.10 unaffected
5.10.53≤ 5.10.* unaffected
5.13.5≤ 5.13.* unaffected
5.14≤ * unaffected
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
bpf: Track subprog poke descriptors correctly and fix use-after-free
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Track subprog poke descriptors correctly and fix use-after-free Subprograms are calling map_poke_track(), but on program release there is no hook to call map_poke_untrack(). However, on program release, the aux memory (and poke descriptor table) is freed even though we still have a reference to it in the element list of the map aux data. When we run map_poke_run(), we then end up accessing free'd memory, triggering KASAN in prog_array_map_poke_run(): [...] [ 402.824689] BUG: KASAN: use-after-free in prog_array_map_poke_run+0xc2/0x34e [ 402.824698] Read of size 4 at addr ffff8881905a7940 by task hubble-fgs/4337 [ 402.824705] CPU: 1 PID: 4337 Comm: hubble-fgs Tainted: G I 5.12.0+ #399 [ 402.824715] Call Trace: [ 402.824719] dump_stack+0x93/0xc2 [ 402.824727] print_address_description.constprop.0+0x1a/0x140 [ 402.824736] ? prog_array_map_poke_run+0xc2/0x34e [ 402.824740] ? prog_array_map_poke_run+0xc2/0x34e [ 402.824744] kasan_report.cold+0x7c/0xd8 [ 402.824752] ? prog_array_map_poke_run+0xc2/0x34e [ 402.824757] prog_array_map_poke_run+0xc2/0x34e [ 402.824765] bpf_fd_array_map_update_elem+0x124/0x1a0 [...] The elements concerned are walked as follows: for (i = 0; i < elem->aux->size_poke_tab; i++) { poke = &elem->aux->poke_tab[i]; [...] The access to size_poke_tab is a 4 byte read, verified by checking offsets in the KASAN dump: [ 402.825004] The buggy address belongs to the object at ffff8881905a7800 which belongs to the cache kmalloc-1k of size 1024 [ 402.825008] The buggy address is located 320 bytes inside of 1024-byte region [ffff8881905a7800, ffff8881905a7c00) The pahole output of bpf_prog_aux: struct bpf_prog_aux { [...] /* --- cacheline 5 boundary (320 bytes) --- */ u32 size_poke_tab; /* 320 4 */ [...] In general, subprograms do not necessarily manage their own data structures. For example, BTF func_info and linfo are just pointers to the main program structure. This allows reference counting and cleanup to be done on the latter which simplifies their management a bit. The aux->poke_tab struct, however, did not follow this logic. The initial proposed fix for this use-after-free bug further embedded poke data tracking into the subprogram with proper reference counting. However, Daniel and Alexei questioned why we were treating these objects special; I agree, its unnecessary. The fix here removes the per subprogram poke table allocation and map tracking and instead simply points the aux->poke_tab pointer at the main programs poke table. This way, map tracking is simplified to the main program and we do not need to manage them per subprogram. This also means, bpf_prog_free_deferred(), which unwinds the program reference counting and kfrees objects, needs to ensure that we don't try to double free the poke_tab when free'ing the subprog structures. This is easily solved by NULL'ing the poke_tab pointer. The second detail is to ensure that per subprogram JIT logic only does fixups on poke_tab[] entries it owns. To do this, we add a pointer in the poke structure to point at the subprogram value so JITs can easily check while walking the poke_tab structure if the current entry belongs to the current program. The aux pointer is stable and therefore suitable for such comparison. On the jit_subprogs() error path, we omit cleaning up the poke->aux field because these are only ever referenced from the JIT side, but on error we will never make it to the JIT, so its fine to leave them dangling. Removing these pointers would complicate the error path for no reason. However, we do need to untrack all poke descriptors from the main program as otherwise they could race with the freeing of JIT memory from the subprograms. Lastly, a748c6975dea3 ("bpf: propagate poke des ---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 a748c6975dea325da540610c2ba9b5f332c603e6 ~ a9f36bf3613c65cb587c70fac655c775d911409b -
Linux Linux 5.10 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

CVE-2021-47303 其他参考 (3)

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

CVE-2023-52732 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2023-52755 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2021-47378 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2021-47328 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2021-47232 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2023-52741 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2021-47427 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2021-47308 8.8 HIGH Linux kernel 安全漏洞
CVE-2023-52776 8.8 HIGH Linux kernel 安全漏洞
CVE-2023-52801 8.8 HIGH Linux kernel 安全漏洞
CVE-2023-52798 8.8 HIGH Linux kernel 安全漏洞
CVE-2021-47388 8.8 HIGH Linux kernel 安全漏洞
CVE-2021-47390 8.8 HIGH 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-47240 8.4 HIGH Linux kernel 安全漏洞
CVE-2023-52829 8.4 HIGH Linux kernel 安全漏洞
CVE-2021-47352 8.4 HIGH Linux kernel 安全漏洞
CVE-2023-52775 8.2 HIGH Linux kernel 安全漏洞

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

IV. Related Vulnerabilities

V. Comments for CVE-2021-47303

暂无评论


发表评论