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

UVI-2021-1001501: blktrace: Fix uaf in blk_trace access after removing by sysfs. Affects Kernel versions >= c71a896154119f4ca9e89d6078f5f63ad60ef199, < 488da313edf3abea7f7733efe011c96b23740ab5. 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 crucial 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 different software components, and ensures the overall stability and security of the system. The blktrace module in the Kernel allows users to trace block I/O events and collect performance data for storage devices. It provides valuable insights into disk I/O patterns and can be used for performance analysis and debugging purposes.

Vulnerability Detail

The identified vulnerability (UVI-2021-1001501) in the blktrace module involves a use-after-free (UAF) issue when accessing blk_trace after it has been removed by sysfs. This vulnerability can potentially be exploited by an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition. The UAF occurs due to improper handling of blk_trace objects after they have been removed, leading to a situation where the memory is accessed after it has been freed. This can result in memory corruption and potentially allow an attacker to gain control over the affected system.

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

As a workaround, users can disable the blktrace module if it is not required for their specific use case. Disabling the module will eliminate the potential attack surface associated with this vulnerability. To disable the blktrace module, the following steps can be followed:

  1. Open the terminal and switch to the root user.
  2. Execute the command: echo 'blacklist blktrace' >> /etc/modprobe.d/blacklist.conf
  3. Reboot the system for the changes to take effect.

Conclusion

The UAF vulnerability in blktrace can pose a significant security risk to Linux systems. It is crucial to promptly update the Kernel to the latest stable version (v4.4.286 or later) to mitigate this vulnerability. Additionally, users can consider disabling the blktrace module if it is not required for their specific use case. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The blktrace module in the Linux Kernel allows users to trace block I/O events and collect performance data for storage devices. It provides valuable insights into disk I/O patterns and can be used for performance analysis and debugging purposes.

A use-after-free (UAF) vulnerability occurs when a program continues to use a memory reference after it has been freed. This can lead to memory corruption and potentially allow an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition.

sysfs is a virtual file system in Linux that provides a structured view of kernel data and devices. It allows users and applications to interact with the kernel and access information about various system components.

The UAF vulnerability in blktrace can potentially be exploited by an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition. This can lead to unauthorized access, data breaches, system instability, and disruption of critical services.

You can use Vulert's playground at Vulert Scanner to check if your system is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just a manifest file like package-lock.json to provide comprehensive vulnerability information.

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