# CVE-2026-19737: NULL pointer dereference in the ESP32 I2S driver when triggering an unsupported direction

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.14% (percentile 2, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-10-11T17:15:01.878Z
- **Modified:** 2026-10-16T16:17:05.303Z

## Who should check

- Anyone running zephyrproject zephyr \>= 4.4.0, \< 4.5.0

## Description

i2s\_esp32\_trigger\_check() in drivers/i2s/i2s\_esp32.c validates the requested direction only for I2S\_DIR\_BOTH. The I2S\_DIR\_RX and I2S\_DIR\_TX branches read dev\_cfg-\>rx.data-\>configured / dev\_cfg-\>tx.data-\>configured without first checking the stream pointers. The device instantiation macro I2S\_ESP32\_STREAM\_INIT() sets both .conf and .data to NULL for a direction the devicetree does not describe, so on an instance that wires only one direction — the normal shape for audio output or a worldsemi,ws2812-i2s LED strip — the other direction dereferences a NULL pointer instead of returning an error.

i2s\_trigger() is a Zephyr syscall, and z\_vrfy\_i2s\_trigger() in drivers/i2s/i2s\_handlers.c validates only the device object and the presence of the trigger API pointer; the dir argument is passed to the driver unvalidated. On a build with CONFIG\_USERSPACE enabled, a user-mode thread that has been granted the I2S device can issue a single i2s\_trigger() call naming the unwired direction and cause a load from address 0 in kernel mode. Among the Espressif parts that carry this driver, userspace is available in-tree only on RISC-V SoCs with CONFIG\_RISCV\_PMP, and v4.4.0 is the first release where that is buildable: the ESP32-C6 HPCORE selects RISCV\_PMP when it is not built for MCUboot. ESP32-C5 in v4.4.x carries the same PMP-region and userspace linker support but does not select RISCV\_PMP by default. Espressif Xtensa targets do not support Zephyr userspace, and in a non-userspace build the bad direction can only come from in-kernel application code.

The impact is limited to availability: the access is a read at offset 0 of the missing stream structure, so there is no attacker-controlled offset, no write primitive and no information disclosure. With the default fatal-error handler the resulting exception halts the system, giving an unprivileged user-mode thread a system-wide denial of service. The fix adds the same pointer check the I2S\_DIR\_BOTH branch already performed and returns -ENOSYS for a direction the instance does not implement; the driver's other entry points (i2s\_esp32\_config\_check(), i2s\_esp32\_config\_get(), i2s\_esp32\_read(), i2s\_esp32\_write()) already guarded the pointers, and a static audit found no equivalent unguarded path.

The driver defect is older than the affected range. The unguarded dereference is present from v4.2.0 (reached through i2s\_esp32\_trigger\_stream(), whose if (stream) guard tests the address of a struct member and is never false) and takes its present i2s\_esp32\_trigger\_check() form in v4.3.0. No in-tree Espressif configuration before v4.4.0 can run a user-mode thread, so in v4.2.x and v4.3.x the direction argument can only come from trusted kernel code. Those releases carry the bug but are not listed as affected; the fix has also been merged to v4.3-branch as hardening.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.4.0, \< 4.5.0 (cvelist)

## Mitigation

- Upgrade zephyr to 4.5.0 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-19737. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-19737.md
Affected: zephyrproject zephyr >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.5.0

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-19737 being exploited?

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

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

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

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

zephyrproject zephyr \>= 4.4.0, \< 4.5.0.

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

Yes. Fixed in zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

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

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-5g9q-h8wq-rrf3>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/0d82dbbe72f154de32cc45021a9f59d9a737246b>

## 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-19737>

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