CVE-2026-31612

In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate EaNameLength in smb2_get_ea() smb2_get_ea() reads ea_req->EaNameLength from the client request and passes it directly to strncmp() as the comparison length without verifying that the length of the name really is the size of the input buffer received. Fix this up by properly checking the size of the name based on the value received and the overall size of the request, to prevent a later strncmp() call to use the length as a "trusted" size of the buffer. Without this check, uninitialized heap values might be slowly leaked to the client.
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:*:*:*:*:*:*:*:*

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: validar EaNameLength en smb2_get_ea() smb2_get_ea() lee ea_req -> EaNameLength de la solicitud del cliente y lo pasa directamente a strncmp() como la longitud de comparación sin verificar que la longitud del nombre realmente sea el tamaño del búfer de entrada recibido. Esto se soluciona comprobando correctamente el tamaño del nombre basándose en el valor recibido y el tamaño total de la solicitud, para evitar que una llamada posterior a strncmp() use la longitud como un tamaño ’confiable’ del búfer. Sin esta comprobación, los valores de pila no inicializados podrían filtrarse lentamente al cliente.

15 Oct 2026, 02:19

Type Values Removed Values Added
References
  • () https://cert-portal.siemens.com/productcert/html/ssa-784472.html -

Information

Published : 2026-04-24 15:16

Updated : 2026-11-11 23:10


NVD link : CVE-2026-31612

Mitre link : CVE-2026-31612

CVE.ORG link : CVE-2026-31612


JSON object : View

Products Affected

linux

  • linux_kernel