CVE-2024-26980
JSON

8.2high

ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf

Severity
8.2high CVSS:3.1 by Linux
Exploit likelihood
0.62% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf If ->ProtocolId is SMB2_TRANSFORM_PROTO_NUM, smb2 request size validation could be skipped. if request size is smaller than sizeof(struct smb2_query_info_req), slab-out-of-bounds read can happen in smb2_allocate_rsp_buf(). This patch allocate response buffer after decrypting transform request. smb3_decrypt_req() will validate transform request size and avoid slab-out-of-bound in smb2_allocate_rsp_buf().

Affected

Product or packageVersionsReported by
Linux Linuxfrom 0626e6641f6b467447c81dd7678a69c66f7746cf before da21401372607c49972ea87a6edaafb36a17c325, from 0626e6641f6b467447c81dd7678a69c66f7746cf before b80ba648714e6d790d69610cf14656be222d0248, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 3160d9734453a40db248487f8204830879c207f1, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 0977f89722eceba165700ea384f075143f012085, from 0626e6641f6b467447c81dd7678a69c66f7746cf before c119f4ede3fa90a9463f50831761c28f989bfb20, 5.15
Not affected: before 5.15, from 5.15.159 up to 5.15.*, from 6.1.88 up to 6.1.*, from 6.6.29 up to 6.6.*, from 6.8.8 up to 6.8.*, from 6.9 up to *
CVE List
linux linux_kernelfrom 5.15 before 5.15.159, from 5.16 before 6.1.88, from 6.2 before 6.6.29, from 6.7 before 6.8.8, 6.9NVD

All scores

Linux8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf If ->ProtocolId is SMB2_TRANSFORM_PROTO_NUM, smb2 request size validation could be skipped. if request size is smaller than sizeof(struct smb2_query_info_req), slab-out-of-bounds read can happen in smb2_allocate_rsp_buf(). This patch allocate response buffer after decrypting transform request. smb3_decrypt_req() will validate transform request size and avoid slab-out-of-bound in smb2_allocate_rsp_buf().

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: ksmbd: corrige slab-out-of-bounds en smb2_allocate_rsp_buf Si ->ProtocolId es SMB2_TRANSFORM_PROTO_NUM, se podría omitir la validación del tamaño de la solicitud smb2. Si el tamaño de la solicitud es menor que sizeof (struct smb2_query_info_req), la lectura de losa fuera de los límites puede ocurrir en smb2_allocate_rsp_buf(). Este parche asigna un búfer de respuesta después de descifrar la solicitud de transformación. smb3_decrypt_req() validará el tamaño de la solicitud de transformación y evitará la losa fuera de los límites en smb2_allocate_rsp_buf().

References

Sources

SourceRecordLicence
CVE ListCVE-2024-26980 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-26980 changed 2026-08-04Public domain