Kernel code execution via unchecked device callback
Published Jun 26, 2025 · Updated Jun 26, 2025
Memory corruption in RT-Thread 5.1.0 and earlier allows local users to execute code in kernel context through the generic device API. The sys_device_control path accepts a supplied device object and calls its ops->control function pointer after checking only that the pointer is non-null, without validating that it names a legitimate callback. A compromised low-privileged user thread can redirect control flow, elevate privileges, and compromise confidentiality, integrity, or availability.
Summary
What happened
Memory corruption in RT-Thread 5.1.0 and earlier allows local users to execute code in kernel context through the generic device API. The sys_device_control path accepts a supplied device object and calls its ops->control function pointer after checking only that the pointer is non-null, without validating that it names a legitimate callback. A compromised low-privileged user thread can redirect control flow, elevate privileges, and compromise confidentiality, integrity, or availability.
The record
- CVE
- CVE-2025-6693
- Published
- Jun 26, 2025
- Updated
- Jun 26, 2025
- Vendor
- RT-Thread
- Product
- RT-Thread
- Classifications
- CWE-119, T0890
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 26, 2025CVE publishedPublication date reported by the CVE source.
- Jun 26, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.0
- Affected versionversion=5.1.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Control Flow Hijacking Issue in sys_device_control Operation in RT-Threadproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo