CVE-2025-38540: HID: quirks: Add quirk for 2 Chicony Electronics HP 5MP Cameras
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
HID: quirks: Add quirk for 2 Chicony Electronics HP 5MP Cameras
The Chicony Electronics HP 5MP Cameras (USB ID 04F2:B824 & 04F2:B82C) report a HID sensor interface that is not actually implemented. Attempting to access this non-functional sensor via iio_info causes system hangs as runtime PM tries to wake up an unresponsive sensor.
Add these 2 devices to the HID ignore list since the sensor interface is non-functional by design and should not be exposed to userspace.
The Linux kernel CVE team has assigned CVE-2025-38540 to this issue.
Affected and fixed versions
===========================
Fixed in 5.4.296 with commit 35f1a5360ac68d9629abbb3930a0a07901cba296 Fixed in 5.10.240 with commit 7ac00f019698f614a49cce34c198d0568ab0e1c2 Fixed in 5.15.189 with commit 1b297ab6f38ca60a4ca7298b297944ec6043b2f4 Fixed in 6.1.146 with commit 2b0931eee48208c25bb77486946dea8e96aa6a36 Fixed in 6.6.99 with commit 3ce1d87d1f5d80322757aa917182deb7370963b9 Fixed in 6.12.39 with commit c72536350e82b53a1be0f3bfdf1511bba2827102 Fixed in 6.15.7 with commit a2a91abd19c574b598b1c69ad76ad9c7eedaf062 Fixed in 6.16 with commit 54bae4c17c11688339eb73a04fd24203bb6e7494
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-2025-38540
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/hid-ids.h
drivers/hid/hid-quirks.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/35f1a5360ac68d9629abbb3930a0a07901cba296 https://git.kernel.org/stable/c/7ac00f019698f614a49cce34c198d0568ab0e1c2 https://git.kernel.org/stable/c/1b297ab6f38ca60a4ca7298b297944ec6043b2f4 https://git.kernel.org/stable/c/2b0931eee48208c25bb77486946dea8e96aa6a36 https://git.kernel.org/stable/c/3ce1d87d1f5d80322757aa917182deb7370963b9 https://git.kernel.org/stable/c/c72536350e82b53a1be0f3bfdf1511bba2827102 https://git.kernel.org/stable/c/a2a91abd19c574b598b1c69ad76ad9c7eedaf062 https://git.kernel.org/stable/c/54bae4c17c11688339eb73a04fd24203bb6e7494