LinuxのLinux Kernelにおける境界外書き込みに関する脆弱性
タイトル LinuxのLinux Kernelにおける境界外書き込みに関する脆弱性
概要

Linuxカーネルにおいて、以下の脆弱性が修正されました。ksmbdの複合リクエストのQUERY_INFOにおけるOOB書き込みの問題です。複合リクエスト(例:READ + QUERY_INFO(Security))を受信した際に、最初のコマンド(READ)が応答バッファの大部分を消費すると、ksmbdはセキュリティディスクリプタ構築中に割り当てられたバッファを超えて書き込む可能性がありました。根本原因は、smb2_get_info_sec()がxattrのppntsd_sizeを用いてバッファスペースを確認していたのに対し、build_sec_desc()はしばしばPOSIX ACLからかなり大きなディスクリプタを合成していたことにあります。本パッチでは、最終的なディスクリプタサイズを正確に事前計算するsmb_acl_sec_desc_scratch_len()を導入し、smb2_calc_max_out_buf_len()によって適切なバッファチェックを行い、正確なサイズの割り当てとiovピン留めを使用するように修正しました。

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

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

公表日 2026年4月22日0:00
登録日 2026年5月25日10:23
最終更新日 2026年5月25日10:23
CVSS3.0 : 重要
スコア 8.8
ベクター CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
影響を受けるシステム
Linux
Linux Kernel 5.15.145 以上 5.16 未満
Linux Kernel 6.1.71 以上 6.2 未満
Linux Kernel 6.13 以上 6.18.22 未満
Linux Kernel 6.19 以上 6.19.12 未満
Linux Kernel 6.6 以上 6.12.81 未満
Linux Kernel 7.0
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
変更履歴
No 変更内容 変更日
1 [2026年05月25日]
  掲載
2026年5月25日10:23

NVD脆弱性情報
CVE-2026-31432
概要

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

ksmbd: fix OOB write in QUERY_INFO for compound requests

When a compound request such as READ + QUERY_INFO(Security) is received,
and the first command (READ) consumes most of the response buffer,
ksmbd could write beyond the allocated buffer while building a security
descriptor.

The root cause was that smb2_get_info_sec() checked buffer space using
ppntsd_size from xattr, while build_sec_desc() often synthesized a
significantly larger descriptor from POSIX ACLs.

This patch introduces smb_acl_sec_desc_scratch_len() to accurately
compute the final descriptor size beforehand, performs proper buffer
checking with smb2_calc_max_out_buf_len(), and uses exact-sized
allocation + iov pinning.

公表日 2026年4月22日18:16
登録日 2026年4月25日4:04
最終更新日 2026年4月27日23:16
関連情報、対策とツール
共通脆弱性一覧