# CVE-2026-15891: NULL pointer dereference in Zephyr MQTT-SN client when removing a non-responsive gateway

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.57% (percentile 41, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2026-09-13T22:46:15.222Z
- **Modified:** 2026-11-04T05:18:43.757Z

## Who should check

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

## Description

The MQTT-SN client keepalive handler process\_ping() in subsys/net/lib/mqtt\_sn/mqtt\_sn.c removes the gateway record after PINGREQ retries are exhausted. It invoked SYS\_SLIST\_PEEK\_HEAD\_CONTAINER(&client-\>gateways, gw, next) but discarded the result. That macro is a pure expression that does not assign to gw, so gw retained its NULL initializer regardless of the list contents.

The code then dereferences the NULL gw (gw-\>gw\_id) and passes it to mqtt\_sn\_gw\_destroy(), reaching k\_mem\_slab\_free(&gateways, NULL). With CONFIG\_MEM\_SLAB\_POINTER\_VALIDATE enabled this triggers k\_panic(); in the default configuration it performs a write through the NULL pointer ((char )mem = slab-\>free\_list;) and corrupts the slab free list. The outcome is a crash/kernel panic or, on targets where address 0 is writable, silent memory-allocator corruption.

The vulnerable branch runs whenever the connected MQTT-SN gateway fails to answer keepalive PINGREQs for the configured number of retries. This condition is controlled by the remote peer: a malicious or compromised gateway, or an on-path/adjacent attacker that advertises itself as a gateway and then stops responding (or blackholes the real gateway's PINGRESPs), forces the client into the defect. MQTT-SN runs over UDP and no authentication is required.

The impact is a remotely triggerable denial of service (availability) of the affected MQTT-SN client; there is no attacker-controlled data written. The sibling remover process\_advertise() uses SYS\_SLIST\_FOR\_EACH\_CONTAINER\_SAFE and is not affected. The fix assigns the macro's return value to gw.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.1.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-15891. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-15891.md
Affected: zephyrproject zephyr >= 4.1.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-15891 being exploited?

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

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

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

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-15891?

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-c4g8-4f9p-4746>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/bd21e954c36be105a374bbc090623810f1a17ee3>

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

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