Skip to content
CVE PROGRAM SOURCE RECORD8.2 High

CVE-2024-26980

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

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 0626e6641f6b467447c81dd7678a69c66f7746cf to < da21401372607c49972ea87a6edaafb36a17c325affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to < b80ba648714e6d790d69610cf14656be222d0248affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to < 3160d9734453a40db248487f8204830879c207f1affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to < 0977f89722eceba165700ea384f075143f012085affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to < c119f4ede3fa90a9463f50831761c28f989bfb20affected

Linux Linux

Default version status: affected

  • 5.15affected
  • 0 to < 5.15unaffected
  • 5.15.159 to ≤ 5.15.*unaffected
  • 6.1.88 to ≤ 6.1.*unaffected
  • 6.6.29 to ≤ 6.6.*unaffected
  • 6.8.8 to ≤ 6.8.*unaffected
  • 6.9 to ≤ *unaffected

References