Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB7E01DB125 for ; Mon, 28 Jul 2025 11:23:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753701804; cv=none; b=CCcPtf+3ItZfFUkAEoQjWZJ6BVGoHrOTv1GVSWr1KXbRmSTpHgO/yZlpBwGF9wYtIX6hmBYTH6pHmnwYnUUDidd39R8yDXGKFll3CNTrK9W5wEtQ2bHjt+43P/TUaynd4xKJy61clVEvK1rRUeFicdwSvOKl7XDJCfrxysF+V7s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753701804; c=relaxed/simple; bh=GHdbyOs4UnUwIiquUsReozZDRJTB/YL+KkBklZ946Y4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VHgw7UNaX1gPyXpFussNH18BQC5HlEdYUGdg7HX/AvPZtrv/flnP3uJ7NxQZ4cBZFS81seZzibWldBGupckuoyimOk1eyMeLnED26KwLTuKAFzeP65tqhn1rabk8Gx0Bk7uwkFz9ql/nDYJMptN7fGu47G6lTxRaj7mN37ecasQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n32mSqK2; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="n32mSqK2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E98AC4CEF6; Mon, 28 Jul 2025 11:23:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753701804; bh=GHdbyOs4UnUwIiquUsReozZDRJTB/YL+KkBklZ946Y4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=n32mSqK2BpniK40y4INuj6JxxFICs7WypvneGjnglJLgBlXgeHxBgUqWbnBBXPh0D ZbydspbLX7Eoj5XMRjqCA0Tld9u/Tl7kNCLtcpuLDdK7MraJeLPhhGdAT749rY5l6w JaeiZ6mpZNukDOECnrRBRCZkCKPpedNehsw/CbHc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38495: HID: core: ensure the allocated report buffer can contain the reserved report ID Date: Mon, 28 Jul 2025 13:22:37 +0200 Message-ID: <2025072818-CVE-2025-38495-3b28@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2328; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YpyOvl/WWGGmpMMYcvpZ8lAIcseTwGGVJJ+mAGRkb48=; b=owGbwMvMwCRo6H6F97bub03G02pJDBntsVn/CpPMHf+vFEv/WRLpUVdlvbqKc9lb6/0cUm/NN P+3mv/siGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIk0XmCYp/1u2rnGF2+rLYX2 z0ibP1eD5e/pFIb5+Y3CxziPeewziKmYtoCJ2V0/TCMPAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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