CVE-2024-26980

published 1 May 2024 · updated 5 Aug 2026

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

8.2HighCVSS 8.2EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel 0977f89722eceba165700ea384f075143f012085, Kernel 3160d9734453a40db248487f8204830879c207f1, Kernel b80ba648714e6d790d69610cf14656be222d0248 and 2 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.15, >=0626e6641f6b467447c81dd7678a69c66f7746cf <0977f89722eceba165700ea384f075143f012085, >=0626e6641f6b467447c81dd7678a69c66f7746cf <3160d9734453a40db248487f8204830879c207f1, >=0626e6641f6b467447c81dd7678a69c66f7746cf <b80ba648714e6d790d69610cf14656be222d0248, >=0626e6641f6b467447c81dd7678a69c66f7746cf <c119f4ede3fa90a9463f50831761c28f989bfb20, >=0626e6641f6b467447c81dd7678a69c66f7746cf <da21401372607c49972ea87a6edaafb36a17c3250977f89722eceba165700ea384f075143f012085, 3160d9734453a40db248487f8204830879c207f1, b80ba648714e6d790d69610cf14656be222d0248, c119f4ede3fa90a9463f50831761c28f989bfb20, da21401372607c49972ea87a6edaafb36a17c325

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-26980 severity on Zeptric[![CVE-2024-26980](https://zeptric.io/badge/cve/CVE-2024-26980.svg)](https://zeptric.io/cve/CVE-2024-26980)