Bug 1219102 (CVE-2024-22705)

Summary: VUL-0: CVE-2024-22705: kernel: out-of-bounds access smb2_get_data_area_len
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: P5 - None CC: andrea.mattiazzo, kernel-bugs
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/391994/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-22705:4.3:(AV:A/AC:L/PR:N/UI:N/S:U/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-01-23 16:47:48 UTC
An issue was discovered in ksmbd in the Linux kernel before 6.6.10. smb2_get_data_area_len in fs/smb/server/smb2misc.c can cause an smb_strndup_from_utf16 out-of-bounds access because the relationship between Name data and CreateContexts data is mishandled.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-22705
https://www.cve.org/CVERecord?id=CVE-2024-22705
https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.10
https://bugzilla.redhat.com/show_bug.cgi?id=2259864

Patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d10c77873ba1e9e6b91905018e29e196fd5f863d