CVE-2025-21772

HIGH

Linux Kernel - Out-of-bounds Write in Partition Table Handling

Title source: llm
STIX 2.1

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().

Scores

CVSS v3 7.8
EPSS 0.0021
EPSS Percentile 11.0%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-787
Status published
Products (37)
linux/Kernel 4.4.0 - 5.4.291linux
linux/Kernel 5.11.0 - 5.15.179linux
linux/Kernel 5.16.0 - 6.1.129linux
linux/Kernel 5.5.0 - 5.10.235linux
linux/Kernel 6.13.0 - 6.13.4linux
linux/Kernel 6.2.0 - 6.6.79linux
linux/Kernel 6.7.0 - 6.12.16linux
Linux/Linux < 4.4
Linux/Linux 02e2a5bfebe99edcf9d694575a75032d53fe1b73 - 213ba5bd81b7e97ac6e6190b8f3bc6ba76123625
Linux/Linux 02e2a5bfebe99edcf9d694575a75032d53fe1b73 - 27a39d006f85e869be68c1d5d2ce05e5d6445bf5
... and 27 more
Published Feb 27, 2025
Tracked Since Feb 18, 2026