Debian Patches

Status for parted/3.6-5+deb13u1

Patch Description Author Forwarded Bugs Origin Last update
doc-package.patch Small documentation fixes Timshel Knoll <timshel@debian.org> not-needed 2014-03-28
preserve-hidden-parts.patch Avoid overwriting empty or hidden partitions
It changes the DOS partition rewriting code to avoid overwriting empty
or hidden primary partitions so long as their entries aren't reused.
This makes fatresize and similar front-ends safe to use in the presence
of hidden partitions.
Ben Hutchings <ben@decadent.org.uk> yes debian 2010-02-02
kfreebsd-gnu.patch Add GNU/kFreeBSD support Jeff Epler <jepler@unpythonic.net> no debian 2019-10-11
freebsd-ufs.patch Add FreeBSD UFS support
This patch adds support for detection of FreeBSD UFS file systems and
creation of the partition on DOS and GPT labels. It doesn't use the
system of slices used by default on FreeBSD and places the partition
directly in the dos label. This is something supported by the FreeBSD
kernel, and the default on Debian GNU/kFreeBSD. Even on plain FreeBSD,
some persons prefer to not use slices.

This patch is used by debian-installer on Debian GNU/kFreeBSD for some
months already.
Aurelien Jarno <aurelien@aurel32.net> no 2023-06-12
zfs.patch Add ZFS support Colin Watson <cjwatson@ubuntu.com> no 2019-10-11
freebsd-zvol.patch Detection of ZFS volumes (ZVOL)
ZFS volumes (ZVOL) are the ZFS equivalent of Logical Volumes in LVM.

They implement a block device which can be used for swap or legacy
filesystems.
Robert Millan <rmh@debian.org> no debian 2011-07-30
freebsd-geli.patch Detection of GEOM encryption devices (GELI) Robert Millan <rmh@debian.org> no debian 2011-07-30
kfreebsd_lvm.patch Add LVM support on kFreeBSD Colin Watson <cjwatson@ubuntu.com> no 2014-03-28
gptsync.patch GPT syncing for Intel Macs
On Intel Mac systems, write a synced MBR rather than a protective MBR.
Colin Watson <cjwatson@ubuntu.com> no 2022-04-19
udevadm-settle.patch udev handling
Run udevadm settle around partition table rereads, to avoid races.

This should be replaced by a proper completion-notification mechanism
between the kernel and udev.
Colin Watson <cjwatson@ubuntu.com> no 2019-10-11
align-new-partitions-on-fresh-disks.patch Align new partitions created on fresh disks
Commit fa815ad05db248d78ef214ea79a78c22772a9ffe arranged to skip
partition alignment while reading disks, but also has the effect of
skipping partition alignment when creating a partition on a fresh disk,
which is incorrect.

The proper upstream fix probably involves adding a new member to PedDisk
to keep track of whether we're in the middle of the initial read in
ped_disk_new or not. To avoid changing ABI, we instead take this hacky
approach of overloading an extra bit on PedDisk.needs_clobber.
Colin Watson <cjwatson@ubuntu.com> no 2023-06-26
probe-lvs-again.patch Probe LVM logical volumes again
parted 3.2 stopped probing LVM logical volumes. This breaks
debian-installer, which wants to be able to "partition" these, at least
to the extent of being able to see them in the partitioner and operate
on them somewhat like ordinary partitions. Revert to the old behaviour.
Colin Watson <cjwatson@ubuntu.com> no debian 2014-08-11
link-libuuid.patch parted: link to libuuid
parted.c uses libuuid since 61b3a9733c0e0a79ccc43096642d378c8706add6.
Hence, add UUID_LIBS to PARTED_LIBS to avoid
"DSO missing from command line" error.
Yegor Yefremov <yegorslists@googlemail.com> no upstream, https://git.savannah.gnu.org/cgit/parted.git/commit/?id=d22c2d01f62139e0d386d90584cac0705857a571 2023-06-13
gcc-15.patch bug#74444: [PATCH] parted: fix do_version declaration
With gcc 15-20241117 compile fails with the below error, update the
do_version declaration to match the header in command.h

../../parted/parted.c: In function '_init_commands':
../../parted/parted.c:2469:9: error: passing argument 2 of 'command_create' from incompatible pointer type [-Wincompatible-pointer-types]
2469 | do_version,
| ^~~~~~~~~~
| |
| int (*)(void)
In file included from ../../parted/parted.c:28:
../../parted/command.h:35:39: note: expected 'int (*)(PedDevice **, PedDisk **)' {aka 'int (*)(struct _PedDevice **, struct _PedDisk **)'} but argument is of type 'int (*)(void)'
35 | int (*method) (PedDevice** dev, PedDisk** diskp),
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rudi Heitbaum <rudi@heitbaum.com> yes debian upstream upstream, https://git.savannah.gnu.org/cgit/parted.git/commit/?id=16343bda6ce0d41edf43f8dac368db3bbb63d271 2025-02-23
CVE-2026-89088.and.CVE-2026-89085.patch libparted: Catch FAT metadata triggered errors
Bad metadata can trigger a buffer overflow in fat resize code. Trigger
an assert when the sector count is too large, or malloc is called with a
size of 0

Adds a new test that checks to make sure that the assert is triggered.
This includes a test for deep directory traversal which should be caught
by glibc and reported as 'buffer overflow detected'.

This also includes a check on the flag_traverse_dir dir_name length to
prevent an overflow of the 4k buffer with deeply nested directories.
Also include a test for this assertion.

default) this enables a large number of PED_ASSERT checks which catch
various conditions like these.

This fixes two CVE's:
- CVE-2026-89085 - heap buffer overflow in _init_fats / fat_table_read
- CVE-2026-89088 - heap buffer overflow in duplicate_legacy_root_dir
"Brian C. Lane" <bcl@redhat.com> no debian upstream, https://gitweb.git.savannah.gnu.org/gitweb/?p=parted.git;a=commit;h=73301c6915781c2eee66d0b1cc9d41a70bf901d6 2026-09-30

All known versions for source package 'parted'

Links