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 8BEE08460 for ; Wed, 18 Jun 2025 09:29:01 +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=1750238941; cv=none; b=cpeiTypFSFTFYB5YFuzVufWuAKvrQWQzsCU0dvHRcxMLRyIJ1vfkN6TB12ocVerlZjiWFR9TcbugBHtXEQQEeRbM5QefLS429AO7DI85rPoTPA+VJbfiWPuMQrRZMUak3knc8WqBk6QQ2XExoJNf/4nmSXePBoUZ75dCsmDFxT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750238941; c=relaxed/simple; bh=h86goan+y3rCHxku/e3TM5J/MOgbUjqpAXTqpZJOpV8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Tz8evcT3aPsL0NhslcAS0i0DN0njP9qrrF51fgddwIz/kCme0NFns4lR036lcq0awjuGDShvoyLN7YH+PJdlWVJ0gs9AsfdeWEtx5br684SbceUp+wqIBRQxXu4pKeTFEq8PZwKFw0M6OY79+Wx9ytcsRcUhBugQTpH4ts1Z4Dg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nXXGl6e/; 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="nXXGl6e/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 927C9C4CEE7; Wed, 18 Jun 2025 09:29:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750238941; bh=h86goan+y3rCHxku/e3TM5J/MOgbUjqpAXTqpZJOpV8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nXXGl6e/ecEeKyVLjCPyEqW+5RyAsOIokUDIrsUN5bqz1A+mCBbK1aOxdOKCzKQV1 91pB6g87UQXA6EaYfM+CfB97HuN3nzt6IhEsMV8/9jZBaBOIYpf9teDaloFxu1aESd BAls30BhrYLovKm3vHpMILq6gAKWo5JzP5C81cBE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38007: HID: uclogic: Add NULL check in uclogic_input_configured() Date: Wed, 18 Jun 2025 11:28:41 +0200 Message-ID: <2025061841-CVE-2025-38007-feb8@gregkh> X-Mailer: git-send-email 2.49.0 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=2857; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sj6wTeizvlcRdKJ+LwvpenwCHYimxtZFvKUt8hLv6bk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBbSdlKrtVpzNf0XLwlZyvWBypcUr87JYQ+WcrXr26K jfhnu7BjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIpBrDPFOjT4/ib9dtfsP2 hqfaQEqZLbYximGufH7fYuN305ofCuxge/P/Qrf3vcwUAA== 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: uclogic: Add NULL check in uclogic_input_configured() devm_kasprintf() returns NULL when memory allocation fails. Currently, uclogic_input_configured() does not check for this case, which results in a NULL pointer dereference. Add NULL check after devm_kasprintf() to prevent this issue. The Linux kernel CVE team has assigned CVE-2025-38007 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.53 with commit f283805d984343b2f216e2f4c6c7af265b9542ae and fixed in 6.1.140 with commit 01b76cc8ca243fc3376b035aa326bbc4f03d384b Issue introduced in 6.6 with commit dd613a4e45f8d35f49a63a2064e5308fa5619e29 and fixed in 6.6.92 with commit ad6caaf29bc26a48b1241ce82561fcbcf0a75aa9 Issue introduced in 6.6 with commit dd613a4e45f8d35f49a63a2064e5308fa5619e29 and fixed in 6.12.30 with commit 94e7272b636a0677082e0604609e4c471e0a2caf Issue introduced in 6.6 with commit dd613a4e45f8d35f49a63a2064e5308fa5619e29 and fixed in 6.14.8 with commit b616453d719ee1b8bf2ea6f6cc6c6258a572a590 Issue introduced in 6.6 with commit dd613a4e45f8d35f49a63a2064e5308fa5619e29 and fixed in 6.15 with commit bd07f751208ba190f9b0db5e5b7f35d5bb4a8a1e Issue introduced in 6.4.16 with commit 4c2707dfee5847dc0b5ecfbe512c29c93832fdc4 Issue introduced in 6.5.3 with commit 58f0d1c0e494a88f301bf455da7df4366f179bbb 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-38007 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-uclogic-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/01b76cc8ca243fc3376b035aa326bbc4f03d384b https://git.kernel.org/stable/c/ad6caaf29bc26a48b1241ce82561fcbcf0a75aa9 https://git.kernel.org/stable/c/94e7272b636a0677082e0604609e4c471e0a2caf https://git.kernel.org/stable/c/b616453d719ee1b8bf2ea6f6cc6c6258a572a590 https://git.kernel.org/stable/c/bd07f751208ba190f9b0db5e5b7f35d5bb4a8a1e