Skip to content
High 7.8

Zephyrの充電器ドライバーに脆弱性、一般ユーザーの権限でカーネル権限のコードを実行されるおそれ

CVE-2026-91007 First seen on SecPulse

Summary

Zephyrの充電器ドライバーAPIで、ユーザーモードから渡された関数ポインターが検証されず、カーネル権限で実行される可能性があります。影響を受けるのは3.7.0以上4.3.2未満と4.4.0以上4.5.0未満で、修正版は4.3.2と4.5.0です。CONFIG_USERSPACEを使う環境は、修正版への更新を優先して確認してください。

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の充電器ドライバーAPIで、ユーザーモードから渡された関数ポインターが検証されず、カーネル権限で実行される可能性があります。影響を受けるのは3.7.0以上4.3.2未満と4.4.0以上4.5.0未満で、修正版は4.3.2と4.5.0です。CONFIG_USERSPACEを使う環境は、修正版への更新を優先して確認してください。

Affected packages

PackageAffected → Fixed
zephyrprojectzephyr
≥ 3.7.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 user-mode syscall verifiers for the charger driver API in drivers/charger/charger_handlers.c did not inspect the prop argument before copying union charger_propval across the user/kernel boundary. Two members of that union are function pointers — status_notification (CHARGER_PROP_STATUS_NOTIFICATION) and online_notification (CHARGER_PROP_ONLINE_NOTIFICATION), declared in include/zephyr/drivers/charger.h — and z_vrfy_charger_set_prop() forwarded the caller-supplied union verbatim to the driver's set_property callback for any property. z_vrfy_charger_get_prop() had the mirror defect and copied the stored kernel callback address back out to user memory.

With CONFIG_USERSPACE enabled, any user-mode thread that has been granted a charger device object could call charger_set_prop() with CHARGER_PROP_STATUS_NOTIFICATION or CHARGER_PROP_ONLINE_NOTIFICATION and an arbitrary pointer value. Drivers that implement these properties — drivers/charger/charger_max20335.c, drivers/charger/charger_pf1550.c and drivers/charger/charger_bq2518x.c — store the pointer in device data and later invoke it from their interrupt work handlers, which run in supervisor mode, on any charger state change such as a cable plug/unplug.

The result is a control-flow hijack at kernel privilege from an unprivileged thread, defeating the isolation that CONFIG_USERSPACE is meant to provide; the read path additionally disclosed a kernel code address to user mode, and clearing a notifier installed by a supervisor…

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