本文へ移動
English version →
高 7.8

Zephyrの脆弱性、一般ユーザーの操作でカーネルメモリを読み書きされるおそれ

CVE-2026-90833 SecPulse初出

概要

Zephyrのエミュレートされ�EEPROMドライバーに、範囲チェックの不備による脆弱性が見つかりました。CONFIG_USERSPACEが有効で、EEPROMシミュレーターのデバイスがユーザースレッドに割り当てられている場合、一般ユーザーの権限でもカーネルメモリの読み書きが可能になるおそれがあります。影響するのは2.2.0以上4.3.2未満と4.4.0以上4.5.0未満で、修正版は4.3.2と4.5.0です。

AI要約

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

Zephyrのエミュレートされ�EEPROMドライバーに、範囲チェックの不備による脆弱性が見つかりました。CONFIG_USERSPACEが有効で、EEPROMシミュレーターのデバイスがユーザースレッドに割り当てられている場合、一般ユーザーの権限でもカーネルメモリの読み書きが可能になるおそれがあります。影響するのは2.2.0以上4.3.2未満と4.4.0以上4.5.0未満で、修正版は4.3.2と4.5.0です。

影響パッケージ

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

The simulated EEPROM driver validated access ranges in eeprom_range_is_valid() (drivers/eeprom/eeprom_simulator.c) with a single test, (offset + len) <= config->size. Because offset is a signed off_t and len an unsigned size_t of the same rank, the addition is evaluated in unsigned arithmetic: a negative offset combined with a compensating len wraps the sum back into the accepted range. eeprom_sim_read() and eeprom_sim_write() then memcpy() through the EEPROM(addr) macro, which is plain pointer arithmetic on the driver's static mock_eeprom array, so the copy addresses memory located before that array.

eeprom_read() and eeprom_write() are __syscall entry points, and their verification handlers in drivers/eeprom/eeprom_handlers.c check only the device object and the caller's own data buffer (K_SYSCALL_MEMORY_READ/K_SYSCALL_MEMORY_WRITE) — the offset argument is passed to the driver unvalidated. With CONFIG_USERSPACE=y, a CONFIG_EEPROM_SIMULATOR device instance, and the device object granted to a user thread (the usage the in-tree tests/drivers/eeprom/api suite exercises from ZTEST_USER threads), an unprivileged thread could supply a negative offset and have the kernel perform the copy on its behalf.

The result is an out-of-bounds read of kernel .bss returned into the caller's buffer and, via the write path, an out-of-bounds write of caller-supplied bytes over kernel memory preceding mock_eeprom. Both the start address and the length of the affected span are attacker-selected,…

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

参照URL

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