Vulnerability in Kernel: kunit: fix reference count leak in kfree_at_end

Kernel Updated 02 Oct 2025

Summary

14/11/2021
N/A
No i
Unrated
Not published

UVI-2021-1002115: kunit: fix reference count leak in kfree_at_end. Affects Kernel versions < bbdd158b40b66a9403391a517f24ef6613573446. 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 is a critical component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The vulnerability in question affects the Kernel's kunit module, which is responsible for unit testing within the Kernel. Unit testing is a crucial part of software development that helps identify and fix bugs early in the development cycle. However, a reference count leak in the kfree_at_end function of the kunit module poses a security risk.

Vulnerability Detail

The vulnerability arises from a reference count leak in the kfree_at_end function of the kunit module. This leak can lead to memory corruption and potentially allow an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition. The vulnerability has not been proven to be exploitable in the wild, but it is essential to address it to maintain the integrity and security of the Kernel. The vulnerability has been fixed in Linux Kernel version v5.14.15 by commit bbdd158b40b66a9403391a517f24ef6613573446.

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. The recommended approach is to apply the fix by updating the Linux Kernel to the patched version.

Conclusion

The vulnerability in the Kernel's kunit module, which caused a reference count leak in the kfree_at_end function, has been addressed in Linux Kernel version v5.14.15. It is crucial to update the Kernel to the patched version to mitigate the risk of memory corruption and potential code execution or DoS attacks. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially lead to memory corruption and enable an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition.

There is no evidence of this vulnerability being exploited in the wild at the time of its discovery.

You can use tools like Vulert (https://vulert.com) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software.

The primary mitigation is to update the Linux Kernel to version v5.14.15 or later, which includes the fix for this vulnerability.

You can refer to the vulnerability database maintained by the Cloud Security Alliance (CSA) for more details. The specific vulnerability entry can be found at: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1002xxx/UVI-2021-1002115.json

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