Use After Free Vulnerability in lib/test Package

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1002226: lib/test: use after free in register_test_dev_kmod(). Affects Kernel versions >= d9c6a72d6fa29d3a7999dda726577e5d1fccafa5, < 1f316b42a8e30ccb6524d2f3812b122f46a6e40d. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The lib/test package is a component of the Linux Kernel ecosystem. It provides testing functionality for various kernel modules. The package is responsible for registering and managing test devices used in kernel testing scenarios. It is an essential part of the kernel development process, ensuring the stability and reliability of the Linux Kernel.

Vulnerability Detail

The use after free vulnerability in the register_test_dev_kmod() function of the lib/test package allows an attacker to exploit a freed memory region. This can lead to a variety of security issues, including remote code execution, privilege escalation, and denial of service attacks. The vulnerability was introduced in version v4.13 of the Linux Kernel and was fixed in version v5.4.189. The vulnerability was discovered and reported by an automated security analysis tool.

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 known workaround for this vulnerability. It is crucial to apply the fix by updating the Linux Kernel to the patched version.

Conclusion

The use after free vulnerability in the lib/test package of the Linux Kernel can have severe security implications. It is crucial to update the Linux Kernel to version v5.4.189 or later to fix this vulnerability. Regularly updating the kernel is essential to ensure the latest security patches are applied. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The use after free vulnerability can have severe consequences, including remote code execution, privilege escalation, and denial of service attacks. It is crucial to patch the vulnerability to prevent potential exploitation.

This vulnerability was discovered by an automated security analysis tool. The tool identified the use after free pattern in the register_test_dev_kmod() function and flagged it as a potential vulnerability.

The vulnerability was introduced in version v4.13 of the Linux Kernel. All versions between v4.13 and v5.4.189 are affected. The vulnerability is fixed in version v5.4.189 and later.

At the time of discovery, no known exploits for this vulnerability were reported. However, it is important to patch the vulnerability as soon as possible to mitigate any potential risks.

For more details about this vulnerability, including the specific code changes that fix it, you can refer to the source link provided in the vulnerability details section.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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