Skip to content
Heist/ feed
Back to feed
HighFix available

partitions: mac: fix handling of bogus partition table

Type: advisorySources: OSV

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

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.235, 5.15.179, 5.4.291, 6.1.129, 6.12.16, 6.13.4, 6.6.79
CVEs
CVE-2025-21772
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:13 UTC · Revision 1

Source evidence

partitions: mac: fix handling of bogus partition table

core-osv · Original source

Published 27 Feb 2025, 02:18 UTC

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

osv:CVE-2025-21772

Kernel

Fixed versions: 5.4.291, 5.10.235, 5.15.179, 6.1.129, 6.6.79, 6.12.16, 6.13.4

Complete source record
{
  "id": "f51407979946ed36cc64acc77284683400a26a6a039091965791220155711efd",
  "url": "https://osv.dev/vulnerability/CVE-2025-21772",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "partitions: mac: fix handling of bogus partition table",
    "summary": "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().",
    "evidence": "osv:CVE-2025-21772",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.291",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.235",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.179",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.129",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.79",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.16",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.13.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-21772",
      "aliases": [
        "CVE-2025-21772"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "02e2a5bfebe99edcf9d694575a75032d53fe1b73"
                },
                {
                  "fixed": "a3e77da9f843e4ab93917d30c314f0283e28c124"
                },
                {
                  "fixed": "213ba5bd81b7e97ac6e6190b8f3bc6ba76123625"
                },
                {
                  "fixed": "40a35d14f3c0dc72b689061ec72fc9b193f37d1f"
                },
                {
                  "fixed": "27a39d006f85e869be68c1d5d2ce05e5d6445bf5"
                },
                {
                  "fixed": "92527100be38ede924768f4277450dfe8a40e16b"
                },
                {
                  "fixed": "6578717ebca91678131d2b1f4ba4258e60536e9f"
                },
                {
                  "fixed": "7fa9706722882f634090bfc9af642bf9ed719e27"
                },
                {
                  "fixed": "80e648042e512d5a767da251d44132553fe04ae0"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3.2.75"
                },
                {
                  "fixed": "3.3"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3.4.113"
                },
                {
                  "fixed": "3.5"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3.10.99"
                },
                {
                  "fixed": "3.11"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3.12.56"
                },
                {
                  "fixed": "3.13"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3.14.63"
                },
                {
                  "fixed": "3.15"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "81a319c5c29913a23947f3d28513974682f3af03"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "34a906cd9f6445d9510841667eff0d980279ebf3"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2a27f61bd411e564eb4651c18d225f6e9e1de534"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "69aad7e01c8e883e9d2f8dc5523bd419bd02d2aa"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "7f4f03c4a1e9a4b9679feafe7625a780864a4e76"
                }
              ]
            }
          ],
          "versions": [
            "v3.2.102",
            "v3.2.101",
            "v3.2.100",
            "v3.2.99",
            "v3.2.98",
            "v3.2.97",
            "v3.2.96",
            "v3.2.95",
            "v3.2.94",
            "v3.2.93",
            "v3.2.92",
            "v3.2.91",
            "v3.2.90",
            "v3.2.89",
            "v3.2.88",
            "v3.2.87",
            "v3.2.86",
            "v3.2.85",
            "v3.2.84",
            "v3.2.83",
            "v3.2.82",
            "v3.2.81",
            "v3.2.80",
            "v3.2.79",
            "v3.2.78",
            "v3.2.77",
            "v3.2.76",
            "v3.2.75",
            "v3.4.113",
            "v3.10.108",
            "v3.10.107",
            "v3.10.106",
            "v3.10.105",
            "v3.10.104",
            "v3.10.103",
            "v3.10.102",
            "v3.10.101",
            "v3.10.100",
            "v3.10.99",
            "v3.12.74",
            "v3.12.73",
            "v3.12.72",
            "v3.12.71",
            "v3.12.70",
            "v3.12.69",
            "v3.12.68",
            "v3.12.67",
            "v3.12.66",
            "v3.12.65",
            "v3.12.64",
            "v3.12.63",
            "v3.12.62",
            "v3.12.61",
            "v3.12.60",
            "v3.12.59",
            "v3.12.58",
            "v3.12.57",
            "v3.12.56",
            "v3.14.79",
            "v3.14.78",
            "v3.14.77",
            "v3.14.76",
            "v3.14.75",
            "v3.14.74",
            "v3.14.73",
            "v3.14.72",
            "v3.14.71",
            "v3.14.70",
            "v3.14.69",
            "v3.14.68",
            "v3.14.67",
            "v3.14.66",
            "v3.14.65",
            "v3.14.64",
            "v3.14.63"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21772.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.4.0"
                },
                {
                  "fixed": "5.4.291"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.235"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.179"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.129"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.79"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.16"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.13.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21772.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.393654832Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-265688.html",
        "https://git.kernel.org/stable/c/213ba5bd81b7e97ac6e6190b8f3bc6ba76123625",
        "https://git.kernel.org/stable/c/27a39d006f85e869be68c1d5d2ce05e5d6445bf5",
        "https://git.kernel.org/stable/c/40a35d14f3c0dc72b689061ec72fc9b193f37d1f",
        "https://git.kernel.org/stable/c/6578717ebca91678131d2b1f4ba4258e60536e9f",
        "https://git.kernel.org/stable/c/7fa9706722882f634090bfc9af642bf9ed719e27",
        "https://git.kernel.org/stable/c/80e648042e512d5a767da251d44132553fe04ae0",
        "https://git.kernel.org/stable/c/92527100be38ede924768f4277450dfe8a40e16b",
        "https://git.kernel.org/stable/c/a3e77da9f843e4ab93917d30c314f0283e28c124",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html",
        "https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21772.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-21772",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21772.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-21772",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504526,
  "published_at": "2025-02-27T02:18:19.528+00:00"
}