Linuxカーネルのregulator:gpioにおけるメモリ割り当てミスが原因の範囲外アクセスの脆弱性
タイトル Linuxカーネルのregulator:gpioにおけるメモリ割り当てミスが原因の範囲外アクセスの脆弱性
概要

Linuxカーネルのregulator: gpioには、drvdata::gpiodsへの範囲外アクセスが発生する脆弱性が存在します。drvdata::gpiodsは本来gpio_descポインタの配列を保存するように設計されていますが、十分なメモリが割り当てられていませんでした。そのため、config::ngpiosが1を超える場合に範囲外アクセスが発生する可能性がありました。この問題は、config::ngpiosの数に応じて適切にメモリを割り当てることで修正されました。また、可読性を向上させるために、メモリ割り当ての失敗チェックのタイミングも改善されています。

想定される影響 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
対策

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

公表日 2025年7月25日0:00
登録日 2025年12月25日16:59
最終更新日 2025年12月25日16:59
CVSS3.0 : 重要
スコア 7.1
ベクター CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
影響を受けるシステム
Debian
Debian GNU/Linux 11.0
Linux
Linux Kernel 5.1 から 5.4.296 未満
Linux Kernel 5.11 から 5.15.187 未満
Linux Kernel 5.16 から 6.1.144 未満
Linux Kernel 5.5 から 5.10.240 未満
Linux Kernel 6.13 から 6.15.6 未満
Linux Kernel 6.16
Linux Kernel 6.2 から 6.6.97 未満
Linux Kernel 6.7 から 6.12.37 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
変更履歴
No 変更内容 変更日
1 [2025年12月25日]
  掲載
2025年12月25日16:59

NVD脆弱性情報
CVE-2025-38395
概要

In the Linux kernel, the following vulnerability has been resolved:

regulator: gpio: Fix the out-of-bounds access to drvdata::gpiods

drvdata::gpiods is supposed to hold an array of 'gpio_desc' pointers. But
the memory is allocated for only one pointer. This will lead to
out-of-bounds access later in the code if 'config::ngpios' is > 1. So
fix the code to allocate enough memory to hold 'config::ngpios' of GPIO
descriptors.

While at it, also move the check for memory allocation failure to be below
the allocation to make it more readable.

公表日 2025年7月25日22:15
登録日 2025年7月26日4:01
最終更新日 2025年7月25日22:15
関連情報、対策とツール
共通脆弱性一覧