util-linux libblkid DOS extended-partition overflow produces invalid partition metadata
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
util-linux is a random collection of Linux utilities. Before util-linux 2.41.4, parse_dos_extended() in libblkid/src/partitions/dos.c computes an extended-partition start sector with 32-bit addition and does not apply the extended-area bounds checks to the first two EBR entries. A local attacker who causes a crafted DOS extended-partition disk image or removable medium to be probed can wrap cur_start + start to sector zero and cause libblkid to report a false partition overlapping the MBR. This directly compromises the integrity of the reported partition metadata; disk modification or availability loss requires a separate downstream consumer to act on that metadata. This issue is fixed in 2.41.4.
Text from CVE List
Affected versions 1
- util-linuxaffected: < 2.41.4CVE List
References 5
- github.com/util-linux/util-linux/commit/05c2dbadf34cc74192287f377904afaaf4061623Fixvia CVE List
- github.com/util-linux/util-linux/commit/a2d858176b609ab5b8535021a3af9cd302d23d31Fixvia CVE List
- github.com/util-linux/util-linux/commit/e9d544d013267ea86b70ee8ff78abd280e6641afFixvia CVE List
- github.com/util-linux/util-linux/releases/tag/v2.41.4Fixvia CVE List
- github.com/util-linux/util-linux/security/advisories/GHSA-h4rw-gv36-wmp5Advisoryvia CVE List