Privilege Escalation Vulnerability in libblockdev: USN-7577-1

libblockdev Updated 03 Oct 2025

Summary

18/06/2025
N/A
Yes i
Unrated
Not published

USN-7577-1: libblockdev vulnerability. Affects libblockdev versions < 2.26-1ubuntu0.1. Fixed in 2.26-1ubuntu0.1. 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

libblockdev is a library that provides a set of utilities for managing block devices in Linux. It supports various operations such as resizing filesystems, managing logical volumes, and handling different types of block devices. The library is essential for system administrators and developers who need to interact with storage devices programmatically. However, a recently discovered vulnerability allows local attackers to exploit improper handling of mount options when resizing certain filesystems, potentially leading to privilege escalation.

Vulnerability Detail

The vulnerability identified as CVE-2025-6019 arises from libblockdev's incorrect handling of mount options during filesystem resizing operations. This flaw can be exploited by a local attacker with an active session on the console, allowing them to escalate their privileges to root. The implications of this vulnerability are severe, as it could enable unauthorized access to sensitive system resources and data, compromising the integrity and security of the affected system.

How To Fix

Minimum fixed version

2.26-1ubuntu0.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libblockdev

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can limit access to the console for unprivileged users to mitigate the risk of exploitation until the package is updated. Additionally, monitoring system logs for unusual activity may help identify potential exploitation attempts.

Conclusion

The libblockdev vulnerability (CVE-2025-6019) poses a significant risk of privilege escalation for local attackers. It is crucial for users to update their libblockdev packages to the patched versions to mitigate this risk. Employing temporary workarounds can help reduce exposure until the update is applied.

See every vulnerability recorded for libblockdev →

Share this vulnerability

FAQ

The vulnerability allows local attackers to escalate their privileges to root by exploiting improper handling of mount options during filesystem resizing.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected.

If exploited, this vulnerability could allow unauthorized users to gain root access, compromising system security and data integrity.

Yes, patched versions of the libblockdev package are available. Users should update to the latest version as specified in the 'how to fix' section.

If an immediate update is not possible, restrict console access for unprivileged users and monitor system logs for any suspicious activity.

Related vulnerabilities

Recent vulnerabilities recorded for libblockdev.

How To Fix

Minimum fixed version

2.26-1ubuntu0.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libblockdev

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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