CVE-2024-36955: ALSA: hda: intel-sdw-acpi: fix usage of device_get_named_child_node()
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ALSA: hda: intel-sdw-acpi: fix usage of device_get_named_child_node()
The documentation for device_get_named_child_node() mentions this important point:
"
The caller is responsible for calling fwnode_handle_put() on the returned fwnode pointer.
"
Add fwnode_handle_put() to avoid a leaked reference.
The Linux kernel CVE team has assigned CVE-2024-36955 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.12 with commit 08c2a4bc9f2a and fixed in 5.15.159 with commit bd2d9641a39e Issue introduced in 5.12 with commit 08c2a4bc9f2a and fixed in 6.1.91 with commit 722d33c442e6 Issue introduced in 5.12 with commit 08c2a4bc9f2a and fixed in 6.6.31 with commit 7db626d2730d Issue introduced in 5.12 with commit 08c2a4bc9f2a and fixed in 6.8.10 with commit 7ef6ecf98ce3 Issue introduced in 5.12 with commit 08c2a4bc9f2a and fixed in 6.9 with commit c158cf914713
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2024-36955
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
sound/hda/intel-sdw-acpi.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/bd2d9641a39e6b5244230c4b41c4aca83b54b377 https://git.kernel.org/stable/c/722d33c442e66e4aabd3e778958d696ff3a2777e https://git.kernel.org/stable/c/7db626d2730d3d80fd31638169054b1e507f07bf https://git.kernel.org/stable/c/7ef6ecf98ce309b1f4e5a25cddd5965d01feea07 https://git.kernel.org/stable/c/c158cf914713efc3bcdc25680c7156c48c12ef6a