# CVE-2026-102950: ZMS mount recovery treats stored value data as allocation table entries, allowing forged entries and storage corruption

Status: published. Published: 2026-11-23. Updated: 2026-11-23.

The mount-time recovery scan of the Zephyr Memory Storage (ZMS) key-value store, zms_recover_last_ate() in subsys/kvss/zms/zms.c (subsys/fs/zms/zms.c in older releases), computes the end of the sector's data area incorrectly. Every valid allocation table entry (ATE) reset the data-end bound to the start of the sector, including entries whose value is stored inline (8 bytes or less) and delete entries. When the newest ATE in the active sector is one of these, the scan continues past the ATE area into the payload area and reads stored value bytes as struct zms_ate records.

Any payload slot that passes the ATE check (a CRC8 plus the one-byte sector cycle count) is adopted as the newest entry. zms_init() then sets fs->ate_wra and fs->data_wra from it. The pointers are only this weak check away from data an application may have stored on behalf of a remote party: a BLE-writable device name, provisioned credentials, or configuration received over the network. An attacker who can get about 16 bytes of chosen content persisted in a ZMS value can plant a forged ATE. The forged entry takes effect after the next mount, provided the newest entry in that sector is small or a delete. Random data can also match by chance, which is how the issue was found.

A forged or accidentally matched ATE overrides the stored entry for any chosen id. Its inline data or its offset/len pointer controls what later reads of that key return. The misplaced write pointers also make later writes place ATEs and payloads over other entries' existing data, silently corrupting persistent configuration such as settings values stored in ZMS. The effects are limited to the active flash sector and to what ZMS returns to its callers. No RAM out-of-bounds access was identified.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: zephyr) — https://github.com/zephyrproject-rtos/zephyr/commit/a1fe3a123726e821ff16205be86e4a37d696761b

## Affected products and versions

- zephyrproject / zephyr (zephyr): ≥ 4.0.0; < 4.3.2 (affected, semver); ≥ 4.4.0; < 4.5.0 (affected, semver). Source: CNA: zephyr

## Severity and prioritization

- CVSS 3.1: 5.9 (medium); CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L; source: CNA: zephyr

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-682

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/zephyrproject-rtos/zephyr/commit/a1fe3a123726e821ff16205be86e4a37d696761b (CNA: zephyr; patch)

- https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-h4rx-fm5f-vh9r (CNA: zephyr)

## Provenance

- CNA: zephyr: https://www.cve.org/CVERecord?id=CVE-2026-102950; retrieved 2026-11-23; source updated 2026-11-23

Revision: 543349702a81eef28814dc1088212902912cd61ef54925a266b40858b3129c15

Canonical: https://y2.dev/cve/CVE-2026-102950

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.