Bug 1226176 (CVE-2023-39176)

Summary: VUL-0: CVE-2023-39176: kernel: Linux Kernel ksmbd Transform Header Out-Of-Bounds Read Information Disclosure Vulnerability
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: andrea.mattiazzo, vasant.karasulli
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/410023/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-39176:5.8:(AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-06-11 08:22:32 UTC
This vulnerability allows remote attackers to disclose sensitive information on affected installations of Linux Kernel. Authentication is not required to exploit this vulnerability. However, only systems with ksmbd enabled are vulnerable.

The specific flaw exists within the parsing of SMB2 requests that have a transform header. The issue results from the lack of proper validation of user-supplied data, which can result in a read past the end of an allocated buffer. An attacker can leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of the kernel.

References:
https://www.zerodayinitiative.com/advisories/ZDI-24-586/
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-39176
https://lore.kernel.org/lkml/CAH2r5mv+Sy5mrZThrQUf1na-mg-B9DiLd5fkYs9sPo97GWirCA@mail.gmail.com/

Patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=374a7f47bf401441edff0a64465e61326bf70a82
Comment 1 Andrea Mattiazzo 2024-06-11 08:30:33 UTC
Up-stream commit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5aa4fda5aa9c2a5a7bac67b4a12b089ab81fee3c

Previous patch link include the fix also for bug 1226175
Comment 3 Andrea Mattiazzo 2024-06-14 09:39:13 UTC
All done, closing.