Skip to content
High 7.8

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

CVE-2026-90833 First seen on SecPulse

Summary

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

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

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

Affected packages

PackageAffected → Fixed
zephyrprojectzephyr
≥ 2.2.0, < 4.3.2→ 4.3.2
≥ 4.4.0, < 4.5.0→ 4.5.0
Original description The description as published by the source.

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,…

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

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details