Realtek rtl819x Local Privilege Escalation Vulnerability
A local privilege escalation vulnerability exists in Realtek rtl819x Jungle SDK due to missing capability checks on ioctl commands, allowing unprivileged users to gain root privileges on affected Linux systems.
A local privilege escalation vulnerability (CVE-2026-36355) has been identified in the Realtek rtl819x Jungle SDK, affecting devices using the out-of-tree WiFi driver SDK. The vulnerability stems from missing capability checks on ioctl commands 0x89F5 (write_mem) and 0x89F6 (read_mem), allowing any unprivileged user to read and write kernel memory. An exploit (EDB-52580) has been published, demonstrating successful privilege escalation on Linux 3.18.48, ARMv7 Cortex-A7, Qualcomm MDM9607, and rtl8192es.ko. This vulnerability affects a wide range of Realtek chips, including RTL8192C/D/E, RTL8188E, RTL8812, RTL8881A, and RTL8197F. The availability of a working exploit significantly increases the risk to vulnerable systems.
Attack Chain
- An unprivileged user executes the kpwn exploit binary.
- The exploit identifies a vulnerable Realtek rtl819x wireless interface.
- The exploit scans kernel memory to locate the
init_taskstructure. - The exploit auto-detects the offsets for
tasks,pid,cred, andcommwithin thetask_struct. - The exploit walks the task list to find the current process’s
task_structusing its PID. - The exploit reads the current user’s credentials from the kernel memory.
- The exploit overwrites the user’s credentials in kernel memory, setting UID and GID to 0.
- The user’s privileges are escalated to root, granting full system access.
Impact
Successful exploitation of this vulnerability allows an unprivileged local user to gain full root privileges on the affected system. This can lead to complete system compromise, including data theft, modification, and destruction, as well as the installation of malware and backdoors. The wide range of affected Realtek chips means numerous embedded devices and IoT devices are potentially vulnerable.
Recommendation
- Apply available patches or mitigations from Realtek to address CVE-2026-36355 on affected rtl819x based devices.
- Monitor for the execution of the
kpwnexploit binary on Linux systems using process creation logs, and deploy the Sigma rule “Detect Realtek KPwn Exploit Execution” to your SIEM. - Implement strict access controls and limit access to wireless interfaces to authorized users only.
- Enable logging for ioctl calls on Realtek wireless interfaces to detect attempts to use IOCTL_WRITE (0x89F5) and IOCTL_READ (0x89F6) with unexpected parameters.
Detection coverage 2
Detect Realtek KPwn Exploit Execution
highDetects execution of the Realtek KPwn local privilege escalation exploit based on process name.
Detect Realtek KPwn Exploit - IOCTL Calls
mediumDetects potential Realtek KPwn exploit attempts based on ioctl calls related to memory read/write primitives.
Detection queries are available on the platform. Get full rules →