CVE-2026-93466
7.8HighPublished Dec 6, 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Local
- Complexity
- Low
- Privileges
- Low
- User action
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-125, CWE-190, CWE-787
What an attacker gets
Local attackers can read or overwrite kernel memory, leading to privilege escalation or system crashes. This requires a user-mode thread to have access to a BBRAM device object.
Root cause
The BBRAM syscall handlers fail to check for integer overflows when validating offset and size, allowing out-of-bounds memory access.
Affected versions
Versions not listed — check the vendor advisory.
CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fix & remediation
Apply commits 8438d3b9c1a9 and c3ea409fc4a0 to your Zephyr source tree. If you cannot patch immediately, disable CONFIG_USERSPACE or remove BBRAM driver support from your build configuration.
AI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
The BBRAM system call verifiers z_vrfy_bbram_read() and z_vrfy_bbram_write() in drivers/bbram/bbram_handlers.c validated the device object and the user buffer but never validated the caller-supplied offset and size. Range checking was left to the individual BBRAM drivers (bbram_emul, bbram_it8xxx2, bbram_npcx, bbram_rts5912, bbram_stm32, bbram_xec), which all use the check offset + size > capacity. That sum wraps for large offset values: with offset = SIZE_MAX - k + 1 and size = k + j (j no larger than the capacity), the sum wraps to j, the check passes, and the driver accesses base + offset, which wraps to k bytes below the BBRAM region. A user-mode thread that has been granted access to a BBRAM device object chooses both values, so k is bounded only by the size of the user buffer it supplies. Through bbram_read() the kernel copies that much memory from below the BBRAM window into the user buffer; through bbram_write() it copies attacker-controlled bytes over it. On the emulated driver that memory is kernel RAM: the reporter's proof of concept on qemu_x86 reads and overwrites a byte of an adjacent kernel MMIO pointer, and the kernel faults on its next use. On hardware it is the peripheral register space below the BBRAM window (on bbram_stm32, reached through a backup-register index that wraps below the register base). A user thread can therefore disclose and corrupt supervisor-only memory, and an access to an unmapped or side-effecting address in supervisor mode can raise a fatal fault. The bbram syscalls are only present in the image when CONFIG_USERSPACE is enabled and bbram.h is emitted as a syscall header: in released versions this requires CONFIG_EMIT_ALL_SYSCALLS=y or an application-level zephyr_syscall_header() registration (without it a userspace build with BBRAM does not compile). In development builds after the header was registered by default, it applies to any CONFIG_USERSPACE build with a BBRAM driver. The fix adds an overflow-safe range check against the device capacity (offset > capacity - size) in both syscall handlers before the driver is invoked: 8438d3b9c1a9 for the read path and c3ea409fc4a0 for the write path.
References
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-860927.0HighLocal attackers can achieve supervisor-mode use-after-free, leading to privilege escalation or system crashes. This requires the attacker to hold the last permission on a dynamically allocated memory slab used by the I2S driver.
- CVE-2026-1304778.8HighLocal unprivileged users can gain full kernel-mode code execution and bypass memory isolation. This requires the ability to create threads and trigger syscalls in an environment with userspace support enabled.
- CVE-2026-1043767.7HighLocal attackers can corrupt kernel memory and escape userspace isolation to gain supervisor-mode privileges. This requires the Zephyr kernel to be built with CONFIG_OBJ_CORE, CONFIG_USERSPACE, and CONFIG_DYNAMIC_OBJECTS enabled.
- CVE-2026-1043788.8HighLocal attackers can escalate privileges or cause a kernel panic by triggering a buffer overflow in the I3C controller driver. This requires the attacker to have access to the I3C controller device node.
- CVE-2026-1054157.0HighLocal unprivileged users can trigger a kernel memory write and potential privilege escalation. This requires the device to have CONFIG_USERSPACE enabled and the user to have access to the MCPWM device.
- CVE-2026-1029577.7HighLocal unprivileged users can trigger kernel memory corruption and potentially escalate privileges. This occurs when a user-mode thread calls pwm_capture_cycles with a K_NO_WAIT timeout on a system with CONFIG_USERSPACE and CONFIG_PWM_CAPTURE enabled.