CVE-2026-87039Zephyrproject Zephyr out-of-bounds write
Scor CVSS
7.8
Ridicat
CVSS 3.1 de la zephyrproject.org
Probabilitate de exploatare (EPSS)
0.10%
Șansă de 0.10% să fie exploatată în următoarele 30 de zile, peste 0.88% dintre toate CVE-urile.
CISA KEV
Nu este în KEV
CISA nu a raportat până acum exploatări confirmate.
Descrierea oficială
The user-mode syscall verifier z_vrfy_i2s_configure() in drivers/i2s/i2s_handlers.c copies the caller's struct i2s_config in from user memory and then, when cfg->frame_clk_freq is 0 (the API's "unconfigure the stream" request), jumps straight to z_impl_i2s_configure() without performing the K_SYSCALL_OBJ(config.mem_slab, K_OBJ_MEM_SLAB) ownership/type check or the block_size sanity check. The mem_slab field is a struct k_mem_slab *, so on that path a completely unvalidated, user-chosen pointer reaches driver code that is entitled to trust it as a real kernel object.
Any thread running under CONFIG_USERSPACE that has access to an I2S device object can trigger this with a single i2s_configure() call. Most in-tree drivers special-case frame_clk_freq == 0 and never store the caller's structure, but drivers/i2s/i2s_litex.c does not: i2s_litex_configure() only logs a warning for a mismatched frame clock, then memcpy()s the caller's config into stream->cfg and marks the stream I2S_STATE_READY. A subsequent i2s_trigger() with I2S_TRIGGER_START enables the FIFO interrupt, and the interrupt handlers i2s_litex_isr_rx() / i2s_litex_isr_tx() then call k_mem_slab_alloc() and k_mem_slab_free() on the attacker-supplied pointer in supervisor context.
The result is an arbitrary-pointer read/write primitive executed by the kernel on behalf of an unprivileged thread — k_mem_slab_alloc() takes a spinlock at slab->lock and reads and writes slab->free_list and the link word inside the returned "block" — which defeats the CONFIG_USERSPACE isolation boundary entirely. The same missing validation is a hazard for out-of-tree I2S drivers that retain the configuration on the unconfigure path. Builds without CONFIG_USERSPACE are unaffected, since the verifier is not used.
The fix zeroes config.mem_slab and config.block_size on the unconfigure path so the driver can never receive an unvalidated pointer, while still allowing a stream to be unconfigured by a caller that does not own a memory slab, as the API documents.
Sursa: NVD · CNA: vulnerabilities@zephyrproject.org
Cum îl remediezi, pas cu pas
Verifică dacă ești afectat
Identifică toate sistemele care rulează zephyrproject Zephyr și compară versiunea lor cu versiunile afectate.
Actualizează la o versiune remediată
- Actualizează Zephyr la 4.5.0 sau mai nou.
Confirmă remedierea
Verifică dacă toate sistemele afectate raportează acum o versiune remediată și revezi avizul furnizorului: remedierile sunt uneori revizuite.
Ți-a fost util?
Cum poate fi exploatată
- Vector de atac
- Local
- Complexitatea atacului
- Ridicat
- Privilegii necesare
- Scăzut
- Interacțiune cu utilizatorul
- Niciunul
- Domeniu de impact
- Schimbat
- Confidențialitate
- Ridicat
- Integritate
- Ridicat
- Disponibilitate
- Ridicat
Valorile în roșu fac vulnerabilitatea mai ușor de exploatat sau mai gravă. CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Produse afectate
| Produse afectate | Versiuni |
|---|---|
| zephyrproject Zephyr | ≥ 4.4.0, < 4.5.0 |
Tip de slăbiciune
- CWE-787 out-of-bounds write
Cronologie
- Publicat:
- Ultima modificare:
Întrebări frecvente
Este CVE-2026-87039 exploatată?
Până acum nu există exploatări confirmate în catalogul CISA KEV. Scorul EPSS estimează o probabilitate de 0.1% de exploatare în următoarele 30 de zile.
Care este scorul CVSS pentru CVE-2026-87039?
CVE-2026-87039 are un scor de bază CVSS 3.1 de 7.8 (ridicat).
Ce versiuni sunt afectate?
Zephyrproject Zephyr (≥ 4.4.0, < 4.5.0)
Există patch pentru CVE-2026-87039?
Înregistrarea oficială trimite la avize sau patch-uri ale producătorului; vezi „Ce trebuie să faci” mai sus.
Referințe
Date: NVD, CVE.org (cvelistV5), CISA KEV și FIRST EPSS. Rezumat scris de RedCVE cu ajutorul AI, pe baza datelor oficiale.