CVE-2025-21772
partitions: mac: fix handling of bogus partition table
Mitigation
- No fix listed yet: follow the vendor advisory.
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
Vulnerability facts
- Affected
- Linux >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < a3e77da9f843e4ab93917d30c314f0283e28c124; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 213ba5bd81b7e97ac6e6190b8f3bc6ba76123625; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 40a35d14f3c0dc72b689061ec72fc9b193f37d1f; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 27a39d006f85e869be68c1d5d2ce05e5d6445bf5; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 92527100be38ede924768f4277450dfe8a40e16b; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 6578717ebca91678131d2b1f4ba4258e60536e9f; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 7fa9706722882f634090bfc9af642bf9ed719e27; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 80e648042e512d5a767da251d44132553fe04ae0; 81a319c5c29913a23947f3d28513974682f3af03; 34a906cd9f6445d9510841667eff0d980279ebf3; …; Linux 4.4
- Fixed in
- Linux 213ba5bd81b7e97ac6e6190b8f3bc6ba76123625, Linux 40a35d14f3c0dc72b689061ec72fc9b193f37d1f, Linux 27a39d006f85e869be68c1d5d2ce05e5d6445bf5, Linux 92527100be38ede924768f4277450dfe8a40e16b, Linux 6578717ebca91678131d2b1f4ba4258e60536e9f, Linux 7fa9706722882f634090bfc9af642bf9ed719e27, Linux 80e648042e512d5a767da251d44132553fe04ae0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.32% chance of exploitation in 30 days (percentile 18, 2026-11-26)
- CWE
- CWE-787
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < a3e77da9f843e4ab93917d30c314f0283e28c124; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 213ba5bd81b7e97ac6e6190b8f3bc6ba76123625; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 40a35d14f3c0dc72b689061ec72fc9b193f37d1f; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 27a39d006f85e869be68c1d5d2ce05e5d6445bf5; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 92527100be38ede924768f4277450dfe8a40e16b; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 6578717ebca91678131d2b1f4ba4258e60536e9f; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 7fa9706722882f634090bfc9af642bf9ed719e27; >= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 80e648042e512d5a767da251d44132553fe04ae0; 81a319c5c29913a23947f3d28513974682f3af03; 34a906cd9f6445d9510841667eff0d980279ebf3; … | — | cvelist |
| Linux | 4.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- 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
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.