{"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-11-17T07:02:38.538267837Z","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://cert-portal.siemens.com/productcert/html/ssa-265688.html"},{"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":"81a319c5c29913a23947f3d28513974682f3af03"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"34a906cd9f6445d9510841667eff0d980279ebf3"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2a27f61bd411e564eb4651c18d225f6e9e1de534"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"69aad7e01c8e883e9d2f8dc5523bd419bd02d2aa"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.75"},{"fixed":"3.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.4.113"},{"fixed":"3.5"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.10.99"},{"fixed":"3.11"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.12.56"},{"fixed":"3.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.14.63"},{"fixed":"3.15"}]},{"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"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21772.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}