OESA-2026-4878: libblockdev security update
libblockdev is a C library supporting GObject introspection for manipulation of block devices. It has a plugin-based architecture where each technology (like LVM, Btrfs, MD RAID, Swap,...) is implemented in a separate plugin, possibly with multiple implementations (e.g. using LVM CLI or the new LVM DBus API). Security Fix(es):
A flaw was found in libblockdev. The bdfsntfssetlabel() and bdfsvfatsetlabel() functions pass caller-supplied label values as bare positional arguments to the ntfslabel and fatlabel utilities without end-of-options separators or input validation for values beginning with a dash. This allows a label starting with '-' to be interpreted as a command-line flag by the spawned tool, potentially bypassing safety checks or causing unintended operations. This is reachable by unprivileged local users through the udisks2 Filesystem.SetLabel() D-Bus method without administrator authentication.(CVE-2026-111581)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
openeuler/libblockdevto a version that resolves this vulnerability.Fixed in 3.0.4-11.oe2403sp3
Event History
Frequently Asked Questions
Who can exploit this issue?
An unprivileged local user can reach the vulnerable code through the udisks2 Filesystem.SetLabel() D-Bus method without administrator authentication. Remote attackers are not indicated by the provided attack vector.
What is required to trigger the flaw?
The attacker needs to supply a filesystem label beginning with a dash through a path that invokes bd_fs_ntfs_set_label() or bd_fs_vfat_set_label(). The affected functions pass that value to ntfslabel or fatlabel as a positional command-line argument without an end-of-options separator or validation.
Which filesystem label operations are affected?
The issue affects NTFS label changes performed by bd_fs_ntfs_set_label() and VFAT label changes performed by bd_fs_vfat_set_label(). A dash-prefixed label may be interpreted as an option by the ntfslabel or fatlabel utility.