CVE-2021-47209 Vulnerability Analysis & Exploit Details

CVE-2021-47209
Vulnerability Scoring

5.5
/10
Significant Risk

Security assessments indicate that CVE-2021-47209 presents a notable risk, potentially requiring prompt mitigation.

Attack Complexity Details

  • Attack Complexity: Low
    Exploits can be performed without significant complexity or special conditions.
  • Attack Vector: Local
    Vulnerability requires local system access.
  • Privileges Required: Low
    Some privileges are necessary to exploit the vulnerability.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2021-47209 Details

Status: Analyzed

Last updated: 🕘 27 Mar 2025, 21:16 UTC
Originally published on: 🕖 10 Apr 2024, 19:15 UTC

Time between publication and last update: 351 days

CVSS Release: version 3

CVSS3 Source

nvd@nist.gov

CVSS3 Type

Primary

CVSS3 Vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVE-2021-47209 Vulnerability Summary

CVE-2021-47209: 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---

Assessing the Risk of CVE-2021-47209

Access Complexity Graph

The exploitability of CVE-2021-47209 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2021-47209

CVE-2021-47209 presents an accessible attack vector with minimal effort required. Restricting access controls and implementing security updates are critical to reducing exploitation risks.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2021-47209, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2021-47209, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: None
    CVE-2021-47209 has no significant impact on data confidentiality.
  • Integrity: None
    CVE-2021-47209 poses no threat to data integrity.
  • Availability: High
    CVE-2021-47209 can disrupt system operations, potentially causing complete denial of service (DoS).

Exploit Prediction Scoring System (EPSS)

The EPSS score estimates the probability that this vulnerability will be exploited in the near future.

EPSS Score: 0.043% (probability of exploit)

EPSS Percentile: 12.0% (lower percentile = lower relative risk)
This vulnerability is less risky than approximately 88.0% of others.

CVE-2021-47209 References

External References

CWE Common Weakness Enumeration

CWE-416

Vulnerable Configurations

  • cpe:2.3:o:linux:linux_kernel:5.13:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.0-52:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.0-52:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.12:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.12:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.13:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.13:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.14:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.14:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.15:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.15:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.16:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.16:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.17:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.17:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.18:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.18:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13.19:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13.19:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13:rc6:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13:rc6:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.13:rc7:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.13:rc7:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.12:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.12:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.13:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.13:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.14:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.14:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.15:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.15:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.16:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.16:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.17:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.17:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.18:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.18:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.19:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.19:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.20:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.20:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14.21:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14.21:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.14:rc6:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.14:rc6:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.0:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.0:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.0-58:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.0-58:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.3:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.3:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.4:*:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2021-47209: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-3275 – The Themesflat Addons For Elementor plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the TF E Slider widget in all versions up...
  • CVE-2025-1457 – The Element Pack Addons for Elementor – Free Templates and Widgets for Your WordPress Websites plugin for WordPress is vulnerable to Stored Cross-S...
  • CVE-2025-1093 – The AIHub theme for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the generate_image function in all ver...
  • CVE-2025-3284 – The User Registration & Membership – Custom Registration Form, Login Form, and User Profile plugin for WordPress is vulnerable to Cross-Site Reques...
  • CVE-2025-3278 – The UrbanGo Membership plugin for WordPress is vulnerable to privilege escalation in versions up to, and including, 1.0.4. This is due to the plugi...