CVE-2021-47221
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47221 affects the Linux kernel's SLUB memory allocator. The vulnerability was discovered in the mm/slub component where SLUB redzoning ("slub_debug=Z") checks from s->object_size rather than from s->inuse (which is normally bumped to make room for the freelist pointer). This causes a cache created with an object size less than 24 bytes to have the freelist pointer written beyond s->object_size, resulting in redzone corruption by the freelist pointer (Kernel Git).

Technical details

The vulnerability occurs in the SLUB memory allocator's redzoning functionality. When using slub_debug=Z, the system checks object boundaries from s->object_size instead of s->inuse. For caches with object sizes less than 24 bytes, this causes the freelist pointer to be written beyond the object's allocated size, corrupting the redzone memory area. The issue becomes particularly visible when using slub_debug=ZF, where it triggers a "Right Redzone overwritten" bug report (Kernel Git).

Impact

While no caches in this size range were known to exist in the kernel at the time of discovery, the vulnerability could potentially lead to memory corruption through redzone overwriting. This could affect system stability and potentially be exploited for security breaches in specific configurations using SLUB debugging features (Kernel Git).

Exploitability

The vulnerability requires specific conditions to be exploited, namely the use of SLUB debugging features (slub_debug=Z) and allocation of objects smaller than 24 bytes. No known exploits have been reported in the wild (NVD).

Mitigation and workarounds

The issue was fixed by adjusting the offset to stay within s->object_size and modifying how the freelist pointer location is calculated. The fix involves removing the freepointer_area variable and using ALIGN_DOWN on s->object_size/2 instead of the previous calculation method (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-80904MEDIUM5.9
  • Linux Kernel logoLinux Kernel
  • linux-azure-fips
NoYesSep 04, 2026
CVE-2026-80905MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-tegra-5.15
NoYesSep 04, 2026
CVE-2026-80913MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux
NoYesSep 04, 2026
CVE-2026-80912MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-azure
NoYesSep 04, 2026
CVE-2026-80906NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-hwe-7.0
NoYesSep 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management