製品・ソフトウェアに関する情報
Zephyr ProjectのZephyrにおける解放済みメモリの使用に関する脆弱性
Title Zephyr ProjectのZephyrにおける解放済みメモリの使用に関する脆弱性
Summary

CONFIG_USERSPACEおよびCONFIG_XTENSA_MMUが有効なXtensaターゲットにおいて、ページテーブルコード(arch/xtensa/core/ptables.c)はcaller所有のstruct k_mem_domainに埋め込まれたリストノードを使用し、アクティブなメモリドメインのグローバルリストxtensa_domain_listを管理しています。k_mem_domain_deinit() - arch_mem_domain_deinit()によってドメインが破棄されるとページテーブルは解体され、domain-arch.ptablesはNULLに設定されますが、ドメインのノードはxtensa_domain_listから削除されませんでした。そのため、解放または初期化解除されたドメインはcaller所有のストレージへのダングリングポインタとしてグローバルリストに残り、その後解放または再利用される可能性があります。その後のarch_mem_map()/arch_mem_unmap()操作(カーネルのメモリマッピングや需要ページングコードで広く呼ばれる)は古いノードを辿りdomain.ptablesをデリファレンスします。最低でもNULLポインタ参照による致命的なMMU例外(サービス拒否)を引き起こし、k_mem_domainストレージが解放または再利用されている場合、use-after-freeとなり、古いまたは制御されたptables値がページテーブルウォーク中にデリファレンスされ書き込まれます(l2_page_table_mapはl1_table[...]およびl2_table[...]を書き込み、xtensa_mmu_compute_domain_regsはドメイン構造体とL1テーブルに書き込みを行います)。これによりユーザースペースの分離を損なうページテーブルメモリ破損が生じます。この脆弱な経路は特権カーネル/スーパーバイザコードからのみ到達可能であり(k_mem_domain_deinitはシステムコールではありません)、非特権ユーザースレッドやリモートからは直接アクセスできません。影響を受けるバージョンはZephyr v4.4.0です(Xtensaメモリドメイン初期化解除機能はコミット3032b58f52dで導入され、v4.4.0が初出荷版です)。この問題はarch_mem_domain_deinit()内でsys_slist_find_and_remove()を追加することでmainブランチで修正されました。Xtensa MPU経路には影響を与えません。

Possible impacts ・当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 
Solution

ベンダ情報を参照して適切な対策を実施してください。

Publication Date June 16, 2026, midnight
Registration Date June 17, 2026, 3:35 p.m.
Last Update June 17, 2026, 3:35 p.m.
CVSS3.0 : 警告
Score 6.3
Vector CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:H
Affected System
Zephyr Project
Zephyr 4.4.0
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年06月17日]
  掲載
June 17, 2026, 3:35 p.m.

NVD Vulnerability Information
CVE-2026-10635
Summary

On Xtensa targets with CONFIG_USERSPACE and CONFIG_XTENSA_MMU, the page-table code (arch/xtensa/core/ptables.c) maintains a global list, xtensa_domain_list, of active memory domains using a list node embedded inside the caller-owned struct k_mem_domain. When a domain is destroyed via k_mem_domain_deinit() - arch_mem_domain_deinit(), the page tables are torn down and domain-arch.ptables is set to NULL, but the domain's node was not removed from xtensa_domain_list. The freed/deinitialized domain therefore remained linked into the global list as a dangling pointer into caller-owned storage that may then be freed or reused. Any subsequent arch_mem_map()/arch_mem_unmap() operation (widely invoked by kernel memory-mapping and demand-paging code) traverses the stale node and dereferences domain-ptables: at minimum a NULL pointer dereference causing a fatal MMU exception (denial of service), and if the k_mem_domain storage has been freed or reused, a use-after-free in which a stale/controlled ptables value is dereferenced and written through during the page-table walk (l2_page_table_map writes l1_table[...] and l2_table[...], and xtensa_mmu_compute_domain_regs writes into the domain struct and the L1 table), yielding page-table memory corruption that can undermine userspace isolation. The vulnerable path is reachable only from privileged kernel/supervisor code (k_mem_domain_deinit is not a syscall), not directly from unprivileged user threads or remotely. Affected: Zephyr v4.4.0 (the Xtensa memory-domain de-initialization feature was introduced in commit 3032b58f52d and first shipped in v4.4.0); fixed on main by adding sys_slist_find_and_remove() in arch_mem_domain_deinit(). The Xtensa MPU path is unaffected.

Publication Date June 16, 2026, 3:16 p.m.
Registration Date June 17, 2026, 4:16 a.m.
Last Update June 17, 2026, 12:23 a.m.
Related information, measures and tools
Common Vulnerabilities List