Privilege Escalation Vulnerability in libblockdev: USN-7577-2

libblockdev Updated 03 Oct 2025

Summary

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

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

libblockdev is a library that provides a set of utilities for managing block devices in Linux. It supports various filesystems and device management tasks, making it essential for system administrators and developers. The library is widely used in Ubuntu environments, particularly in managing storage devices and filesystems. However, a recently discovered vulnerability has raised concerns about its security, specifically regarding how it handles mount options during filesystem resizing.

Vulnerability Detail

The vulnerability, identified as CVE-2025-6019, arises from libblockdev's improper handling of mount options when resizing certain filesystems. This flaw allows a local attacker with an active session on the console to escalate their privileges to root. The potential ramifications include unauthorized access to sensitive system resources and the ability to execute arbitrary commands with elevated privileges, posing a significant security risk to affected systems.

How To Fix

Minimum fixed version

2.16-2ubuntu0.1~esm1

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 privilege escalation until the package is updated. This can be done by modifying user permissions and ensuring that only trusted users have console access.

Conclusion

The privilege escalation vulnerability in libblockdev, identified as USN-7577-2, poses a significant risk to systems running affected versions of the library. Users are strongly advised to update to the patched versions to secure their systems against potential attacks. Implementing temporary workarounds can help mitigate risks until updates are applied.

See every vulnerability recorded for libblockdev →

Share this vulnerability

FAQ

libblockdev is a library that provides utilities for managing block devices in Linux, supporting various filesystems and device management tasks.

The vulnerability allows a local attacker to escalate their privileges to root, potentially gaining unauthorized access to sensitive system resources.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.

Yes, patches are available for both Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. Users should update to the specified patched versions to mitigate the vulnerability.

If immediate updates are not possible, limit console access for unprivileged users as a temporary workaround to reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for libblockdev.

How To Fix

Minimum fixed version

2.16-2ubuntu0.1~esm1

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