firmware: cs_dsp: Validate payload length before processing block (Linux Linux)

CVE-2024-42237
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 11 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: firmware: cs_dsp: Validate payload length before processing block Move the payload length check in cs_dsp_load() and cs_dsp_coeff_load() to be done before the block is processed. The check that the length of a block payload does not exceed the number of remaining bytes in the firwmware file buffer was being done near the end of the loop iteration. However, some code before that check used the length field without validating it.

Weaknesses (CWE)

  • CWE-834 — Excessive Iteration

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected f6bc909e7673c30abcbdb329e7d0aa2e83c103d7 < 259955eca9b7acf1299b1ac077d8cfbe12df35d8 ; affected f6bc909e7673c30abcbdb329e7d0aa2e83c103d7 < 3a9cd924aec1288d675df721f244da4dd7e16cff ; affected f6bc909e7673c30abcbdb329e7d0aa2e83c103d7 < 71d9e313d8f7e18c543a9c80506fe6b1eb1fe0c8 ; affected f6bc909e7673c30abcbdb329e7d0aa2e83c103d7 < 6598afa9320b6ab13041616950ca5f8f938c0cf1
Linux · Linuxaffected 5.16 ; unaffected 0 < 5.16 ; unaffected 6.1.100 ≤ 6.1.* ; unaffected 6.6.41 ≤ 6.6.* ; unaffected 6.9.10 ≤ 6.9.* ; unaffected 6.10 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD