Skip to main content

CVE-2026-18413: bounds in zephyrproject zephyr

0
High
VulnerabilityCVE-2026-18413cvecve-2026-18413
Published: 09/28/2026 (09/28/2026, 19:59:58 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject
Product: zephyr

Description

CVE-2026-18413 is a vulnerability in the NXP MCUX LPADC driver of the Zephyr project where the driver fails to check if the destination buffer is large enough for the ADC sampling sequence. This can lead to buffer overflows when user-mode threads with access to the LPADC device request more samples than the buffer can hold, causing kernel memory corruption. The flaw allows an attacker to write beyond the intended buffer limits, potentially enabling privilege escalation or denial-of-service. The issue affects Zephyr versions from 2.5.0 up to but not including 4.4.2. A fix has been implemented that adds proper buffer size validation before sampling starts.

CVSS v3.1

Score 7.8high

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

Affected software

zephyrproject

zephyr

Affected versions
>=2.5.0 <4.4.2
GitHub Actionsmore threats →cve
zephyr
pkg:github/zephyr
Affected versions
>=2.5.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: 09/28/2026, 20:47:44 UTC

Technical Analysis

The ADC API in Zephyr requires drivers to reject sampling sequences if the destination buffer is too small. However, the NXP MCUX LPADC driver did not enforce this, allowing unbounded writes beyond the buffer. Specifically, mcux_lpadc_start_read() did not check buffer size before assigning the buffer pointer, and subsequent sampling writes could overflow the buffer. On systems with CONFIG_USERSPACE enabled, unprivileged user-mode threads can exploit this by requesting excessive samples, causing kernel memory corruption. The vulnerability allows attacker-controlled writes into kernel memory, enabling privilege escalation or denial-of-service. The fix introduces adc_sequence_validate_buffer() to verify buffer size before sampling begins, returning an error if insufficient.

Potential Impact

This vulnerability enables an unprivileged user-mode thread with access to the LPADC device to cause kernel memory corruption by overflowing the ADC sampling buffer. This can lead to privilege escalation or denial-of-service conditions due to attacker-controlled writes beyond the buffer boundary into kernel memory or other partitions. Systems without CONFIG_USERSPACE are only affected by robustness issues on the caller side. The CVSS 3.1 score is 7.8 (high), reflecting local attack vector, low complexity, low privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

A fix is available that adds buffer size validation in the NXP MCUX LPADC driver before sampling starts. The new helper function adc_sequence_validate_buffer() checks that the buffer is large enough and returns an error if not. Users should upgrade to Zephyr version 4.4.2 or later where this fix is included. Until patched, restrict access to the LPADC device for unprivileged user-mode threads to prevent exploitation.

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-07-30T17:54:09.140Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6abacf14f7a7c541062b9a54

Added to database: 09/28/2026, 20:33:24 UTC

Last enriched: 09/28/2026, 20:47:44 UTC

Last updated: 09/28/2026, 20:47:44 UTC

Views: 4

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