CVE-2024-26980

critical

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().

References

https://git.kernel.org/stable/c/c119f4ede3fa90a9463f50831761c28f989bfb20

https://git.kernel.org/stable/c/b80ba648714e6d790d69610cf14656be222d0248

https://git.kernel.org/stable/c/3160d9734453a40db248487f8204830879c207f1

https://git.kernel.org/stable/c/0977f89722eceba165700ea384f075143f012085

Details

Source: Mitre, NVD

Published: 2024-05-01

Updated: 2024-05-13

Risk Information

CVSS v2

Base Score: 7.2

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

Severity: High

CVSS v3

Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Severity: Critical