Sari la conținut
RedCVE

CVE-2026-85035Zephyrproject Zephyr use-after-free

zephyrprojectPublicat:

Scor CVSS

8.8

Ridicat

CVSS 3.1 de la zephyrproject.org

Probabilitate de exploatare (EPSS)

0.22%

Șansă de 0.22% să fie exploatată în următoarele 30 de zile, peste 13.1% dintre toate CVE-urile.

CISA KEV

Nu este în KEV

CISA nu a raportat până acum exploatări confirmate.

Descrierea oficială

The can_add_rx_filter_msgq() system call installs a CAN RX filter whose callback (can_msgq_put() in drivers/can/can_common.c) is handed the caller's struct k_msgq * as user_data. The controller driver stores that raw pointer in its filter table and dereferences it from the RX path every time a matching frame arrives. The system call verifier z_vrfy_can_add_rx_filter_msgq() in drivers/can/can_handlers.c validated the queue only with K_SYSCALL_OBJ(), which is a point-in-time check of type, initialization and caller permission and says nothing about the object's lifetime. On a build with CONFIG_USERSPACE=y and CONFIG_DYNAMIC_OBJECTS=y, an unprivileged user-mode thread that has been granted access to a CAN device can obtain a message queue whose lifetime it fully controls: k_object_alloc(K_OBJ_MSGQ) followed by k_msgq_alloc_init(). The lifetime of such an object is driven solely by its permission bitmask, and a pointer retained by the kernel is not represented there. After registering the filter, the thread calls k_object_release() — or simply terminates — and unref_check() frees the struct k_msgq storage while the CAN driver still holds the pointer. The next matching CAN frame causes k_msgq_put() to run in supervisor context against freed memory that the attacker can have groomed with another kernel allocation: the frame payload is memcpy()d through the reused block's write_ptr, and the queue's wait_q (and poll_events under CONFIG_POLL) list nodes are manipulated. This yields kernel-heap corruption reachable from a user-mode thread, defeating the isolation CONFIG_USERSPACE is intended to provide; the same dangling pointer also arises benignly when an application thread exits without calling can_remove_rx_filter(). The fix validates the queue with K_SYSCALL_OBJ_STATIC(), which additionally rejects objects carrying K_OBJ_FLAG_ALLOC, so only statically defined queues (CAN_MSGQ_DEFINE()) may be registered from user mode. Supervisor-mode callers bypass the verifier and must themselves keep the queue valid until the filter is removed.

Sursa: NVD · CNA: vulnerabilities@zephyrproject.org

Cum îl remediezi, pas cu pas

  1. Verifică dacă ești afectat

    Identifică toate sistemele care rulează zephyrproject Zephyr și compară versiunea lor cu versiunile afectate.

  2. Actualizează la o versiune remediată

    • Actualizează Zephyr la 4.3.2, 4.5.0 sau mai nou, pe ramura pe care o folosești.
  3. 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
Scăzut
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:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Produse afectate

Produse afectateVersiuni
zephyrproject Zephyr≥ 1.14.0, < 4.3.2 · ≥ 4.4.0, < 4.5.0

Tip de slăbiciune

Cronologie

  1. Publicat:
  2. Ultima modificare:

Întrebări frecvente

Este CVE-2026-85035 exploatată?

Până acum nu există exploatări confirmate în catalogul CISA KEV. Scorul EPSS estimează o probabilitate de 0.2% de exploatare în următoarele 30 de zile.

Care este scorul CVSS pentru CVE-2026-85035?

CVE-2026-85035 are un scor de bază CVSS 3.1 de 8.8 (ridicat).

Ce versiuni sunt afectate?

Zephyrproject Zephyr (≥ 1.14.0, < 4.3.2; ≥ 4.4.0, < 4.5.0)

Există patch pentru CVE-2026-85035?

Î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.