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

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ピン留めを使用するように修正しました。

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

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

Publication Date April 22, 2026, midnight
Registration Date May 25, 2026, 10:23 a.m.
Last Update May 25, 2026, 10:23 a.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.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 (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2026年05月25日]
  掲載
May 25, 2026, 10:23 a.m.

NVD Vulnerability Information
CVE-2026-31432
Summary

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.

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