Use After Free Vulnerability in drbd Package

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001681: drbd: Fix five use after free bugs in get_initial_state. Affects Kernel versions >= a29728463b254ce81ecefdf20c1a02e01d9361da, < a972c768723359ec995579902473028fe3cd64b1. 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 drbd package is a distributed replicated block device driver for Linux. It allows users to create a networked RAID 1 array across multiple machines, ensuring data redundancy and high availability. The package is widely used in scenarios where data replication and synchronization are critical, such as in clustered environments and storage systems. However, a use after free vulnerability has been discovered in the package, which can potentially lead to security breaches and system instability.

Vulnerability Detail

The use after free vulnerability in the drbd package affects the get_initial_state function. This vulnerability allows an attacker to exploit a freed memory region, leading to potential memory corruption and arbitrary code execution. By carefully crafting malicious input, an attacker can trigger the use after free condition and gain unauthorized access or cause a denial of service. The vulnerability was introduced in version 4.5 of the Linux Kernel and has been fixed in version 5.15.34.

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 temporary workaround, users can disable the drbd module or remove the package from their system if it is not essential for their operations. However, this may impact the functionality of systems relying on the drbd package, and it is strongly advised to apply the official fix as soon as possible.

Conclusion

The use after free vulnerability in the drbd package poses a significant risk to systems utilizing this package. It is recommended to update the Linux Kernel to version 5.15.34 or later to address this vulnerability. Users can also use the Vulert Playground at https://vulert.com/scanner to check if their system is affected and receive real-time alerts for open-source vulnerabilities. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The use after free vulnerability in the drbd package can potentially lead to security breaches and system instability. Attackers can exploit this vulnerability to execute arbitrary code or cause a denial of service.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time alerts for open-source vulnerabilities, including this one.

Yes, as a temporary workaround, you can disable the drbd module or remove the package from your system if it is not essential. However, it is recommended to apply the official fix as soon as possible.

To update the Linux Kernel, you can either obtain the updated kernel from the official Linux Kernel repository or use your Linux distribution's package manager to install the latest kernel version.

At the time of this report, there are no known public exploits targeting this specific vulnerability. However, it is crucial to apply the fix promptly to mitigate any potential risks.

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