Your message dated Thu, 12 Nov 2026 23:34:36 +0000
with message-id <[email protected]>
and subject line Bug#1152913: fixed in libblockdev 3.6.0-1
has caused the Debian Bug report #1152913,
regarding libblockdev: CVE-2026-111581: vfat/ntfs set_label passes label 
without "--" (option injection); patch attached inline
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1152913: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1152913
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: libblockdev
Version: 3.5.0-2
Severity: important
Tags: security patch upstream

Hi,

CVE-2026-111581 (
https://www.google.com/url?q=https://bugzilla.redhat.com/show_bug.cgi?id%3D2554104&source=gmail&ust=1793770567286000&sa=E
)
has no Debian bug yet; the tracker lists libblockdev <unfixed>.

bd_fs_vfat_set_label() and bd_fs_ntfs_set_label() run fatlabel and
ntfslabel with the caller's label as a bare positional argument. A label
that starts with "-" is therefore parsed as an option by those tools.
Red Hat notes this is reachable through udisks2's Filesystem.SetLabel()
for an active local session.

There is no upstream fix yet: no commit, PR or issue in
storaged-project/libblockdev as of 2026-11-03, and the last release is
3.5.0. A minimal fix is to end option parsing with "--". The patch below
is against 3.5.0-2. It changes only the argv layout: "--reset" stays
before "--", and the device and label follow it.

--- a/src/plugins/fs/vfat.c
+++ b/src/plugins/fs/vfat.c
@@ -288,7 +288,9 @@
* Tech category: %BD_FS_TECH_VFAT-%BD_FS_TECH_MODE_SET_LABEL
*/
gboolean bd_fs_vfat_set_label (const gchar *device, const gchar *label,
GError **error) {
- const gchar *args[4] = {"fatlabel", device, NULL, NULL};
+ /* "--" ends option parsing so that a label starting with "-" is not
+ * interpreted by fatlabel as an option (CVE-2026-111581) */
+ const gchar *args[5] = {"fatlabel", "--", device, NULL, NULL};
UtilDep dep = {"fatlabel", "4.2", "--version", "fatlabel\\s+([\\d\\.]+).+"};
gchar *label_up = NULL;
gboolean new_vfat = FALSE;
@@ -302,14 +304,17 @@
new_vfat = bd_utils_check_util_version (
https://www.google.com/url?q=http://dep.name&source=gmail&ust=1793770567286000&sa=E,
dep.version,
dep.ver_arg, dep.ver_regexp,
NULL);
- if (new_vfat)
- args[2] = "--reset";
+ if (new_vfat) {
+ args[1] = "--reset";
+ args[2] = "--";
+ args[3] = device;
+ }
}

/* forcefully convert the label uppercase in case no reset was requested */
- if (label && args[2] == NULL) {
+ if (label && args[3] == NULL) {
label_up = g_ascii_strup (label, -1);
- args[2] = label_up;
+ args[3] = label_up;
}
ret = bd_utils_exec_and_report_error (args, NULL, error);
g_free (label_up);
--- a/src/plugins/fs/ntfs.c
+++ b/src/plugins/fs/ntfs.c
@@ -223,7 +223,9 @@
* Tech category: %BD_FS_TECH_NTFS-%BD_FS_TECH_MODE_SET_LABEL
*/
gboolean bd_fs_ntfs_set_label (const gchar *device, const gchar *label,
GError **error) {
- const gchar *args[4] = {"ntfslabel", device, label, NULL};
+ /* "--" ends option parsing so that a label starting with "-" is not
+ * interpreted by ntfslabel as an option (CVE-2026-111581) */
+ const gchar *args[5] = {"ntfslabel", "--", device, label, NULL};

if (!check_deps (&avail_deps, DEPS_NTFSLABEL_MASK, deps, DEPS_LAST,
&deps_check_lock, error))
return FALSE;

Testing: I did not rebuild libblockdev; that needs more -dev packages
than I have here. Instead I ran the exact argv vectors that 3.5.0 builds
and the patched ones against the real tools from sid (dosfstools 4.2-1.2
and ntfs-3g 1:2026.9.28-2), on 16 MB image files. Each case started from
the label "RESETME":

case 3.5.0 argv patched argv
vfat "DATA" label DATA label DATA
vfat "-V" prints fatlabel version, label "-V"
label unchanged
vfat --reset label cleared label cleared
ntfs "DATA" label DATA label DATA
ntfs "-n" parsed as an option (prints the label "-n"
current label), label unchanged

So with "--", labels are always taken literally, and the normal and
--reset paths behave as before. Both tools use getopt, which honours
"--"; the same applies to older fatlabel without --reset, where the
layout is "fatlabel -- device label".

An alternative or additional hardening would be to reject a leading "-"
in bd_fs_vfat_check_label()/bd_fs_ntfs_check_label(). However, labels
such as "-DATA-" are legitimate, so "--" seems the better fix.

This should probably be forwarded upstream too; I haven't opened
anything there.

Thanks!

--- End Message ---
--- Begin Message ---
Source: libblockdev
Source-Version: 3.6.0-1
Done: Michael Biebl <[email protected]>

We believe that the bug you reported is fixed in the latest version of
libblockdev, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Biebl <[email protected]> (supplier of updated libblockdev package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 12 Nov 2026 23:02:52 +0100
Source: libblockdev
Architecture: source
Version: 3.6.0-1
Distribution: unstable
Urgency: medium
Maintainer: Utopia Maintenance Team 
<[email protected]>
Changed-By: Michael Biebl <[email protected]>
Closes: 1152913
Changes:
 libblockdev (3.6.0-1) unstable; urgency=medium
 .
   * New upstream release
     - fs: Prevent VFAT and NTFS labels from being interpreted as options
       (CVE-2026-111581, Closes: #1152913)
   * Rebase patches
   * Update symbols files
Checksums-Sha1:
 dbdd9a09ed2032139e0987821bdeb0b49e9e430a 5785 libblockdev_3.6.0-1.dsc
 b8f799060f3cf30659ef73a3d61974acf4188779 606448 libblockdev_3.6.0.orig.tar.gz
 4fb6e758be51570f43c4b6d787a3c24fe80c54aa 14464 
libblockdev_3.6.0-1.debian.tar.xz
 c6ff2c103d97ed68dc1d480c3238e230408d4eb0 15891 
libblockdev_3.6.0-1_source.buildinfo
Checksums-Sha256:
 2007e6fb93cc4ed3c9fd2425697b041b7c414474c987deb99472fd100a9fb306 5785 
libblockdev_3.6.0-1.dsc
 8a5535877dd31a8b24c2abaaeb9b374b3ee59bb649c13ce5e18bee121d7c31a1 606448 
libblockdev_3.6.0.orig.tar.gz
 6d1ffaf1134f5483bb25ef84caad8d1d02cdff170d7b4bb6feb81956feffdee5 14464 
libblockdev_3.6.0-1.debian.tar.xz
 880ef51abab086a4140bcc6a2935b91c4ddca94d3fff201ef0116921c0f27161 15891 
libblockdev_3.6.0-1_source.buildinfo
Files:
 6d6bc548ed2fa3a07d440bf0504db029 5785 libs optional libblockdev_3.6.0-1.dsc
 92952321d1dcf02f058119055e63211f 606448 libs optional 
libblockdev_3.6.0.orig.tar.gz
 9fccd87449dceb0cef3293fcd1d8c94e 14464 libs optional 
libblockdev_3.6.0-1.debian.tar.xz
 d65aa4c3ab20f4a51b93ddc7dfdb2917 15891 libs optional 
libblockdev_3.6.0-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAmr2R1YACgkQauHfDWCP
ItyuUQ/+IbvEYWAXOu3nctyVjN/w7B1M4muQVZArm9ENjD9zd+nEE1YqxoklwOTJ
RRI05u2coHS6qBPn/XPZUayRSbUhPpa5MKs9WYxcPLfEojv7YRUSkeLc9LLuWWUh
mmrbc/GIJboQ1vobXkhejilyP1mOD5PwX2FdzaSU/IfVEAvgiqVaDxqf6D2iRJQl
XKcNGU5oOSauC+I76ebvlSm7sp2BnHpq/dR/VIxIs3PlUOzaRb9RxQvuyO//fwve
S2VAhYponzZqGVx0tXP5ZQqSkvHDZXKaLaw39fdpV7sHOqMAkxMMDIB9RjCWNVqh
AXnT9yQi/Rs3HaifbHQc0xpz7SuZemOFyi4+Jt1ArRBzB+kjrALcUDT6fy+6MQ4D
CPRwS2wF8dNJsafcHR5dxTQFXeO09TWEIsonLcKPIFUxQRcm1AjLV6ut0oMcTs55
KRGEk3nzQ3F/uhX4c6B+z0RsgavSJDflk8rf+dDaWDM9yxEly4gVnRrumApq0fxg
CvgI7D/UsjezmaFXjkzPBb0r1+Kd943eM9pvhbt85oA01j7D0kBYAwVEQIFVzGc4
c4n+Kiy+JT8t7MDqoMXTmMttDlJxzyIm3QW4mLUThgtKY84qV4Ig6InH8iFOGZYK
BT6aAD0Dba4YCuqXlSoF8imj9QhplHoNkcXeOf0tA2l6eQCLJ1c=
=fkYw
-----END PGP SIGNATURE-----

Attachment: pgpjF3kd7J5Nl.pgp
Description: PGP signature


--- End Message ---

Reply via email to