UAF in blk_trace Access After Removing by sysfs in Kernel

Kernel Updated 02 Oct 2025

Summary

19/10/2021
N/A
No i
Unrated
Not published

GSD-2021-1001540: blktrace: Fix uaf in blk_trace access after removing by sysfs. Affects Kernel versions >= c71a896154119f4ca9e89d6078f5f63ad60ef199, < d56171d9360c0170c5c5f8f7e2362a2e999eca40. 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 Penetration testing for web, API and mobile 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 provides core functionalities and acts as an interface between hardware and software. It manages system resources, facilitates communication between processes, and handles device drivers. The blktrace module in the Kernel allows users to trace block I/O events and collect performance data for storage devices. This vulnerability affects the blktrace module when accessing blk_trace after it has been removed by sysfs.

Vulnerability Detail

The vulnerability arises due to a use-after-free (UAF) bug in the blktrace module. When blk_trace is accessed after being removed by sysfs, it can lead to memory corruption or crashes. An attacker could potentially exploit this vulnerability to execute arbitrary code, escalate privileges, or cause denial-of-service conditions. The vulnerability was introduced in version v2.6.30 of the Linux Kernel and is fixed in version v4.14.249.

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 provided for this vulnerability.

Conclusion

The UAF in blk_trace access after removing by sysfs vulnerability in the Kernel can lead to memory corruption, crashes, and potential security risks. It is crucial to update the Linux Kernel to version v4.14.249 or later to mitigate this vulnerability. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially allow an attacker to execute arbitrary code, escalate privileges, or cause denial-of-service conditions.

You can use the Vulert playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) to the playground, and it will analyze and alert you in real-time if the vulnerability is present.

Yes, a patch is available in the Linux Kernel version v4.14.249. It is recommended to update your Kernel to this version or later to fix the vulnerability.

The exact attack vector and exploitability of this vulnerability have not been proven. However, if successfully exploited, it could potentially be triggered remotely.

There are no known instances of this vulnerability being exploited in the wild at the time of this report.

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