Menu

Star on GitHub · 3.2k

CVE-2021-47209

7.8 · HIGH

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 cf…

Published Apr 10, 2024CWE-416EPSS 0.21%

Overview

CVE-2021-47209 is a high-severity vulnerability. It was published on April 10, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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-

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2021-47209?

CVE-2021-47209 is a high-severity vulnerability. It was published on April 10, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2021-47209?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-47209?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-47209?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47209 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2021

View all