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-1002342: lib/test: use after free in register_test_dev_kmod(). Affects Kernel versions >= d9c6a72d6fa29d3a7999dda726577e5d1fccafa5, < 46012ed6a533431d004fe76162faf05a60fae975. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The lib/test package is a component of the Linux Kernel ecosystem. It provides testing functionality for various kernel modules. The package allows developers to register test devices and perform tests on them. 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 various security issues, including remote code execution, privilege escalation, or denial of service. The vulnerability was introduced in version v4.13 of the Linux Kernel and was fixed in version v4.19.238. The specific commit that addressed this vulnerability is 46012ed6a533431d004fe76162faf05a60fae975.

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 update the Linux Kernel to the fixed version to mitigate the risk.

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 the fixed version to mitigate the risk of exploitation. 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 lead to various security issues, including remote code execution, privilege escalation, or denial of service. It is essential to update the Linux Kernel to the fixed version to prevent these risks.

You can use Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

Yes, this vulnerability can be exploited remotely, potentially allowing an attacker to execute arbitrary code or escalate privileges on a vulnerable system.

There is no known public exploit for this vulnerability at the time of writing. However, it is crucial to update the Linux Kernel to the fixed version to prevent any potential exploitation.

The only known solution to fix this vulnerability is to update the Linux Kernel to the fixed version. It is recommended to follow the official update process provided by the Linux Kernel maintainers.

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