Lucene search

K
cvelistLinuxCVELIST:CVE-2024-38606
HistoryJun 19, 2024 - 1:48 p.m.

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

2024-06-1913:48:16
Linux
www.cve.org
2
linux kernel
vulnerability
qat firmware

0.0004 Low

EPSS

Percentile

15.7%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/crypto/intel/qat/qat_common/adf_gen4_tl.c",
      "drivers/crypto/intel/qat/qat_common/adf_telemetry.c",
      "drivers/crypto/intel/qat/qat_common/adf_telemetry.h"
    ],
    "versions": [
      {
        "version": "69e7649f7cc2",
        "lessThan": "e57ed345e2e6",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "69e7649f7cc2",
        "lessThan": "9b284b915e2a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "69e7649f7cc2",
        "lessThan": "483fd65ce293",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/crypto/intel/qat/qat_common/adf_gen4_tl.c",
      "drivers/crypto/intel/qat/qat_common/adf_telemetry.c",
      "drivers/crypto/intel/qat/qat_common/adf_telemetry.h"
    ],
    "versions": [
      {
        "version": "6.8",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.8",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.12",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.3",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10-rc1",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

0.0004 Low

EPSS

Percentile

15.7%

Related for CVELIST:CVE-2024-38606