Vulnerability in Kernel package: 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-1002672: sch_cake: do not call cake_destroy() from cake_init(). Affects Kernel versions >= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, < 0d80462fbdcafd536dcad7569e65d3d14a7e9f2f. 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 Kernel package is a fundamental component of the Linux operating system, responsible for managing system resources and providing an interface between hardware and software. It includes various subsystems, one of which is the sch_cake module. The sch_cake module is a packet scheduler that implements the Common Applications Kept Enhanced (CAKE) algorithm. This algorithm is used for traffic shaping and prioritization in network communication. However, a vulnerability has been discovered in the sch_cake module that could potentially lead to security issues.

Vulnerability Detail

The vulnerability in the sch_cake module arises from an incorrect function call within the cake_init() function. Specifically, the function cake_destroy() is called from cake_init(), which is not intended behavior. This mistake could result in unexpected consequences and potentially lead to security vulnerabilities. The impact and plausibility of an attack exploiting this vulnerability have not been proven yet. The vulnerability was introduced in version v4.19 of the Linux Kernel and has been fixed in version v5.4.168 by commit 0d80462fbdcafd536dcad7569e65d3d14a7e9f2f.

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

No specific workaround has been mentioned for this vulnerability.

Conclusion

In conclusion, a vulnerability has been discovered in the sch_cake module of the Kernel package. This vulnerability arises from an incorrect function call within the cake_init() function. It is recommended to update the Linux Kernel to version v5.4.168 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The sch_cake module is a packet scheduler in the Linux Kernel that implements the CAKE algorithm for traffic shaping and prioritization.

The impact of this vulnerability is currently unknown, as the actual attack plausibility and consequences have not been proven.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time monitoring and alerts for open-source vulnerabilities.

Yes, the vulnerability has been fixed in version v5.4.168 of the Linux Kernel. It is recommended to update to this version or a later one to mitigate the vulnerability.

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