CVE-2021-47011 Vulnerability Analysis & Exploit Details

CVE-2021-47011
Vulnerability Scoring

5.5
/10
Significant Risk

Security assessments indicate that CVE-2021-47011 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-47011 Details

Status: Analyzed

Last updated: 🕕 08 Jan 2025, 18:02 UTC
Originally published on: 🕘 28 Feb 2024, 09:15 UTC

Time between publication and last update: 315 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-47011 Vulnerability Summary

CVE-2021-47011: In the Linux kernel, the following vulnerability has been resolved: mm: memcontrol: slab: fix obtain a reference to a freeing memcg Patch series "Use obj_cgroup APIs to charge kmem pages", v5. Since Roman's series "The new cgroup slab memory controller" applied. All slab objects are charged with the new APIs of obj_cgroup. The new APIs introduce a struct obj_cgroup to charge slab objects. It prevents long-living objects from pinning the original memory cgroup in the memory. But there are still some corner objects (e.g. allocations larger than order-1 page on SLUB) which are not charged with the new APIs. Those objects (include the pages which are allocated from buddy allocator directly) are charged as kmem pages which still hold a reference to the memory cgroup. E.g. We know that the kernel stack is charged as kmem pages because the size of the kernel stack can be greater than 2 pages (e.g. 16KB on x86_64 or arm64). If we create a thread (suppose the thread stack is charged to memory cgroup A) and then move it from memory cgroup A to memory cgroup B. Because the kernel stack of the thread hold a reference to the memory cgroup A. The thread can pin the memory cgroup A in the memory even if we remove the cgroup A. If we want to see this scenario by using the following script. We can see that the system has added 500 dying cgroups (This is not a real world issue, just a script to show that the large kmallocs are charged as kmem pages which can pin the memory cgroup in the memory). #!/bin/bash cat /proc/cgroups | grep memory cd /sys/fs/cgroup/memory echo 1 > memory.move_charge_at_immigrate for i in range{1..500} do mkdir kmem_test echo $$ > kmem_test/cgroup.procs sleep 3600 & echo $$ > cgroup.procs echo `cat kmem_test/cgroup.procs` > cgroup.procs rmdir kmem_test done cat /proc/cgroups | grep memory This patchset aims to make those kmem pages to drop the reference to memory cgroup by using the APIs of obj_cgroup. Finally, we can see that the number of the dying cgroups will not increase if we run the above test script. This patch (of 7): The rcu_read_lock/unlock only can guarantee that the memcg will not be freed, but it cannot guarantee the success of css_get (which is in the refill_stock when cached memcg changed) to memcg. rcu_read_lock() memcg = obj_cgroup_memcg(old) __memcg_kmem_uncharge(memcg) refill_stock(memcg) if (stock->cached != memcg) // css_get can change the ref counter from 0 back to 1. css_get(&memcg->css) rcu_read_unlock() This fix is very like the commit: eefbfa7fd678 ("mm: memcg/slab: fix use after free in obj_cgroup_charge") Fix this by holding a reference to the memcg which is passed to the __memcg_kmem_uncharge() before calling __memcg_kmem_uncharge().

Assessing the Risk of CVE-2021-47011

Access Complexity Graph

The exploitability of CVE-2021-47011 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-47011

CVE-2021-47011 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-47011, 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-47011, 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-47011 has no significant impact on data confidentiality.
  • Integrity: None
    CVE-2021-47011 poses no threat to data integrity.
  • Availability: High
    CVE-2021-47011 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.042% (probability of exploit)

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

CVE-2021-47011 References

External References

CWE Common Weakness Enumeration

NVD-CWE-noinfo

Vulnerable Configurations

  • cpe:2.3:o:linux:linux_kernel:5.10.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.12:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.12:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.13:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.13:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.14:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.14:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.15:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.15:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.16:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.16:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.17:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.17:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.18:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.18:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.19:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.19:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.20:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.20:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.21:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.21:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.22:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.22:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.23:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.23:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.24:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.24:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.25:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.25:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.26:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.26:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.27:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.27:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.28:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.28:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.29:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.29:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.30:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.30:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.31:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.31:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.32:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.32:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.33:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.33:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.34:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.34:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.35:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.35:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.36:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.36:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.12:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.12:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.13:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.13:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.14:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.14:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.15:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.15:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.16:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.16:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.17:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.17:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.18:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.18:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.19:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.19:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.20:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.20:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.12:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.12:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.12.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.12.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.12.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.12.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.12.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.12.3:*:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2021-47011: 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-26205 – Lua 5.4.7, when the debug library is used, has a out-of-bounds read and segmentation violation in mainpositionTV in ltable.c. NOTE: this is dispute...
  • CVE-2025-26204 – Lua 5.4.7, when the debug library is used, has a out-of-bounds read and segmentation violation in equalkey in ltable.c. NOTE: this is disputed beca...
  • CVE-2025-2129 – A vulnerability was found in Mage AI 0.9.75. It has been classified as problematic. This affects an unknown part. The manipulation leads to insecur...
  • CVE-2025-2127 – A vulnerability was found in JoomlaUX JUX Real Estate 3.4.0 on Joomla. It has been classified as problematic. Affected is an unknown function of th...
  • CVE-2025-2126 – A vulnerability was found in JoomlaUX JUX Real Estate 3.4.0 on Joomla and classified as critical. This issue affects some unknown processing of the...