Zephyrの脆弱性、ユーザーモードのスレッドから特権モードで不正な書き込みが起きるおそれ
概要
Zephyrのxtensa向けMMUユーザー空間の実装で、スレッドのページテーブルポインタが初期化されず、一般ユーザーのスレッドから特権モードの範囲外書き込みが起きるおそれがあります。影響するのは3.6.0以降4.3.2未満と4.4.0以降4.5.0未満で、修正版は4.3.2と4.5.0です。該当する版を使っている場合は、修正版への更新を検討してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Zephyrのxtensa向けMMUユーザー空間の実装で、スレッドのページテーブルポインタが初期化されず、一般ユーザーのスレッドから特権モードの範囲外書き込みが起きるおそれがあります。影響するのは3.6.0以降4.3.2未満と4.4.0以降4.5.0未満で、修正版は4.3.2と4.5.0です。該当する版を使っている場合は、修正版への更新を検討してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| zephyrprojectzephyr |
3.6.0 以上 4.3.2 未満→ 4.3.2 4.4.0 以上 4.5.0 未満→ 4.5.0 |
4.3.2 4.5.0 |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- Ubuntu UBUNTU-CVE-2026-90586 zephyr この記録に修正版の記載なし
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
The Xtensa MMU userspace port never initialized the per-thread page-table pointer thread->arch.ptables during thread setup, while arch_mem_domain_thread_add() in arch/xtensa/core/ptables.c uses a non-NULL value of that field as its "this thread is migrating from another memory domain" predicate. For a thread whose struct k_thread backing memory is not zeroed, the field holds stale data and the kernel takes the migration branch, passing that stale value to reset_region() as the base of a level-1 page table. The equivalent field on x86 is explicitly cleared in z_x86_userspace_prepare_thread() for exactly this reason; the Xtensa port adopted the predicate without the initialization.
The condition is reachable from an unprivileged user-mode thread on a build with CONFIG_XTENSA_MMU, CONFIG_USERSPACE and dynamically allocated kernel objects. k_object_alloc(K_OBJ_THREAD) is a system call and allocates the thread object from the caller's resource pool without zeroing it, and the k_thread_create() verifier accepts such an object while forcing the K_USER option, so the migration branch is taken whenever the recycled heap bytes at that offset are non-zero. Because a user thread can also allocate, fill and free other kernel objects from the same heap, the stale bytes are groomable rather than merely random.
Walking the bogus table in region_map_update() performs an unguarded index into l2_page_tables_counter[], may copy from and write through the attacker-influenceable level-1 base in…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com