Bug 1226788 (CVE-2024-38562)

Summary: VUL-0: CVE-2024-38562: kernel: wifi: nl80211: avoid address calculations via out of bounds array indexing
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: camila.matos, gabriel.bertazi
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/411451/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-38562:5.5:(AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-06-21 14:34:56 UTC
In the Linux kernel, the following vulnerability has been resolved:

wifi: nl80211: Avoid address calculations via out of bounds array indexing

Before request->channels[] can be used, request->n_channels must be set.
Additionally, address calculations for memory after the "channels" array
need to be calculated from the allocation base ("request") rather than
via the first "out of bounds" index of "channels", otherwise run-time
bounds checking will throw a warning.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-38562
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-38562.mbox
https://git.kernel.org/stable/c/ed74398642fcb19f6ff385c35a7d512c6663e17b
https://git.kernel.org/stable/c/4e2a5566462b53db7d4c4722da86eedf0b8f546c
https://git.kernel.org/stable/c/8fa4d56564ee7cc2ee348258d88efe191d70dd7f
https://git.kernel.org/stable/c/838c7b8f1f278404d9d684c34a8cb26dc41aaaa1
https://www.cve.org/CVERecord?id=CVE-2024-38562
https://bugzilla.redhat.com/show_bug.cgi?id=2293431