# CVE-2025-21772: partitions: mac: fix handling of bogus partition table

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-27 · Modified: 2026-10-15
- Aliases: SUSE-SU-2025:02393-1, SUSE-SU-2025:02438-1, UBUNTU-CVE-2025-21772, DEBIAN-CVE-2025-21772
- Record: https://cvemate.com/vulnerability/CVE-2025-21772 · JSON: https://cvemate.com/vulnerability/CVE-2025-21772/json

## Description

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

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.244%, percentile 16.645%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 143)

- debian linux (Debian): \< 6.1.129-1 \| \< 6.12.16-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-216.236 \| \< 5.15.0-140.150 \| \< 6.8.0-78.78
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1146.156 \| \< 5.15.0-1084.91 \| \< 6.8.0-1035.37
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1084.91~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1146.156~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1035.37~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1146.156+fips1 \| \< 5.15.0-1084.91+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1151.158 \| \< 5.15.0-1089.98 \| \< 6.8.0-1034.39
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 58)

- <https://git.kernel.org/stable/c/a3e77da9f843e4ab93917d30c314f0283e28c124>
- <https://git.kernel.org/stable/c/213ba5bd81b7e97ac6e6190b8f3bc6ba76123625>
- <https://git.kernel.org/stable/c/40a35d14f3c0dc72b689061ec72fc9b193f37d1f>
- <https://git.kernel.org/stable/c/27a39d006f85e869be68c1d5d2ce05e5d6445bf5>
- <https://git.kernel.org/stable/c/92527100be38ede924768f4277450dfe8a40e16b>
- <https://git.kernel.org/stable/c/6578717ebca91678131d2b1f4ba4258e60536e9f>
- <https://git.kernel.org/stable/c/7fa9706722882f634090bfc9af642bf9ed719e27>
- <https://git.kernel.org/stable/c/80e648042e512d5a767da251d44132553fe04ae0>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202502393-1/>
- <https://bugzilla.suse.com/1238912>
- <https://www.suse.com/security/cve/CVE-2025-21772>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202502438-1/>
- <https://ubuntu.com/security/CVE-2025-21772>
- <https://www.cve.org/CVERecord?id=CVE-2025-21772>
- <https://git.kernel.org/linus/80e648042e512d5a767da251d44132553fe04ae0>
- <https://ubuntu.com/security/notices/USN-7510-1>
- <https://ubuntu.com/security/notices/USN-7510-2>

---

Data as of 2026-12-05T03:52:18.042Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
