# CVE-2026-14368: Off-by-one out-of-bounds NUL write in Zephyr LwM2M JSON string parser

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

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.38% (percentile 24, 2026-11-26)
- **CWE:** CWE-787, CWE-193
- **Published:** 2026-08-31T18:45:07.165Z
- **Modified:** 2026-11-04T05:18:43.167Z

## Who should check

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

## Description

The LwM2M JSON content formatter's get\_string() in subsys/net/lib/lwm2m/lwm2m\_rw\_json.c copies a parsed JSON string into a caller-supplied buffer and NUL-terminates it. The length guard used if (string\_length \> buflen), which accepts a string whose length is exactly buflen. After memcpy() fills the whole buffer, buf\[string\_length\] = '\\0' then writes one byte past the end of the buffer (CWE-787).

The string value and its length are taken directly from the incoming CoAP payload during a LwM2M WRITE: do\_write\_op\_json() parses the payload obtained from coap\_packet\_get\_payload(), and get\_string() is invoked from lwm2m\_write\_handler() (engine\_get\_string() in subsys/net/lib/lwm2m/lwm2m\_message\_handling.c) for a LWM2M\_RES\_TYPE\_STRING resource. The destination buf/buflen is either the resource instance's fixed data buffer (res\_inst-\>data\_ptr/max\_data\_len) or the engine validation buffer (msg-\>ctx-\>validate\_buf). A LwM2M server (the client's DTLS peer) can therefore write a string resource with a value whose length equals the target buffer size and force a one-byte overflow.

The overflow is a single out-of-bounds write of the constant byte 0x00 immediately past the resource or validation buffer, corrupting the adjacent byte in memory. It is not an information leak and the written value is fixed, so it is not a direct code-execution primitive, but it can corrupt adjacent state (an adjacent resource value, a length/flag field, or a struct field) and cause data corruption or a crash. Triggering the write is deterministic; the resulting impact depends on memory layout.

The fix changes the guard to string\_length \>= buflen, rejecting the exact-length case and aligning the JSON formatter with the other content formatters (lwm2m\_rw\_plain\_text.c, lwm2m\_rw\_oma\_tlv.c, lwm2m\_rw\_senml\_json.c, lwm2m\_rw\_cbor.c, lwm2m\_rw\_senml\_cbor.c), which already used the correct boundary check.

## Affected and fixed versions

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

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

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

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

Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, login needed.

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

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

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

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

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-vg53-h6qq-xx7h>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/ba38f4b94337cc2c2446277ac181bdb5fec8f2b2>

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

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