Review reviewHigh

CVE-2024-26980

Linux Linux, linux kernel

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

CVSS
8.2
EPSS
0.61%
46.1% percentile
CISA KEV
Not listed
Published
2024.05.01
PRIORITY ASSESSMENT

Review review

The CVSS severity warrants an early asset and exposure review.

Known exploitationNot established by KEV
Exploit probability0.61%
Technical severityCVSS 8.2

Vulnerability overview

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 and versions

Product
Linux Linux, linux kernel
Affected versions
>= 0626e6641f6b467447c81dd7678a69c66f7746cf < da21401372607c49972ea87a6edaafb36a17c325, >= 0626e6641f6b467447c81dd7678a69c66f7746cf < b80ba648714e6d790d69610cf14656be222d0248, >= 0626e6641f6b467447c81dd7678a69c66f7746cf < 3160d9734453a40db248487f8204830879c207f1, >= 0626e6641f6b467447c81dd7678a69c66f7746cf < 0977f89722eceba165700ea384f075143f012085, >= 0626e6641f6b467447c81dd7678a69c66f7746cf < c119f4ede3fa90a9463f50831761c28f989bfb20, >= 5.15, >= 5.15 < 5.15.159, >= 5.16 < 6.1.88, >= 6.2 < 6.6.29, >= 6.7 < 6.8.8, 6.9
Fixed versions
5.15.159, 6.1.88, 6.6.29, 6.8.8

Recommended response sequence

Confirm exposure before applying a vendor-supported change.

Full remediation guide
  1. 1
    Identify

    Confirm that Linux Linux, linux kernel and an affected version are present.

  2. 2
    Prioritize

    Combine exploitation signals with asset exposure and business criticality.

  3. 3
    Remediate

    Follow the vendor advisory or supported update path and preserve rollback options.

  4. 4
    Verify

    Recheck the version, service health, access paths, and relevant logs.

Technical data

CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
CWE
CWE-125