{"id":"CVE-2025-21772","published":"2025-02-27T02:18:19Z","modified":"2026-10-15T21:51:52Z","title":"partitions: mac: fix handling of bogus partition table","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\npartitions: mac: fix handling of bogus partition table\n\nFix several issues in partition probing:\n\n - The bailout for a bad partoffset must use put_dev_sector(), since the\n   preceding read_part_sector() succeeded.\n - If the partition table claims a silly sector size like 0xfff bytes\n   (which results in partition table entries straddling sector boundaries),\n   bail out instead of accessing out-of-bounds memory.\n - We must not assume that the partition table contains proper NUL\n   termination - use strnlen() and strncmp() instead of strlen() and\n   strcmp().","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00243,"percentile":0.15844,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a3e77da9f843e4ab93917d30c314f0283e28c124","tags":[]},{"url":"https://git.kernel.org/stable/c/213ba5bd81b7e97ac6e6190b8f3bc6ba76123625","tags":[]},{"url":"https://git.kernel.org/stable/c/40a35d14f3c0dc72b689061ec72fc9b193f37d1f","tags":[]},{"url":"https://git.kernel.org/stable/c/27a39d006f85e869be68c1d5d2ce05e5d6445bf5","tags":[]},{"url":"https://git.kernel.org/stable/c/92527100be38ede924768f4277450dfe8a40e16b","tags":[]},{"url":"https://git.kernel.org/stable/c/6578717ebca91678131d2b1f4ba4258e60536e9f","tags":[]},{"url":"https://git.kernel.org/stable/c/7fa9706722882f634090bfc9af642bf9ed719e27","tags":[]},{"url":"https://git.kernel.org/stable/c/80e648042e512d5a767da251d44132553fe04ae0","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":3.17},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < a3e77da9f843e4ab93917d30c314f0283e28c124",">= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 213ba5bd81b7e97ac6e6190b8f3bc6ba76123625",">= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 40a35d14f3c0dc72b689061ec72fc9b193f37d1f",">= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 27a39d006f85e869be68c1d5d2ce05e5d6445bf5",">= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 92527100be38ede924768f4277450dfe8a40e16b",">= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 6578717ebca91678131d2b1f4ba4258e60536e9f",">= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 7fa9706722882f634090bfc9af642bf9ed719e27",">= 02e2a5bfebe99edcf9d694575a75032d53fe1b73, < 80e648042e512d5a767da251d44132553fe04ae0","81a319c5c29913a23947f3d28513974682f3af03","34a906cd9f6445d9510841667eff0d980279ebf3"]},{"vendor":"Linux","product":"Linux","versions":["4.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-15T21:42:52.269737Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-5153","exploited":false,"provenance":"source"}}