{"id":"CVE-2025-21772","aliases":["CVE-2025-21772"],"related":[],"kind":"vulnerability","state":"published","title":"partitions: mac: fix handling of bogus partition table","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","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().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: particiones: mac: se corrige el manejo de la tabla de particiones falsa Corrige varios problemas en el sondeo de particiones: - El rescate para un partoffset incorrecto debe usar put_dev_sector(), ya que el read_part_sector() anterior tuvo éxito. - Si la tabla de particiones reclama un tamaño de sector tonto como 0xfff bytes (lo que da como resultado que las entradas de la tabla de particiones se extiendan a ambos lados de los límites del sector), salga en lugar de acceder a la memoria fuera de los límites. - No debemos asumir que la tabla de particiones contiene la terminación NUL adecuada: use strnlen() y strncmp() en lugar de strlen() y strcmp().","source":"nvd"}],"published":"2025-02-27T02:18:19.528Z","modified":"2026-10-15T22:18:08.493Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"02e2a5bfebe99edcf9d694575a75032d53fe1b73","fixed":"a3e77da9f843e4ab93917d30c314f0283e28c124","status":"affected"},{"type":"git","introduced":"02e2a5bfebe99edcf9d694575a75032d53fe1b73","fixed":"213ba5bd81b7e97ac6e6190b8f3bc6ba76123625","status":"affected"},{"type":"git","introduced":"02e2a5bfebe99edcf9d694575a75032d53fe1b73","fixed":"40a35d14f3c0dc72b689061ec72fc9b193f37d1f","status":"affected"},{"type":"git","introduced":"02e2a5bfebe99edcf9d694575a75032d53fe1b73","fixed":"27a39d006f85e869be68c1d5d2ce05e5d6445bf5","status":"affected"},{"type":"git","introduced":"02e2a5bfebe99edcf9d694575a75032d53fe1b73","fixed":"92527100be38ede924768f4277450dfe8a40e16b","status":"affected"},{"type":"git","introduced":"02e2a5bfebe99edcf9d694575a75032d53fe1b73","fixed":"6578717ebca91678131d2b1f4ba4258e60536e9f","status":"affected"},{"type":"git","introduced":"02e2a5bfebe99edcf9d694575a75032d53fe1b73","fixed":"7fa9706722882f634090bfc9af642bf9ed719e27","status":"affected"},{"type":"git","introduced":"02e2a5bfebe99edcf9d694575a75032d53fe1b73","fixed":"80e648042e512d5a767da251d44132553fe04ae0","status":"affected"},{"type":"git","version":"81a319c5c29913a23947f3d28513974682f3af03","status":"affected"},{"type":"git","version":"34a906cd9f6445d9510841667eff0d980279ebf3","status":"affected"},{"type":"git","version":"2a27f61bd411e564eb4651c18d225f6e9e1de534","status":"affected"},{"type":"git","version":"69aad7e01c8e883e9d2f8dc5523bd419bd02d2aa","status":"affected"},{"type":"git","version":"7f4f03c4a1e9a4b9679feafe7625a780864a4e76","status":"affected"},{"type":"semver","introduced":"3.2.75","fixed":"3.3","status":"affected"},{"type":"semver","introduced":"3.4.113","fixed":"3.5","status":"affected"},{"type":"semver","introduced":"3.10.99","fixed":"3.11","status":"affected"},{"type":"semver","introduced":"3.12.56","fixed":"3.13","status":"affected"},{"type":"semver","introduced":"3.14.63","fixed":"3.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.4","status":"unaffected"},{"type":"semver","introduced":"5.4.291","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.235","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.179","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.129","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.79","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.16","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.4","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.4.291"},{"status":"affected","introduced":"5.5","fixed":"5.10.235"},{"status":"affected","introduced":"5.11","fixed":"5.15.179"},{"status":"affected","introduced":"5.16","fixed":"6.1.129"},{"status":"affected","introduced":"6.2","fixed":"6.6.79"},{"status":"affected","introduced":"6.7","fixed":"6.12.16"},{"status":"affected","introduced":"6.13","fixed":"6.13.4"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a3e77da9f843e4ab93917d30c314f0283e28c124","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/213ba5bd81b7e97ac6e6190b8f3bc6ba76123625","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/40a35d14f3c0dc72b689061ec72fc9b193f37d1f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/27a39d006f85e869be68c1d5d2ce05e5d6445bf5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92527100be38ede924768f4277450dfe8a40e16b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6578717ebca91678131d2b1f4ba4258e60536e9f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7fa9706722882f634090bfc9af642bf9ed719e27","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80e648042e512d5a767da251d44132553fe04ae0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:42:52.269Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21772","url":"https://www.cve.org/CVERecord?id=CVE-2025-21772","licence":"CVE Terms of Use","modified":"2026-10-15T21:51:52.838Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21772","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21772","licence":"Public domain","modified":"2026-10-15T22:18:08.493Z"}],"updatedAt":"2026-11-25T22:58:54.552Z","epss":{"score":0.00243,"percentile":0.16639,"date":"2026-12-01T12:00:22.000Z"}}