製品・ソフトウェアに関する情報
Linuxカーネルのregulator:gpioにおけるメモリ割り当てミスが原因の範囲外アクセスの脆弱性
Title Linuxカーネルのregulator:gpioにおけるメモリ割り当てミスが原因の範囲外アクセスの脆弱性
Summary

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

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

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

Publication Date July 25, 2025, midnight
Registration Date Dec. 25, 2025, 4:59 p.m.
Last Update Dec. 25, 2025, 4:59 p.m.
CVSS3.0 : 重要
Score 7.1
Vector CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Affected System
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 (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2025年12月25日]
  掲載
Dec. 25, 2025, 4:59 p.m.

NVD Vulnerability Information
CVE-2025-38395
Summary

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.

Publication Date July 25, 2025, 10:15 p.m.
Registration Date July 26, 2025, 4:01 a.m.
Last Update July 25, 2025, 10:15 p.m.
Related information, measures and tools
Common Vulnerabilities List