A flaw was found in libblockdev. The bd_fs_ntfs_set_label() and bd_fs_vfat_set_label() functions pass caller-supplied label values as bare positional...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:18.04:LTSlibblockdev |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSlibblockdev |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlibblockdev |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlibblockdev |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10libblockdev |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSlibblockdev |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
A flaw was found in libblockdev. The bd_fs_ntfs_set_label() and bd_fs_vfat_set_label() 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.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report bugzilla.redhat.com