Skip to content
High 8.8

ZephyrのI3Cドライバーに範囲外書き込みの脆弱性、権限を持つ一般ユーザーがカーネルを壊せる

CVE-2026-104378 First seen on SecPulse

Summary

Zephyrに含まれるDesignWare I3Cドライバーで、直接CCCの処理時に対象数の上限が検査されず、範囲外への書き込みが起きる脆弱性です。I3Cコントローラーにアクセスできる一般ユーザーのスレッドが、カーネルのデータを壊せるおそれがあります。影響するのは4.1.0以上4.3.2未満と4.4.0以上4.5.0未満で、修正版は4.3.2と4.5.0です。CVSSは8.8で、該当するバージョンの利用者は早めに修正版への更新を検討してください。

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に含まれるDesignWare I3Cドライバーで、直接CCCの処理時に対象数の上限が検査されず、範囲外への書き込みが起きる脆弱性です。I3Cコントローラーにアクセスできる一般ユーザーのスレッドが、カーネルのデータを壊せるおそれがあります。影響するのは4.1.0以上4.3.2未満と4.4.0以上4.5.0未満で、修正版は4.3.2と4.5.0です。CVSSは8.8で、該当するバージョンの利用者は早めに修正版への更新を検討してください。

Affected packages

PackageAffected → Fixed
zephyrprojectzephyr
≥ 4.1.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 Synopsys DesignWare I3C controller driver (drivers/i3c/i3c_dw.c) builds one command descriptor per target when issuing a direct CCC in dw_i3c_do_ccc(). It stored payload->targets.num_targets in xfer->ncmds and filled xfer->cmds[i] for every target without checking the count against the size of the cmds[] array (DW_I3C_MAX_CMD_BUF_SIZE, 16 entries). A direct CCC with more than 16 targets wrote command descriptors past the end of struct dw_i3c_xfer, which is embedded in the driver's per-instance struct dw_i3c_data.

i3c_do_ccc() is a system call. On builds with CONFIG_USERSPACE, a user-mode thread that has been granted access to the I3C controller device can supply the payload. In released versions the z_vrfy_i3c_do_ccc() handler only checked that the caller's target array was accessible user memory and placed no upper bound on num_targets; the driver therefore performed the out-of-bounds writes in supervisor mode. The only requirement for each target is an address the controller already knows (the same address may be repeated), and the writes happen before any bus transaction.

The overflowing descriptors contain values the caller largely controls (data length, defining byte, CCC id, a user buffer pointer and transfer lengths). They overwrite the rest of the driver data, including the device-index table, the deftgts_work work item and device pointer when both controller and target roles are enabled, and any memory that follows. This lets an unprivileged thread corrupt kern…

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