Skip to main content
Menu
CVEs

Zephyr kernel memory read and overwrite in BBRAM syscalls

Affects Zephyr 3.5.0 to before 4.3.2 and 4.4.0 to before 4.5.0 builds with CONFIG_USERSPACE and a BBRAM driver. Fixed in 4.3.2 and 4.5.0.

CVE-2026-93466EUVD-2026-145915Published , updated

7.8HighCNA
Exploited
No known exploitation
Fix
Fixed in 4.3.2, 4.5.0
Who is exposed
Specific setups only

Summary

Zephyr's BBRAM system calls, `bbram_read` and `bbram_write`, do not properly check caller-supplied offset and size values, so an integer wraparound lets a local user-mode thread with access to a BBRAM device read and overwrite kernel memory just below the BBRAM region. The attacker needs low privileges on the device and reaches the flaw by calling these syscalls.

Written by a model

Original 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.

Who should check

Teams shipping Zephyr with BBRAM drivers and CONFIG_USERSPACE, including releases 3.5.0 to 4.3.x and 4.4.x that expose bbram syscalls

Not fixed by: Release lines that have not taken the backport remain affected.

“>= 3.5.0, < 4.3.2; >= 4.4.0, < 4.5.0”

github.com

What to do

  1. Check whether your setup matches what the bug needs.

    CONFIG_USERSPACE is enabled and the bbram syscalls are present in the image In released versions, CONFIG_EMIT_ALL_SYSCALLS=y or an application-level zephyr_syscall_header() registration is required In development builds after the header was registered by default, any CONFIG_USERSPACE build with a BBRAM driver is affected
  2. Upgrade to a fixed version: 4.3.2, 4.5.0.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-93466 (Integer wraparound in bbram_read and bbram_write syscalls allows user threads to read and overwrite kernel memory below the BBRAM region), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-93466 (entry last updated 2026-12-06):
Affected:
- zephyrproject zephyr: from 3.5.0, fixed in 4.3.2; from 4.4.0, fixed in 4.5.0
Fixed versions: 4.3.2, 4.5.0.
Conditions (all must be true for the bug to be hit):
- CONFIG_USERSPACE is enabled and the bbram syscalls are present in the image (source: https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-727q-63v2-99pw)
- In released versions, CONFIG_EMIT_ALL_SYSCALLS=y or an application-level zephyr_syscall_header() registration is required (source: https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-727q-63v2-99pw)
- In development builds after the header was registered by default, any CONFIG_USERSPACE build with a BBRAM driver is affected (source: https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-727q-63v2-99pw)
Setup: the bug needs a feature or setting that is off by default or uncommon. Check whether each asset has it on.
Attacker needs: local access, low-privilege login, no user action.
CISA KEV: CVE-2026-93466 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-93466 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/zephyrproject-rtos/zephyr/commit/8438d3b9c1a939b91afa7a9a74beca4ca84e282a
- https://github.com/zephyrproject-rtos/zephyr/commit/c3ea409fc4a0840283d305cfc148cdc16857be0a
- https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-727q-63v2-99pw
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-93466
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-93466"}.

Affected versions

cve.now Index

13Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure5/25Specific setups only
  • Reach?/20Unknown. No tracked technology or package matched
  • Severity7.8/10CVSS 7.8
  • No patch0/5No signal

What would change the score

  • Would score about 63 if added to CISA KEV
  • Would score about 58 if CISA's SSVC rates exploitation active
  • Would score about 23 if CISA's SSVC rates it automatable

Timeline

  1. CVE published
  2. First seen by cve.now

Evidence 5

KindSource
Vendor advisory 1Establishes: Affected and fixed versions.
AdvisoryGitHub · zephyrproject-rtos/zephyr · Advisory GHSA-727q-63v2-99pw
CVE record 2Establishes: The identifier and description.
RecordCVE List · CVE-2026-93466
RecordNVD · CVE-2026-93466
Other links 2
PatchGitHub · zephyrproject-rtos/zephyr · Commit 8438d3b9
PatchGitHub · zephyrproject-rtos/zephyr · Commit c3ea409f

Questions about CVE-2026-93466

Is CVE-2026-93466 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

The bbram_read and bbram_write syscalls compute a memory offset that wraps around as an integer, so a user thread can reach supervisor-only memory below the BBRAM region. It can read and overwrite that memory, and can trigger a fatal fault in supervisor mode.

Source: github.com

Which versions are affected by CVE-2026-93466?

zephyr: from 3.5.0 before 4.3.2; from 4.4.0 before 4.5.0.

Source: cve.now feed data

Am I affected, and how do I check?

In released versions the bbram syscalls are present only when CONFIG_USERSPACE is enabled and either CONFIG_EMIT_ALL_SYSCALLS=y or an application-level zephyr_syscall_header() registration is used. In development builds after the header was registered by default, any CONFIG_USERSPACE build with a BBRAM driver is affected. Check the Zephyr version and whether CONFIG_USERSPACE, CONFIG_EMIT_ALL_SYSCALLS, and a BBRAM driver are set in the build configuration.

Source: github.com

How do I fix CVE-2026-93466?

Upgrade to Zephyr 4.3.2 on the 4.3 branch or to 4.5.0 on the 4.4 branch. Versions from 3.5.0 up to the fixed release on each branch are affected.

Source: github.com

No corrections so far. Something wrong on this page? Report an error.