{"id":"CVE-2025-21772","summary":"partitions: mac: fix handling of bogus partition table","details":"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().","modified":"2026-04-02T12:45:12.621781Z","published":"2025-02-27T02:18:19.528Z","related":["SUSE-SU-2025:01600-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:02385-1","SUSE-SU-2025:02387-1","SUSE-SU-2025:02388-1","SUSE-SU-2025:02389-1","SUSE-SU-2025:02390-1","SUSE-SU-2025:02391-1","SUSE-SU-2025:02392-1","SUSE-SU-2025:02393-1","SUSE-SU-2025:02394-1","SUSE-SU-2025:02396-1","SUSE-SU-2025:02398-1","SUSE-SU-2025:02399-1","SUSE-SU-2025:02400-1","SUSE-SU-2025:02401-1","SUSE-SU-2025:02402-1","SUSE-SU-2025:02403-1","SUSE-SU-2025:02405-1","SUSE-SU-2025:02410-1","SUSE-SU-2025:02411-1","SUSE-SU-2025:02412-1","SUSE-SU-2025:02413-1","SUSE-SU-2025:02415-1","SUSE-SU-2025:02416-1","SUSE-SU-2025:02418-1","SUSE-SU-2025:02419-1","SUSE-SU-2025:02420-1","SUSE-SU-2025:02421-1","SUSE-SU-2025:02422-1","SUSE-SU-2025:02428-1","SUSE-SU-2025:02433-1","SUSE-SU-2025:02434-1","SUSE-SU-2025:02436-1","SUSE-SU-2025:02437-1","SUSE-SU-2025:02438-1","SUSE-SU-2025:02440-1","SUSE-SU-2025:02442-1","SUSE-SU-2025:02444-1","SUSE-SU-2025:02445-1","SUSE-SU-2025:02446-1","SUSE-SU-2025:02449-1","SUSE-SU-2025:02451-1","SUSE-SU-2025:02454-1","SUSE-SU-2025:02455-1","SUSE-SU-2025:02459-1","SUSE-SU-2025:02468-1","SUSE-SU-2025:02507-1","SUSE-SU-2025:0983-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1177-1","SUSE-SU-2025:1178-1","SUSE-SU-2025:1180-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1194-1","SUSE-SU-2025:1195-1","SUSE-SU-2025:1241-1","SUSE-SU-2025:1263-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1","SUSE-SU-2025:20517-1","SUSE-SU-2025:20518-1","SUSE-SU-2025:20519-1","SUSE-SU-2025:20520-1","SUSE-SU-2025:20525-1","SUSE-SU-2025:20526-1","SUSE-SU-2025:20527-1","SUSE-SU-2025:20528-1","SUSE-SU-2025:20540-1","SUSE-SU-2025:20541-1","SUSE-SU-2025:20542-1","SUSE-SU-2025:20544-1","SUSE-SU-2025:20545-1","SUSE-SU-2025:20546-1","SUSE-SU-2025:4123-1","SUSE-SU-2026:0385-1","USN-7521-2"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21772.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/213ba5bd81b7e97ac6e6190b8f3bc6ba76123625"},{"type":"WEB","url":"https://git.kernel.org/stable/c/27a39d006f85e869be68c1d5d2ce05e5d6445bf5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/40a35d14f3c0dc72b689061ec72fc9b193f37d1f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6578717ebca91678131d2b1f4ba4258e60536e9f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7fa9706722882f634090bfc9af642bf9ed719e27"},{"type":"WEB","url":"https://git.kernel.org/stable/c/80e648042e512d5a767da251d44132553fe04ae0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/92527100be38ede924768f4277450dfe8a40e16b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a3e77da9f843e4ab93917d30c314f0283e28c124"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21772.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21772"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"02e2a5bfebe99edcf9d694575a75032d53fe1b73"},{"fixed":"a3e77da9f843e4ab93917d30c314f0283e28c124"},{"fixed":"213ba5bd81b7e97ac6e6190b8f3bc6ba76123625"},{"fixed":"40a35d14f3c0dc72b689061ec72fc9b193f37d1f"},{"fixed":"27a39d006f85e869be68c1d5d2ce05e5d6445bf5"},{"fixed":"92527100be38ede924768f4277450dfe8a40e16b"},{"fixed":"6578717ebca91678131d2b1f4ba4258e60536e9f"},{"fixed":"7fa9706722882f634090bfc9af642bf9ed719e27"},{"fixed":"80e648042e512d5a767da251d44132553fe04ae0"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"81a319c5c29913a23947f3d28513974682f3af03"},{"last_affected":"34a906cd9f6445d9510841667eff0d980279ebf3"},{"last_affected":"2a27f61bd411e564eb4651c18d225f6e9e1de534"},{"last_affected":"69aad7e01c8e883e9d2f8dc5523bd419bd02d2aa"},{"last_affected":"7f4f03c4a1e9a4b9679feafe7625a780864a4e76"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21772.json"}}],"schema_version":"1.7.5"}