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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-02-27T02:18:19.528Z
- **Modified:** 2026-10-15T22:18:08.493Z

## Who should check

- Anyone running Linux \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< a3e77da9f843e4ab93917d30c314f0283e28c124; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 213ba5bd81b7e97ac6e6190b8f3bc6ba76123625; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 40a35d14f3c0dc72b689061ec72fc9b193f37d1f; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 27a39d006f85e869be68c1d5d2ce05e5d6445bf5; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 92527100be38ede924768f4277450dfe8a40e16b; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 6578717ebca91678131d2b1f4ba4258e60536e9f; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 7fa9706722882f634090bfc9af642bf9ed719e27; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 80e648042e512d5a767da251d44132553fe04ae0; 81a319c5c29913a23947f3d28513974682f3af03; 34a906cd9f6445d9510841667eff0d980279ebf3; …
- Anyone running Linux 4.4

## 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 and fixed versions

- Linux: \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< a3e77da9f843e4ab93917d30c314f0283e28c124; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 213ba5bd81b7e97ac6e6190b8f3bc6ba76123625; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 40a35d14f3c0dc72b689061ec72fc9b193f37d1f; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 27a39d006f85e869be68c1d5d2ce05e5d6445bf5; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 92527100be38ede924768f4277450dfe8a40e16b; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 6578717ebca91678131d2b1f4ba4258e60536e9f; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 7fa9706722882f634090bfc9af642bf9ed719e27; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 80e648042e512d5a767da251d44132553fe04ae0; 81a319c5c29913a23947f3d28513974682f3af03; 34a906cd9f6445d9510841667eff0d980279ebf3; … (cvelist)
- Linux: 4.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21772. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21772.md
Affected: Linux >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < a3e77da9f843e4ab93917d30c314f0283e28c124; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 213ba5bd81b7e97ac6e6190b8f3bc6ba76123625; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 40a35d14f3c0dc72b689061ec72fc9b193f37d1f; >= 02e2a5bfebe99edcf9d6945…
Fixed in: Linux 213ba5bd81b7e97ac6e6190b8f3bc6ba76123625, Linux 40a35d14f3c0dc72b689061ec72fc9b193f37d1f, Linux 27a39d006f85e869be68c1d5d2ce05e5d6445bf5, Linux 92527100be38ede924768f4277450dfe8a40e16b, Linux 6578717ebca91678131d2b1f4ba4258e60536e9f, Linux 7fa9706722882f634090bfc9af642bf9ed719e27, Linux 80e64…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21772 being exploited?

There is no confirmed exploitation: CVE-2025-21772 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21772?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21772?

Linux \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< a3e77da9f843e4ab93917d30c314f0283e28c124; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 213ba5bd81b7e97ac6e6190b8f3bc6ba76123625; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 40a35d14f3c0dc72b689061ec72fc9b193f37d1f; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 27a39d006f85e869be68c1d5d2ce05e5d6445bf5; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 92527100be38ede924768f4277450dfe8a40e16b; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 6578717ebca91678131d2b1f4ba4258e60536e9f; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 7fa9706722882f634090bfc9af642bf9ed719e27; \>= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, \< 80e648042e512d5a767da251d44132553fe04ae0; 81a319c5c29913a23947f3d28513974682f3af03; 34a906cd9f6445d9510841667eff0d980279ebf3; …; Linux 4.4.

### Is there a fix for CVE-2025-21772?

Yes. Fixed in Linux 213ba5bd81b7e97ac6e6190b8f3bc6ba76123625, Linux 40a35d14f3c0dc72b689061ec72fc9b193f37d1f, Linux 27a39d006f85e869be68c1d5d2ce05e5d6445bf5, Linux 92527100be38ede924768f4277450dfe8a40e16b, Linux 6578717ebca91678131d2b1f4ba4258e60536e9f, Linux 7fa9706722882f634090bfc9af642bf9ed719e27, Linux 80e648042e512d5a767da251d44132553fe04ae0. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-21772?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a3e77da9f843e4ab93917d30c314f0283e28c124>
- patch: <https://git.kernel.org/stable/c/213ba5bd81b7e97ac6e6190b8f3bc6ba76123625>
- patch: <https://git.kernel.org/stable/c/40a35d14f3c0dc72b689061ec72fc9b193f37d1f>
- patch: <https://git.kernel.org/stable/c/27a39d006f85e869be68c1d5d2ce05e5d6445bf5>
- patch: <https://git.kernel.org/stable/c/92527100be38ede924768f4277450dfe8a40e16b>
- patch: <https://git.kernel.org/stable/c/6578717ebca91678131d2b1f4ba4258e60536e9f>
- patch: <https://git.kernel.org/stable/c/7fa9706722882f634090bfc9af642bf9ed719e27>
- patch: <https://git.kernel.org/stable/c/80e648042e512d5a767da251d44132553fe04ae0>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21772>

HTML: <https://flawdb.com/CVE-2025-21772> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21772>
