partitions: mac: fix handling of bogus partition table
Summary
| CVE | CVE-2025-21772 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-02-27 03:15:17 UTC |
| Updated | 2026-05-12 13:16:36 UTC |
| 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(). |
Risk And Classification
Primary CVSS: v3.1 7.8 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-787
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 02e2a5bfebe99edcf9d694575a75032d53fe1b73 a3e77da9f843e4ab93917d30c314f0283e28c124 git | Not specified |
| CNA | Linux | Linux | affected 02e2a5bfebe99edcf9d694575a75032d53fe1b73 213ba5bd81b7e97ac6e6190b8f3bc6ba76123625 git | Not specified |
| CNA | Linux | Linux | affected 02e2a5bfebe99edcf9d694575a75032d53fe1b73 40a35d14f3c0dc72b689061ec72fc9b193f37d1f git | Not specified |
| CNA | Linux | Linux | affected 02e2a5bfebe99edcf9d694575a75032d53fe1b73 27a39d006f85e869be68c1d5d2ce05e5d6445bf5 git | Not specified |
| CNA | Linux | Linux | affected 02e2a5bfebe99edcf9d694575a75032d53fe1b73 92527100be38ede924768f4277450dfe8a40e16b git | Not specified |
| CNA | Linux | Linux | affected 02e2a5bfebe99edcf9d694575a75032d53fe1b73 6578717ebca91678131d2b1f4ba4258e60536e9f git | Not specified |
| CNA | Linux | Linux | affected 02e2a5bfebe99edcf9d694575a75032d53fe1b73 7fa9706722882f634090bfc9af642bf9ed719e27 git | Not specified |
| CNA | Linux | Linux | affected 02e2a5bfebe99edcf9d694575a75032d53fe1b73 80e648042e512d5a767da251d44132553fe04ae0 git | Not specified |
| CNA | Linux | Linux | affected 81a319c5c29913a23947f3d28513974682f3af03 git | Not specified |
| CNA | Linux | Linux | affected 34a906cd9f6445d9510841667eff0d980279ebf3 git | Not specified |
| CNA | Linux | Linux | affected 2a27f61bd411e564eb4651c18d225f6e9e1de534 git | Not specified |
| CNA | Linux | Linux | affected 69aad7e01c8e883e9d2f8dc5523bd419bd02d2aa git | Not specified |
| CNA | Linux | Linux | affected 7f4f03c4a1e9a4b9679feafe7625a780864a4e76 git | Not specified |
| CNA | Linux | Linux | affected 4.4 | Not specified |
| CNA | Linux | Linux | unaffected 4.4 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.4.291 5.4.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.235 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.179 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.129 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.79 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.16 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.13.4 6.13.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.14 * original_commit_for_fix | Not specified |
| ADP | Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux Subsystem | affected * custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/92527100be38ede924768f4277450dfe8a40e16b | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| lists.debian.org/debian-lts-announce/2025/05/msg00030.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| git.kernel.org/stable/c/40a35d14f3c0dc72b689061ec72fc9b193f37d1f | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/a3e77da9f843e4ab93917d30c314f0283e28c124 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/6578717ebca91678131d2b1f4ba4258e60536e9f | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/7fa9706722882f634090bfc9af642bf9ed719e27 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| cert-portal.siemens.com/productcert/html/ssa-265688.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| git.kernel.org/stable/c/213ba5bd81b7e97ac6e6190b8f3bc6ba76123625 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/27a39d006f85e869be68c1d5d2ce05e5d6445bf5 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| lists.debian.org/debian-lts-announce/2025/03/msg00028.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| git.kernel.org/stable/c/80e648042e512d5a767da251d44132553fe04ae0 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.