CVE-2024-38606 crypto: qat - validate slices count returned by FW

High 7.1 Published Updated

A missing validation in the Linux kernel QAT driver could allow an out-of-bounds memory read, potentially disclosing sensitive kernel memory.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-38606?

CVE-2024-38606 is a high-severity vulnerability in Linux kernel, published on 19 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-125

Which versions are affected by CVE-2024-38606?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-38606?

Apply the vendor's patch.

Is CVE-2024-38606 being exploited?

There is no known exploitation of CVE-2024-38606 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-38606, DEBIAN-CVE-2024-38606, GHSA-r8c3-h27x-qrpx, UBUNTU-CVE-2024-38606.

Is CVE-2024-38606 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free