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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*

History

11 Nov 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ksmbd: corrección de escritura fuera de límites en QUERY_INFO para solicitudes compuestas Cuando se recibe una solicitud compuesta como READ + QUERY_INFO(Security), y el primer comando (READ) consume la mayor parte del búfer de respuesta, ksmbd podría escribir más allá del búfer asignado mientras construye un descriptor de seguridad. La causa raíz fue que smb2_get_info_sec() verificaba el espacio del búfer usando ppntsd_size de xattr, mientras que build_sec_desc() a menudo sintetizaba un descriptor significativamente más grande a partir de ACL de POSIX. Este parche introduce smb_acl_sec_desc_scratch_len() para calcular con precisión el tamaño final del descriptor de antemano, realiza una verificación adecuada del búfer con smb2_calc_max_out_buf_len(), y utiliza asignación de tamaño exacto + fijación de iov.

30 Oct 2026, 13:18

Type Values Removed Values Added
References
  • () https://git.kernel.org/stable/c/533f84264e28c54a79257ea87d2f94a0fcc9a611 -

Information

Published : 2026-04-22 09:16

Updated : 2026-11-11 23:10


NVD link : CVE-2026-31432

Mitre link : CVE-2026-31432

CVE.ORG link : CVE-2026-31432


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-787

Out-of-bounds Write