Linuxカーネルのcomediサブデバイスにおける未初期化データ読み取りにより情報漏えいが起きる脆弱性
タイトル Linuxカーネルのcomediサブデバイスにおける未初期化データ読み取りにより情報漏えいが起きる脆弱性
概要

Linuxカーネルにおいて、comediサブデバイスへの書き込み命令のデータ初期化に不備があり、未初期化のデータが読み取られる可能性がある脆弱性が修正されました。do_insn_ioctl関数およびdo_insnlist_ioctl関数は、命令データの要素数としてMIN_SAMPLES(16)個を割り当てますが、全てを適切に初期化していませんでした。その結果、一部の命令ハンドラが初期化されていないデータを読み取ることがありました。今回の修正により、命令実行前に未コピーのデータ要素を0で初期化することで、この問題を防止しています。

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

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

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

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

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

comedi: Fix initialization of data for instructions that write to subdevice

Some Comedi subdevice instruction handlers are known to access
instruction data elements beyond the first `insn->n` elements in some
cases. The `do_insn_ioctl()` and `do_insnlist_ioctl()` functions
allocate at least `MIN_SAMPLES` (16) data elements to deal with this,
but they do not initialize all of that. For Comedi instruction codes
that write to the subdevice, the first `insn->n` data elements are
copied from user-space, but the remaining elements are left
uninitialized. That could be a problem if the subdevice instruction
handler reads the uninitialized data. Ensure that the first
`MIN_SAMPLES` elements are initialized before calling these instruction
handlers, filling the uncopied elements with 0. For
`do_insnlist_ioctl()`, the same data buffer elements are used for
handling a list of instructions, so ensure the first `MIN_SAMPLES`
elements are initialized for each instruction that writes to the
subdevice.

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