Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-9771: memory-safety in zephyrproject zephyr

0
High
VulnerabilityCVE-2026-9771cvecve-2026-9771
Published: 08/17/2026 (08/17/2026, 16:18:52 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject
Product: zephyr

Description

CVE-2026-9771 is a memory-safety vulnerability in the Zephyr RTOS affecting versions 4.0.0 through before 4.4.2. It involves improper validation of device pointers in the flash_copy() system call handler, allowing a user-mode thread to supply forged device structures with malicious function pointers. This can lead to local privilege escalation by executing arbitrary code in kernel mode, as well as potential kernel crashes or information disclosure. The vulnerability arises because the kernel did not verify device pointers before dereferencing them, unlike other flash syscalls. A fix was introduced to add proper kernel object validation for these pointers, closing the attack vector.

CVSS v3.1

Score 8.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →cve
zephyr
pkg:github/zephyr
Affected versions
>=4.0.0 <4.4.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/17/2026, 16:56:09 UTC

Technical Analysis

The flash_copy() syscall in Zephyr prior to version 4.4.2 with CONFIG_USERSPACE enabled did not validate the src_dev and dst_dev device pointers passed from user mode. This allowed a user-mode thread to supply forged struct device pointers whose API function tables contained attacker-controlled function pointers. The kernel dereferenced these pointers and called through them without validation, enabling arbitrary code execution in supervisor mode (local privilege escalation). The vulnerability also allows kernel denial-of-service or information disclosure if invalid addresses are used. The fix adds K_SYSCALL_DRIVER_FLASH() validation macros to verify that device pointers are registered flash-driver kernel objects accessible by the caller before dereference, fully mitigating the issue.

Potential Impact

An unprivileged user-mode thread can escalate privileges to kernel mode by exploiting this vulnerability, potentially executing arbitrary code with kernel privileges. Lesser impacts include kernel crashes (denial-of-service) and information disclosure due to out-of-bounds reads. The vulnerability compromises the userspace sandbox isolation, posing a significant security risk in affected Zephyr versions.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves adding K_SYSCALL_DRIVER_FLASH() validation macros to the syscall handler to verify device pointers before use. Users should monitor the Zephyr project advisories for official patches or updates addressing this issue. Until patched, restricting unprivileged users' ability to invoke flash_copy() or disabling CONFIG_USERSPACE may reduce risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
zephyr
Date Reserved
2026-05-27T22:08:41.676Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a8339cebf8831d53935e30b

Added to database: 08/17/2026, 16:41:50 UTC

Last enriched: 08/17/2026, 16:56:09 UTC

Last updated: 08/17/2026, 17:04:31 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses