CVE
CVE-2024-41039
CNA description
In the Linux kernel, the following vulnerability has been resolved: firmware: cs_dsp: Fix overflow checking of wmfw header Fix the checking that firmware file buffer is large enough for the wmfw header, to prevent overrunning the buffer. The original code tested that the firmware data buffer contained enough bytes for the sums of the size of the structs wmfw_header + wmfw_adsp1_sizes + wmfw_footer But wmfw_adsp1_sizes is only used on ADSP1 firmware. For ADSP2 and Halo Core the equivalent struct is wmfw_adsp2_sizes, which is 4 bytes longer. So the length check didn't guarantee that there are enough bytes in the firmware buffer for a header with wmfw_adsp2_sizes. This patch splits the length check into three separate parts. Each of the wmfw_header, wmfw_adsp?_sizes and wmfw_footer are checked separately before they are used.
Affected versions
All Linux kernel vulnerabilities →
- 6.10-rc7This version only
- 6.10-rc6This version only
- 6.10-rc5This version only
- 6.10-rc4This version only
- 6.10-rc3This version only
- 6.10-rc2This version only
- 6.10-rc1This version only
- ≥ 6.7, < 6.9.10Fixed in 6.9.10
- ≥ 6.2, < 6.6.41Fixed in 6.6.41
- ≥ 5.16, < 6.1.100Fixed in 6.1.100
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.