[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025072818-CVE-2025-38495-3b28@gregkh>
Date: Mon, 28 Jul 2025 13:22:37 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-38495: HID: core: ensure the allocated report buffer can contain the reserved report ID
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
HID: core: ensure the allocated report buffer can contain the reserved report ID
When the report ID is not used, the low level transport drivers expect
the first byte to be 0. However, currently the allocated buffer not
account for that extra byte, meaning that instead of having 8 guaranteed
bytes for implement to be working, we only have 7.
The Linux kernel CVE team has assigned CVE-2025-38495 to this issue.
Affected and fixed versions
===========================
Fixed in 6.1.147 with commit d3ed1d84a84538a39b3eb2055d6a97a936c108f2
Fixed in 6.6.100 with commit fcda39a9c5b834346088c14b1374336b079466c1
Fixed in 6.12.40 with commit a262370f385e53ff7470efdcdaf40468e5756717
Fixed in 6.15.8 with commit a47d9d9895bad9ce0e840a39836f19ca0b2a343a
Fixed in 6.16 with commit 4f15ee98304b96e164ff2340e1dfd6181c3f42aa
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-38495
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-core.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/d3ed1d84a84538a39b3eb2055d6a97a936c108f2
https://git.kernel.org/stable/c/fcda39a9c5b834346088c14b1374336b079466c1
https://git.kernel.org/stable/c/a262370f385e53ff7470efdcdaf40468e5756717
https://git.kernel.org/stable/c/a47d9d9895bad9ce0e840a39836f19ca0b2a343a
https://git.kernel.org/stable/c/4f15ee98304b96e164ff2340e1dfd6181c3f42aa
Powered by blists - more mailing lists