Bug 1226871 (CVE-2024-38606)

Summary: VUL-0: CVE-2024-38606: kernel: crypto: qat - validate slices count returned by FW
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: abergmann, mhocko
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/411362/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-38606: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-24 10:33:45 UTC
In the Linux kernel, the following vulnerability has been resolved:

crypto: qat - validate slices count returned by FW

The function adf_send_admin_tl_start() enables the telemetry (TL)
feature on a QAT device by sending the ICP_QAT_FW_TL_START message to
the firmware. This triggers the FW to start writing TL data to a DMA
buffer in memory and returns an array containing the number of
accelerators of each type (slices) supported by this HW.
The pointer to this array is stored in the adf_tl_hw_data data
structure called slice_cnt.

The array slice_cnt is then used in the function tl_print_dev_data()
to report in debugfs only statistics about the supported accelerators.
An incorrect value of the elements in slice_cnt might lead to an out
of bounds memory read.
At the moment, there isn't an implementation of FW that returns a wrong
value, but for robustness validate the slice count array returned by FW.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-38606
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-38606.mbox
https://git.kernel.org/stable/c/e57ed345e2e6043629fc74aa5be051415dcc4f77
https://git.kernel.org/stable/c/9b284b915e2a5e63ca133353f8c456eff4446f82
https://git.kernel.org/stable/c/483fd65ce29317044d1d00757e3fd23503b6b04c
https://www.cve.org/CVERecord?id=CVE-2024-38606
https://bugzilla.redhat.com/show_bug.cgi?id=2293358
Comment 1 Alexander Bergmann 2024-06-24 10:35:06 UTC
None of our SLE kernels is affected by this issue.
Comment 3 Andrea Mattiazzo 2024-07-01 13:40:52 UTC
All done, closing.