本文へ移動
English version →
高 7.8

Zephyrのi2s_configureに検証不足があり、ユーザーモードのスレッドからカーネル権限でメモリを読み書きされる脆弱性

CVE-2026-87039 SecPulse初出

概要

Zephyrには、I2S設定のシステムコール処理で、ユーザーが渡したカーネルオブジェクトのポインタが検証されない脆弱性があります。CONFIG_USERSPACEを有効にした環境で、I2Sデバイスにアクセスできるスレッドが悪用でき、カーネル権限でメモリを読み書きされるおそれがあります。影響を受けるのは4.4.0以上4.5.0未満で、4.5.0に修正版があります。

AI要約

SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

Zephyrには、I2S設定のシステムコール処理で、ユーザーが渡したカーネルオブジェクトのポインタが検証されない脆弱性があります。CONFIG_USERSPACEを有効にした環境で、I2Sデバイスにアクセスできるスレッドが悪用でき、カーネル権限でメモリを読み書きされるおそれがあります。影響を受けるのは4.4.0以上4.5.0未満で、4.5.0に修正版があります。

影響パッケージ

パッケージ影響を受ける版 → 修正版
zephyrprojectzephyr
4.4.0 以上 4.5.0 未満→ 4.5.0
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

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 "b…

出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく