Vulnerability in sch_cake: Do Not Call cake_destroy() from cake_init()

Kernel Updated 02 Oct 2025

Summary

27/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002693: sch_cake: do not call cake_destroy() from cake_init(). Affects Kernel versions >= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, < 20ad1ef02f9ad5e1dda9eeb113e4c158b4806986. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The sch_cake package is a component of the Linux Kernel, which is responsible for managing network traffic shaping. It utilizes the Cake algorithm to prioritize and control the flow of packets. The cake_init() function is called during the initialization process to set up the necessary data structures and configurations. However, a vulnerability exists where the cake_destroy() function is mistakenly called from cake_init(). This can lead to unexpected behavior and potential security issues.

Vulnerability Detail

The vulnerability arises from the incorrect invocation of cake_destroy() within cake_init(). This can result in the premature destruction of critical resources and data structures, leading to potential memory corruption or use-after-free vulnerabilities. An attacker may be able to exploit this vulnerability to execute arbitrary code, escalate privileges, or cause denial-of-service conditions. The impact and attack plausibility of this vulnerability have not been proven yet.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The sch_cake package in the Linux Kernel is vulnerable to a flaw where cake_destroy() is mistakenly called from cake_init(). This can result in memory corruption, arbitrary code execution, or other security issues. It is recommended to update to Linux Kernel version v5.10.88 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

sch_cake is a component of the Linux Kernel responsible for network traffic shaping using the Cake algorithm.

cake_init() is a function within sch_cake that is called during initialization to set up necessary configurations.

cake_destroy() is a function within sch_cake that is responsible for destroying resources and data structures.

This vulnerability can lead to memory corruption, use-after-free vulnerabilities, arbitrary code execution, privilege escalation, or denial-of-service conditions.

Yes, the vulnerability has been fixed in Linux Kernel version v5.10.88 and subsequent versions.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback