Skip to contentSkip to conversation

CVE-2024-50189: HID: amd_sfh: Switch to device-managed dmam_alloc_coherent()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 8, 2024

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

HID: amd_sfh: Switch to device-managed dmam_alloc_coherent()

Using the device-managed version allows to simplify clean-up in probe() error path.

Additionally, this device-managed ensures proper cleanup, which helps to resolve memory errors, page faults, btrfs going read-only, and btrfs disk corruption.

The Linux kernel CVE team has assigned CVE-2024-50189 to this issue.

Affected and fixed versions
===========================

Issue introduced in 5.11 with commit 4b2c53d93a4b and fixed in 5.15.168 with commit 8c6ad37e5882 Issue introduced in 5.11 with commit 4b2c53d93a4b and fixed in 6.1.113 with commit 4cd9c5a0fcad Issue introduced in 5.11 with commit 4b2c53d93a4b and fixed in 6.6.57 with commit 1c3b4c90479a Issue introduced in 5.11 with commit 4b2c53d93a4b and fixed in 6.11.4 with commit 9dfee956f53e Issue introduced in 5.11 with commit 4b2c53d93a4b and fixed in 6.12-rc4 with commit c56f9ecb7fb6

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-50189

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:
drivers/hid/amd-sfh-hid/amd_sfh_client.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/8c6ad37e5882073cab84901a31da9cb22f316276
	https://git.kernel.org/stable/c/4cd9c5a0fcadc39a05c978a01e15e0d1edc4be93
	https://git.kernel.org/stable/c/1c3b4c90479aa0375ec98fe1a802993ff96a5f47
	https://git.kernel.org/stable/c/9dfee956f53eea96d93ef1e13ab4ce020f4c58b3
	https://git.kernel.org/stable/c/c56f9ecb7fb6a3a90079c19eb4c8daf3bbf514b3