Windows Sockets: From Registered I/O to SYSTEM Privileges
A use-after-free vulnerability existed in the afd.sys Windows driver's Registered I/O extension for Windows sockets. An attacker could exploit this to gain SYSTEM privileges.
Published on blog.exodusintel.com
DECEMBER 2, 2024 Vulnerability Analysis, Exploit Techniques, General Research
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a use-after-free in the Registered I/O extension of the afd.sys driver, where memory is freed but still referenced.
Impact
An attacker could exploit this to gain SYSTEM privileges, the highest level of access on Windows.
What the attacker needed
Local access to the system
The fix
The vulnerability was patched in the August 2024 Patch Tuesday.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A use-after-free bug happens when a program frees memory but keeps using it, letting an attacker control what happens next. Here, a Windows driver for network sockets had this flaw, and an attacker could use it to get the highest level of control on the computer, called SYSTEM.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.