CVE-2026-93466
Awaiting Analysis Awaiting Analysis - Queue

BBRAM Memory Corruption in Zephyr RTOS

Vulnerability report for CVE-2026-93466, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-06

Last updated on: 2026-12-06

Assigner: Zephyr Project

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-06
Last Modified
2026-12-06
Generated
2026-12-06
AI Q&A
2026-12-06
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
zephyrproject zephyr From 3.5.0 (inc) to 4.3.2 (exc)
zephyrproject zephyr From 4.4.0 (inc) to 4.5.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-787 The product writes data past the end, or before the beginning, of the intended buffer.
CWE-190 The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability allows a user-mode thread with BBRAM device access to read or overwrite adjacent kernel memory by exploiting integer wraparound in offset and size calculations, potentially leading to kernel data disclosure, memory corruption, or system crashes.

Detection Guidance

Verify if your Zephyr RTOS build includes CONFIG_USERSPACE and BBRAM syscall support by checking the kernel configuration and emitted syscall headers.

Bash
grep -E "CONFIG_USERSPACE=y|CONFIG_BBRAM=y|CONFIG_EMIT_ALL_SYSCALLS=y" .config
Impact Analysis

Affected systems risk kernel memory corruption or disclosure if a user thread with BBRAM access exploits the integer wraparound, potentially causing supervisor faults or exposing sensitive kernel state.

Compliance Impact

If your deployment handles regulated data and relies on Zephyr RTOS with the vulnerable configuration, this flaw could introduce risks to data integrity or confidentiality, depending on system exposure and mitigations in place.

Mitigation Strategies

Upgrade to Zephyr RTOS versions 4.3.2 or 4.5.0, or apply the patch commits 8438d3b9c1a9 and c3ea409fc4a0 to the BBRAM syscall handlers.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-93466. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...