Realtek RTL8811AU rtwlanu.sys N6CSet_DOT11_CIPHER_DEFAULT_KEY Heap-based Buffer Overflow Local Privilege Escalation Vulnerability
A function in the Realtek RTL8811AU Wi-Fi driver copies user-supplied data into a fixed-length heap buffer without checking its length, so a local attacker with low-privileged code execution can overflow the buffer. This lets them escalate privileges and run code as SYSTEM.
This vulnerability allows local attackers to escalate privileges on affected installations of Realtek RTL8811AU drivers. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the N6CSet_DOT11_CIPHER_DEFAULT_KEY handler trusts a length field in the request and copies that many bytes into a heap buffer sized for a fixed maximum, without validating the length first.
Impact
A local attacker who can already run low-privileged code could escalate to SYSTEM and execute arbitrary code, though only on systems with the affected driver installed.
What the attacker needed
Ability to run low-privileged code locally; affected Realtek RTL8811AU driver installed
The fix
It was fixed in driver version v1030.44.1204.2024.
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 report has not been written yet. The Original tab links to the source.
A driver is software that lets the operating system talk to hardware, here a USB Wi-Fi adapter. This driver takes a chunk of data from a program and copies it into a small reserved area of memory without first checking that the data fits, so extra data spills over into neighbouring memory. Someone who can already run a normal, low-privilege program on the machine can use that spill to take control and gain the highest level of access.
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.