製品・ソフトウェアに関する情報
LinuxのLinux Kernelにおける境界外読み取りに関する脆弱性
Title LinuxのLinux Kernelにおける境界外読み取りに関する脆弱性
Summary

Linuxカーネルにおいて、以下の脆弱性が修正されました。ksmbdの複合リクエストのget_file_all_info()における潜在的な範囲外書き込み(OOB)を修正しました。複合リクエストがQUERY_DIRECTORY + QUERY_INFO(FILE_ALL_INFORMATION)で構成され、最初のコマンドがほぼ最大転送サイズ(max_trans_size)を消費する場合、get_file_all_info()はPATH_MAXを指定して無条件にsmbConvertToUTF16()を呼び出し、応答バッファの範囲外への書き込みが発生していました。get_file_all_info()では、クライアントが提供したOutputBufferLengthの検証チェックが欠落しており、ファイル名をsmb2_file_all_info構造体のFileNameフィールドにコピーする際に、ファイル名の長さが利用可能なバッファ領域を超えると、smbConvertToUTF16変換中にバッファオーバーフローやメモリ破損が発生する可能性がありました。これを修正するために、smb2_calc_max_out_buf_len()を用いて実際の空きバッファサイズを計算し、バッファが不足する場合は-EINVALを返すようにし、smbConvertToUTF16を実際のファイル名長(PATH_MAXで制限)を使用して安全なコピー操作を保証するように更新しました。

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

リリース情報、またはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。

Publication Date April 22, 2026, midnight
Registration Date May 28, 2026, 2:42 p.m.
Last Update May 28, 2026, 2:42 p.m.
CVSS3.0 : 重要
Score 8.8
Vector CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected System
Linux
Linux Kernel 5.15.145 以上 5.15.203 未満
Linux Kernel 6.1.71 以上 6.1.168 未満
Linux Kernel 6.13 以上 6.18.21 未満
Linux Kernel 6.19 以上 6.19.11 未満
Linux Kernel 6.6 以上 6.6.131 未満
Linux Kernel 6.7 以上 6.12.80 未満
Linux Kernel 7.0
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2026年05月28日]
  掲載
May 28, 2026, 2:42 p.m.

NVD Vulnerability Information
CVE-2026-31433
Summary

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

ksmbd: fix potencial OOB in get_file_all_info() for compound requests

When a compound request consists of QUERY_DIRECTORY + QUERY_INFO
(FILE_ALL_INFORMATION) and the first command consumes nearly the entire
max_trans_size, get_file_all_info() would blindly call smbConvertToUTF16()
with PATH_MAX, causing out-of-bounds write beyond the response buffer.
In get_file_all_info(), there was a missing validation check for
the client-provided OutputBufferLength before copying the filename into
FileName field of the smb2_file_all_info structure.
If the filename length exceeds the available buffer space, it could lead to
potential buffer overflows or memory corruption during smbConvertToUTF16
conversion. This calculating the actual free buffer size using
smb2_calc_max_out_buf_len() and returning -EINVAL if the buffer is
insufficient and updating smbConvertToUTF16 to use the actual filename
length (clamped by PATH_MAX) to ensure a safe copy operation.

Publication Date April 22, 2026, 6:16 p.m.
Registration Date April 25, 2026, 4:04 a.m.
Last Update April 27, 2026, 11:16 p.m.
Related information, measures and tools
Common Vulnerabilities List