boxscore/security
CVE · referencelatest edition

Reference page — cumulative record through Thursday, November 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.

CVE-2026-18413

zephyrproject zephyr — Out-of-bounds write in the NXP MCUX LPADC ADC driver due to missing adc_sequence buffer size validation
  AV  AC  PR  UI  S  C  I  A   CVSS    EPSS   %ile   KEV
   L   L   L   N  U  H  H  H    7.8   .0013    2.3     —
AFFECTED
  Product  Versions  Fixed
  zephyr   2.5.0 –   —
TIMELINE
  Jul 30  Reserved by zephyr
  Sep 28  Published (CNA: zephyr)
  Oct 27  EXPLOIT PUBLISHED — CVE-2026-18413 (zephyrproject zephyr). Public exploit reference added.
  Nov 4   EXPLOIT PUBLISHED — CVE-2026-18413 (zephyrproject zephyr). Public exploit reference added.
CWE-787 · CNA: zephyr · CVSS v3.1 · 3 references · NVD status: Analyzed

Description

The ADC API requires each driver to reject a sampling sequence whose destination buffer is too small: the buffer_size field of struct adc_sequence in include/zephyr/drivers/adc.h documents that "the driver must ensure that samples are not written beyond the limit and it must return an error if the buffer turns out to be not large enough". The NXP MCUX LPADC driver did not honour that contract. mcux_lpadc_start_read() in drivers/adc/adc_mcux_lpadc.c performed no buffer-size check at all before assigning data->buffer = sequence->buffer. Each completed conversion then stores one 16-bit sample per enabled channel per sampling round through an unbounded *data->buffer++: in mcux_lpadc_isr() for interrupt-driven builds, and in mcux_lpadc_dma_callback() for DMA-driven builds on releases that have the DMA path. A sequence selecting two channels with a two-byte buffer, for example, has its second sample written past the end of the buffer. On a build with CONFIG_USERSPACE, adc_read() and adc_read_async() are system calls. The handler in drivers/adc/adc_handlers.c copies the sequence in from user memory, verifies only that [buffer, buffer + buffer_size) is writable by the calling thread, and rejects a user-supplied options->callback; it deliberately leaves the size arithmetic to the driver. A user-mode thread that has been granted access to an LPADC device object therefore fully controls channels, buffer, buffer_size and options->extra_samplings, and can request far more samples than its buffer can hold: up to channels * 65536 samples into a two-byte buffer, since the sample pointer is only rewound on a repeat sampling, never on the extra samplings of a sequence. The resulting stores are performed by the driver in kernel mode (in the ADC interrupt handler or the DMA completion callback), where the MPU does not restrict the thread's memory domain, so the write walks linearly out of the user partition and into adjacent memory such as other partitions, kernel data or thread stacks. The impact is kernel-memory corruption of attacker-chosen length at an attacker-chosen offset, a plausible privilege-escalation and denial-of-service primitive from an unprivileged user-mode thread. Builds without CONFIG_USERSPACE are affected only as a caller-side robustness defect, since the application itself supplies the buffer. The fix calls the new shared helper adc_sequence_validate_buffer() in drivers/adc/adc_common.c from mcux_lpadc_start_read(). The helper computes active_channels sizeof(uint16_t) (1 + extra_samplings) and returns -ENOMEM before any sampling is started.

Lifecycle

Complete event history — 4 events, chronological
DateEventDetail
July 30, 2026ReservedReserved by zephyr
September 28, 2026PublishedPublished (CNA: zephyr)
October 27, 2026EXPLOIT PUBLISHEDEXPLOIT PUBLISHED — CVE-2026-18413 (zephyrproject zephyr). Public exploit reference added.
November 4, 2026EXPLOIT PUBLISHEDEXPLOIT PUBLISHED — CVE-2026-18413 (zephyrproject zephyr). Public exploit reference added.

Affected

Affected products and packages — 1 row
VendorProduct / PackageEcosystemVersion introducedFixed
zephyrprojectzephyr—2.5.0—

Weaknesses

CWE-787

References (3)

Related

Authoritative record: CVE-2026-18413 at cve.org

Vendors: zephyrproject

Weaknesses: CWE-787

About this page

This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2026-18413 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Thursday, November 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.