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

目标: 1000 元 · 已筹: 1336

100%

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

CVSS 7.8 · High EPSS 0.21% · P11

影响版本矩阵 6

厂商产品版本范围状态
LinuxLinuxa7b359fc6a37faaf472125867c8dc5a068c90982< 512e21c150c1c3ee298852660f3a796e267e62ecaffected
a7b359fc6a37faaf472125867c8dc5a068c90982< b027789e5e50494c2325cc70c8642e7fd6059479affected
5.13affected
< 5.13unaffected
5.15.5≤ 5.15.*unaffected
5.16≤ *unaffected
获取后续新漏洞提醒登录后订阅

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

漏洞信息

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

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

Vulnerability Title
sched/fair: Prevent dead task groups from regaining cfs_rq's
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: sched/fair: Prevent dead task groups from regaining cfs_rq's Kevin is reporting crashes which point to a use-after-free of a cfs_rq in update_blocked_averages(). Initial debugging revealed that we've live cfs_rq's (on_list=1) in an about to be kfree()'d task group in free_fair_sched_group(). However, it was unclear how that can happen. His kernel config happened to lead to a layout of struct sched_entity that put the 'my_q' member directly into the middle of the object which makes it incidentally overlap with SLUB's freelist pointer. That, in combination with SLAB_FREELIST_HARDENED's freelist pointer mangling, leads to a reliable access violation in form of a #GP which made the UAF fail fast. Michal seems to have run into the same issue[1]. He already correctly diagnosed that commit a7b359fc6a37 ("sched/fair: Correctly insert cfs_rq's to list on unthrottle") is causing the preconditions for the UAF to happen by re-adding cfs_rq's also to task groups that have no more running tasks, i.e. also to dead ones. His analysis, however, misses the real root cause and it cannot be seen from the crash backtrace only, as the real offender is tg_unthrottle_up() getting called via sched_cfs_period_timer() via the timer interrupt at an inconvenient time. When unregister_fair_sched_group() unlinks all cfs_rq's from the dying task group, it doesn't protect itself from getting interrupted. If the timer interrupt triggers while we iterate over all CPUs or after unregister_fair_sched_group() has finished but prior to unlinking the task group, sched_cfs_period_timer() will execute and walk the list of task groups, trying to unthrottle cfs_rq's, i.e. re-add them to the dying task group. These will later -- in free_fair_sched_group() -- be kfree()'ed while still being linked, leading to the fireworks Kevin and Michal are seeing. To fix this race, ensure the dying task group gets unlinked first. However, simply switching the order of unregistering and unlinking the task group isn't sufficient, as concurrent RCU walkers might still see it, as can be seen below: CPU1: CPU2: : timer IRQ: : do_sched_cfs_period_timer(): : : : distribute_cfs_runtime(): : rcu_read_lock(); : : : unthrottle_cfs_rq(): sched_offline_group(): : : walk_tg_tree_from(…,tg_unthrottle_up,…): list_del_rcu(&tg->list); : (1) : list_for_each_entry_rcu(child, &parent->children, siblings) : : (2) list_del_rcu(&tg->siblings); : : tg_unthrottle_up(): unregister_fair_sched_group(): struct cfs_rq *cfs_rq = tg->cfs_rq[cpu_of(rq)]; : : list_del_leaf_cfs_rq(tg->cfs_rq[cpu]); : : : : if (!cfs_rq_is_decayed(cfs_rq) || cfs_rq->nr_running) (3) : list_add_leaf_cfs_rq(cfs_rq); : : : : : : : : : ---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存在安全漏洞,该漏洞源于函数update_blocked_averages存在释放后重用漏洞。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商产品影响版本CPE订阅
LinuxLinux a7b359fc6a37faaf472125867c8dc5a068c90982 ~ 512e21c150c1c3ee298852660f3a796e267e62ec -
LinuxLinux 5.13 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

登录查看更多情报信息。

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

同批安全公告 · Linux · 2024-04-10 · 共 39 条

CVE-2021-472159.8 CRITICALLinux kernel 安全漏洞
CVE-2021-472038.8 HIGHLinux kernel 安全漏洞
CVE-2021-471838.8 HIGHLinux kernel 安全漏洞
CVE-2021-471848.8 HIGHLinux kernel 安全漏洞
CVE-2021-472017.8 HIGHLinux kernel 安全漏洞
CVE-2021-472007.8 HIGHLinux kernel 安全漏洞
CVE-2024-268157.8 HIGHLinux kernel 安全漏洞
CVE-2021-471977.8 HIGHLinux kernel 安全漏洞
CVE-2021-471887.8 HIGHLinux kernel 安全漏洞
CVE-2021-471897.8 HIGHLinux kernel 安全漏洞
CVE-2021-471967.8 HIGHLinux kernel 安全漏洞
CVE-2021-471947.8 HIGHLinux kernel 安全漏洞
CVE-2021-471917.1 HIGHLinux kernel 安全漏洞
CVE-2021-472197.1 HIGHLinux kernel 安全漏洞
CVE-2021-47211Linux kernel 安全漏洞
CVE-2021-47210Linux kernel 安全漏洞
CVE-2021-47198Linux kernel 安全漏洞
CVE-2021-47207Linux kernel 安全漏洞
CVE-2021-47212Linux kernel 安全漏洞
CVE-2021-47214Linux kernel 安全漏洞

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

IV. Related Vulnerabilities

V. Comments for CVE-2021-47209

暂无评论


发表评论