Skip to content
FlawDB
Sign in

CVE-2026-93466

HIGH 7.8

Integer wraparound in bbram_read and bbram_write syscalls allows user threads to read and overwrite kernel memory below the BBRAM region

AI summary AI generated

A user-mode thread with access to a BBRAM device can use an integer wraparound in the bbram read and write syscalls to read and overwrite kernel memory below the BBRAM region in Zephyr.

Mitigation

  • Upgrade zephyr to 4.5.0 or later.

Who should check

  • Anyone running zephyrproject zephyr >= 3.5.0, < 4.3.2; >= 4.4.0, < 4.5.0

Vulnerability facts

Affected
zephyrproject zephyr >= 3.5.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in
zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
CWE
CWE-125, CWE-190, CWE-787
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
zephyrproject zephyr>= 3.5.0, < 4.3.2; >= 4.4.0, < 4.5.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-93466. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-93466.md
Affected: zephyrproject zephyr >= 3.5.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-93466 being exploited?

There is no confirmed exploitation: CVE-2026-93466 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is CVE-2026-93466?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2026-93466?

zephyrproject zephyr >= 3.5.0, < 4.3.2; >= 4.4.0, < 4.5.0.

Is there a fix for CVE-2026-93466?

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

How do I check if I'm affected by CVE-2026-93466?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 6.5CVE-2026-107470

Out-of-bounds write in WINC1500 Wi-Fi offload driver via firmware-reported socket IDs on accept

Zephyr RTOS
HIGH 7.2CVE-2026-107469

LwM2M client write handlers skip access checks for payload-supplied paths, allowing servers to write the Security object

Zephyr RTOS
MEDIUM 4.8CVE-2026-107468

Predictable TCP initial sequence numbers in Zephyr TCP stack due to undersized RFC 6528 hash buffer

Zephyr RTOS
MEDIUM 6.3CVE-2026-107467

Out-of-bounds read in Bluetooth Mesh Firmware Distribution Server Receivers Get handler

Zephyr RTOS
HIGH 7.0CVE-2026-86092

Use-after-free in the I2S configure system call when a dynamically allocated memory slab is retained by the driver

Zephyr RTOS
EPSS 13%
Sponsors