CVE-2025-21772CWE-787

CVE-2025-21772

High · published February 27, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
14.5
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00241 · 14.5th percentile
Weakness
CWE-787 · Out-of-bounds Write
Published
2025-02-27T08:15Z
Affected products (9)
ProductVersionsFixed in
linux/linux_kernel< 5.4.2915.4.291
linux/linux_kernel≥ 5.5, < 5.10.2355.10.235
linux/linux_kernel≥ 5.11, < 5.15.1795.15.179
linux/linux_kernel≥ 5.16, < 6.1.1296.1.129
linux/linux_kernel≥ 6.2, < 6.6.796.6.79
linux/linux_kernel≥ 6.7, < 6.12.166.12.16
linux/linux_kernel≥ 6.13, < 6.13.46.13.4
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (11)
EPSS history
Timeline
  • 27 FEB 02:18Z
    partitions: mac: fix handling of bogus partition table
    cvelistv5