Apple vulnerabilities
7 real-world CVEs in Apple. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2023-32434high 7.82023
Operation Triangulation: XNU memory-entry integer overflow
A wrapping sum in mach_make_memory_entry_internal accepts an enormous child memory entry as if it fit inside its parent, enabling out-of-range mappings from a privileged memory region.
- CVE-2021-30860high 7.82021
FORCEDENTRY: JBIG2 integer overflow in Apple CoreGraphics
A crafted JBIG2 stream makes a 32-bit symbol count wrap to a small value, so an undersized heap buffer is overrun with the full run of attacker-referenced bitmap pointers.
- CVE-2020-27950medium 5.52020
Mach trailer invalid-combination memory disclosure
An invalid combination of requested Mach message trailer elements produced a size mismatch that left four allocated bytes uninitialized before the kernel copied the trailer to userspace.
- CVE-2020-27932high 7.82020
XNU special-reply-port turnstile type confusion
A special reply port could retain turnstile link state while its kdata union was converted to a host-notification object, causing receive-side code to interpret a host_notify_entry pointer as an ipc_port pointer.
- CVE-2020-27930high 7.82020
Type 1 callothersubr negative operand-count overflow
The Type 1 CharString interpreter subtracted an attacker-supplied operand count from its operand-stack pointer and checked only the lower bound, so a negative count moved the pointer beyond the 64-entry stack.
- CVE-2016-4657high 8.82016
Trident: JavaScriptCore descriptor use-after-free
A ninth non-cell argument moves a descriptor buffer to the heap without registering it as a garbage-collector root, so a conversion callback can collect objects that later descriptor processing still uses.
- CVE-2014-1266high 7.42014
Apple goto fail: skipped TLS signature check
A duplicated goto jumps past the signature verification in a TLS key-exchange handler, so the function returns success without ever checking the signature, letting a man-in-the-middle spoof any server.