ASoC: SOF: Add some bounds checking to firmware data (Linux Linux)

CVE-2024-26927
HIGH 8.4

At a glance

Source
NVD
EPSS
EPSS 0.29 % · percentile 22 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: Add some bounds checking to firmware data Smatch complains about "head->full_size - head->header_size" can underflow. To some extent, we're always going to have to trust the firmware a bit. However, it's easy enough to add a check for negatives, and let's add a upper bounds check as well.

Weaknesses (CWE)

  • CWE-120 — Buffer Copy without Checking Size of Input

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.4CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP
CVSS 3.1HIGH 8.4CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected d2458baa799fff377660d86323dd20a3f4deecb4 < d133d67e7e724102d1e53009c4f88afaaf3e167c ; affected d2458baa799fff377660d86323dd20a3f4deecb4 < ced7df8b3c5c4751244cad79011e86cf1f809153 ; affected d2458baa799fff377660d86323dd20a3f4deecb4 < 044e220667157fb9d59320341badec59cf45ba48 ; affected d2458baa799fff377660d86323dd20a3f4deecb4 < 9eeb8e1231f6450c574c1db979122e171a1813ab ; affected d2458baa799fff377660d86323dd20a3f4deecb4 < 98f681b0f84cfc3a1d83287b77697679e0398306
Linux · Linuxaffected 5.19 ; unaffected 0 < 5.19 ; unaffected 6.1.83 ≤ 6.1.* ; unaffected 6.6.23 ≤ 6.6.* ; unaffected 6.7.11 ≤ 6.7.* ; unaffected 6.8.2 ≤ 6.8.*

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