Local privilege escalation via unreset global pointer
Published Nov 15, 2024 · Updated Nov 18, 2024
Privilege context-switching error in Zephyr RTOS 3.7 and earlier allows local users to corrupt kernel global-variable accesses. On RISC-V builds with CONFIG_RISCV_GP=y, an untrusted user thread can modify gp, and exception entry fails to restore the constant linker-selected pointer before privileged code uses GP-relative accesses. A carefully selected gp value and system call can redirect a kernel update to another global variable; random values can instead hard-fault the system.
Summary
What happened
Privilege context-switching error in Zephyr RTOS 3.7 and earlier allows local users to corrupt kernel global-variable accesses. On RISC-V builds with CONFIG_RISCV_GP=y, an untrusted user thread can modify gp, and exception entry fails to restore the constant linker-selected pointer before privileged code uses GP-relative accesses. A carefully selected gp value and system call can redirect a kernel update to another global variable; random values can instead hard-fault the system.
The record
- CVE
- CVE-2024-11263
- Published
- Nov 15, 2024
- Updated
- Nov 18, 2024
- Vendor
- Zephyr Project
- Product
- Zephyr RTOS
- Classifications
- CWE-270, CAPEC-30, CAPEC-17, CAPEC-35, T1068
- Attack vector
- local
- Privileges
- Unavailable
Timeline
How it unfolded
- Nov 15, 2024CVE publishedPublication date reported by the CVE source.
- Nov 18, 2024Record 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=0 <=3.7
- Affected versionversion=* <=3.7
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
- Zephyr gp corruption regression testproof of concept · demonstrated
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