Bug 1223630 (CVE-2024-26980) - VUL-0: CVE-2024-26980: kernel: ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf
Summary: VUL-0: CVE-2024-26980: kernel: ksmbd: fix slab-out-of-bounds in smb2_allocate...
Status: NEW
Alias: CVE-2024-26980
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/403751/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-26980:5.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-02 08:28 UTC by SMASH SMASH
Modified: 2024-05-23 17:33 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-05-02 08:28:08 UTC
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:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-26980
https://www.cve.org/CVERecord?id=CVE-2024-26980
https://git.kernel.org/stable/c/0977f89722eceba165700ea384f075143f012085
https://git.kernel.org/stable/c/3160d9734453a40db248487f8204830879c207f1
https://git.kernel.org/stable/c/b80ba648714e6d790d69610cf14656be222d0248
https://git.kernel.org/stable/c/c119f4ede3fa90a9463f50831761c28f989bfb20
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-26980.mbox
https://bugzilla.redhat.com/show_bug.cgi?id=2278341