# CVE-2026-18414: Out-of-bounds write in the ADI MAX32 ADC driver due to incorrect adc\_sequence buffer size validation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 5, 2026-11-28)
- **CWE:** CWE-787
- **Published:** 2026-09-28T20:00:00.133Z
- **Modified:** 2026-11-04T05:18:46.220Z

## Who should check

- Anyone running zephyrproject zephyr \>= 4.0.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2

## 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 ADI MAX32 driver did not honour that contract. start\_read() in drivers/adc/adc\_max32.c compared buffer\_size, a byte count, against a sample count ((1 + extra\_samplings)  channels), ignoring sizeof(uint16\_t), so it accepted a buffer half the required size. The samples are then stored through the uint16\_t  data-\>buffer by Wrap\_MXC\_ADC\_GetData(), which writes two bytes per sample and advances the pointer by one uint16\_t: in adc\_max32\_start\_channel() for synchronous reads, and in adc\_max32\_isr() for asynchronous ones. A sequence selecting two channels with a two-byte buffer, for example, passes the check and 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 a MAX32 ADC device object therefore fully controls channels, buffer, buffer\_size and options-\>extra\_samplings, and can make the driver write twice as many bytes as its buffer holds. Because the check scales with extra\_samplings, the overrun equals the length of the buffer itself, up to channels \* 65536 bytes past its end, 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 system call itself, the ADC context timer, or the ADC interrupt handler for asynchronous reads), 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 replaces that check in start\_read() with a call to the new shared helper adc\_sequence\_validate\_buffer() in drivers/adc/adc\_common.c, passing sizeof(uint16\_t) as the sample size. The helper computes active\_channels  sizeof(uint16\_t)  (1 + extra\_samplings) and returns -ENOMEM before any sampling is started.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.0.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2 (cvelist)

## Mitigation

- Upgrade zephyr to 4.4.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-18414.md
Affected: zephyrproject zephyr >= 4.0.0, < 4.3.2; >= 4.4.0, < 4.4.2
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.4.2

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

## FAQ

### Is CVE-2026-18414 being exploited?

There is no confirmed exploitation: CVE-2026-18414 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-18414?

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

### Which versions are affected by CVE-2026-18414?

zephyrproject zephyr \>= 4.0.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2.

### Is there a fix for CVE-2026-18414?

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

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

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.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-ghm4-78mm-8v2c>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/9338c518bf2b6a396f166d4dbe9985ce7e44379c>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/3bda971a52ddbbec28f6fcfe3b006d34e8b9e5a9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-18414>

HTML: <https://flawdb.com/CVE-2026-18414> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-18414>
