Skip to content

tomitokics/IOSurface_poc18

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

CVE-2024-44285: IOSurface UaF

This bug was introduced in iOS 18 and it is relatively shallow as it occurs in the second function after the base s_method call.
The vulnerable function lies in s_set_corevideo_bridged_keys, which is method #54 on iOS and #57 on macOS.

A pre-patch version of the vulnerable function can be seen below:

Pre-Patch Function

Diffing the two versions shows the patch very clearly:

Diffing the two functions

A lock was missing from the pre-patch version. Calling this method from multiple threads it is possible to over-release an OSArray. (Funnily enough, it seems that that while in the KEXT the locking mechanism was missed, in the userland library this method is correctly called via locks)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages