CVE-2021-47598
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47598 is a vulnerability in the Linux kernel's CAKE (Common Applications Kept Enhanced) qdisc scheduler implementation. The vulnerability was discovered when qdiscs incorrectly called their own destroy() method from init(), which was not supposed to happen as the core stack already handles this functionality (Kernel Commit).

Technical details

The vulnerability exists in the cakeinit() function within net/sched/schcake.c where cake_destroy() was incorrectly called during initialization. This could lead to a use-after-free condition, which was confirmed by syzbot through debugging output showing mutex lock magic value corruption. The issue stems from the original implementation added by commit 046f6fd5daef ("sched: Add Common Applications Kept Enhanced (cake) qdisc") (Kernel Commit).

Impact

The vulnerability could result in a use-after-free condition in the Linux kernel's network scheduling subsystem. This could potentially lead to system instability or crashes when configuring network queuing disciplines (Kernel Commit).

Mitigation and workarounds

The issue was fixed by removing the call to cakedestroy() from the cakeinit() function and instead directly returning -ENOMEM on allocation failure. The fix was implemented in the Linux kernel through a patch authored by Eric Dumazet and reviewed by Toke Høiland-Jørgensen (Kernel Commit).

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-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-devel
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-trace
NoYesDec 09, 2025
CVE-2025-40341N/AN/A
  • Linux KernelLinux Kernel
  • kernel-headers
NoYesDec 09, 2025
CVE-2025-40340N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-modules-extra
NoYesDec 09, 2025

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