Skip to content
7.8 High

CVE-2025-21772 In the Linux kernel, the following vulnerability has been resolved: partitions: mac: fix handling of bogus partition…

Description

In the Linux kernel, the following vulnerability has been resolved: partitions: mac: fix handling of bogus partition table Fix several issues in partition probing: - The bailout for a bad partoffset must use put_dev_sector(), since the preceding read_part_sector() succeeded. - If the partition table claims a silly sector size like 0xfff bytes (which results in partition table entries straddling sector boundaries), bail out instead of accessing out-of-bounds memory. - We must not assume that the partition table contains proper NUL termination - use strnlen() and strncmp() instead of strlen() and strcmp().

Affected products and versions

Product Affected versions Fixed in
Linux 6.14 earliest → < 6.14 6.14
Linux 6.13 earliest → < 6.13.4 6.13.4
Linux 6.12 earliest → < 6.12.16 6.12.16
Linux 6.6 earliest → < 6.6.79 6.6.79
Linux 6.1 earliest → < 6.1.129 6.1.129
Linux 5.15 earliest → < 5.15.179 5.15.179
Linux 5.10 earliest → < 5.10.235 5.10.235
Linux 5.4 earliest → < 5.4.291 5.4.291
Linux 4.4 No fix stated
Show the other branch
Product Affected versions Fixed in
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem Versions not published
The 18286 CVEs of Linux →
Track this CVE