It is probably the weirdest way I've found a stack overflow #vulnerability until now (patched in 15.6). Here is a blog post for those interested in #IOKit #macOS #kernel or #Apple Silicon #Exploit Development masochist looking for a target. Enjoy!
https://afine.com/a-mouse-move-that-crashed-the-system-stack-buffer-overflow-in-display-driver-on-macos/
Deep dive into #Apple #macOS #drivers: Explore #IOKit and #BSD internals. Understand driver types and #kernel interfaces. Includes practical #RE techniques with #code examples. Enjoy and Merry Christmas!🎄
https://karol-mazurek.medium.com/drivers-on-macos-26edbde370ab?sk=v2%2F8a5bbc18-aae7-4a68-b0dd-bb5ce70b5752
Drivers on macOS | Medium

Guide to IOKit and BSD drivers on macOS. Learn about driver types, implementation, registration process, and how to interact with them using practical code examples.

Medium

@juandesant @dataandpolitics @glennf

1. The kernel (#xnu) was amalgamation of code that was mostly independent of NeXT. #NeXTSTEP was based on Mach 2.5 & 4.3BSD with an ObjC based DriverKit. xnu was built from #osfmk which was Mach 3.0 and ported to Mac HW as part of the #MkLinux project, a fresh rebase of 4.4BSD-Lites2, and the driver system (#IOKit) was a ground up redesign, despite the existence of DriverKit and NuIO.

2/7