What’s Vulnerable › Vulnerabilities

CVE-2024-26936: ksmbd: validate request buffer size in smb2_allocate_rsp_buf()

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate request buffer size in smb2_allocate_rsp_buf() The response buffer should be allocated in smb2_allocate_rsp_buf before validating request. But the fields in payload as well as smb2 header is used in smb2_allocate_rsp_buf(). This patch add simple buffer size validation to avoid potencial out-of-bounds in request buffer.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.15.159, 6.1.88, 6.6.29, 6.8.8. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-26936 or the next vulnerability affects your stack