Bug 2300408 (CVE-2024-41039) - CVE-2024-41039 kernel: firmware: cs_dsp: Fix overflow checking of wmfw header
Summary: CVE-2024-41039 kernel: firmware: cs_dsp: Fix overflow checking of wmfw header
Keywords:
Status: NEW
Alias: CVE-2024-41039
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2301552
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-29 15:33 UTC by OSIDB Bzimport
Modified: 2024-11-13 00:25 UTC (History)
4 users (show)

Fixed In Version: kernel 6.1.100, kernel 6.6.41, kernel 6.9.10, kernel 6.10
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:7043 0 None None None 2024-09-24 09:43:22 UTC
Red Hat Product Errata RHBA-2024:7198 0 None None None 2024-09-26 09:49:03 UTC
Red Hat Product Errata RHBA-2024:7236 0 None None None 2024-09-26 14:37:54 UTC
Red Hat Product Errata RHBA-2024:7637 0 None None None 2024-10-03 14:46:11 UTC
Red Hat Product Errata RHBA-2024:8227 0 None None None 2024-10-17 06:46:25 UTC
Red Hat Product Errata RHSA-2024:7000 0 None None None 2024-09-24 02:35:05 UTC
Red Hat Product Errata RHSA-2024:7001 0 None None None 2024-09-24 00:39:41 UTC
Red Hat Product Errata RHSA-2024:9315 0 None None None 2024-11-12 09:36:37 UTC
Red Hat Product Errata RHSA-2024:9497 0 None None None 2024-11-13 00:25:26 UTC
Red Hat Product Errata RHSA-2024:9498 0 None None None 2024-11-13 00:11:55 UTC

Description OSIDB Bzimport 2024-07-29 15:33:15 UTC
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.

Comment 1 Mauro Matteo Cascella 2024-07-30 09:17:14 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024072924-CVE-2024-41039-b3bc@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 09:17:35 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301552]

Comment 131 errata-xmlrpc 2024-09-24 00:39:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:7001 https://access.redhat.com/errata/RHSA-2024:7001

Comment 132 errata-xmlrpc 2024-09-24 02:35:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:7000 https://access.redhat.com/errata/RHSA-2024:7000

Comment 133 errata-xmlrpc 2024-11-12 09:36:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:9315 https://access.redhat.com/errata/RHSA-2024:9315

Comment 134 errata-xmlrpc 2024-11-13 00:11:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:9498 https://access.redhat.com/errata/RHSA-2024:9498

Comment 135 errata-xmlrpc 2024-11-13 00:25:24 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:9497 https://access.redhat.com/errata/RHSA-2024:9497


Note You need to log in before you can comment on or make changes to this bug.