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 845D5187332 for ; Thu, 27 Feb 2025 02:19: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=1740622741; cv=none; b=MSuTkf/lgBWoDNTyz9RKMeOa3xDGHAJ+O2+lifpDiFohCIXBOCoKxcL/0LB789c0RzFEjolmY4UJCL5EHsn4bAqzSX56nGCpB+TcGI0ipHm6XPc9JGn1W5HkONurGXGNnC6EDukDBHvlvMrnlzhI45e9lzXSolBw7WFYURCZvG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622741; c=relaxed/simple; bh=2pJBnPQ3ddTutdaHHuczs++jg6JiZbIJaeCHA6xCbdA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XOso42Uo56eTmHFO9+CU5OM6uNTVcNvVNOEpNMzsmfJoe73ywCPw1KM7jFDlwoi/42rORN3K/Gxo2qcvNEe8Mrxz05/TIC4o2O9hMwJn5Oo8uSnFRF1xgmLqQ5i1+qS4tibWAeyNxMqia3jxVCrDrl1kDpWgUM6FxDLxgLee/1M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TYrwnHyh; 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="TYrwnHyh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C729C4CED6; Thu, 27 Feb 2025 02:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622741; bh=2pJBnPQ3ddTutdaHHuczs++jg6JiZbIJaeCHA6xCbdA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TYrwnHyhOt2/w2D8NQBQI9jBk7j7eKXx6qIuIkkkCxhP9KR9wDELVv7BlZZZ9MSzm LJ7gUQrSz3OvAxLy4kyB7z3yHpAZghBDr6hzWguhhUezmnjSHhIKaIpvqxjadF8UxV 5SON8Hx9EAEqQBqH4gP4Krjr/cKIU1LDb/PbqHG0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58021: HID: winwing: Add NULL check in winwing_init_led() Date: Wed, 26 Feb 2025 18:17:10 -0800 Message-ID: <2025022603-CVE-2024-58021-0769@gregkh> X-Mailer: git-send-email 2.48.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=2197; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2pJBnPQ3ddTutdaHHuczs++jg6JiZbIJaeCHA6xCbdA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T8tv8e8JdTj5yLw3oorbIbpuvbPB2g2XW2c7GUbnM zsqvXrQEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5tIlhQSvX0t8h5Rvsvk7s P/sv7hb/913c7xjmh1/Vsd0Yt8rMacK9q0wWUeXKDlWKAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: HID: winwing: Add NULL check in winwing_init_led() devm_kasprintf() can return a NULL pointer on failure,but this returned value in winwing_init_led() is not checked. Add NULL check in winwing_init_led(), to handle kernel NULL pointer dereference error. The Linux kernel CVE team has assigned CVE-2024-58021 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 266c990debad2f9589c7a412e897a8e312b09766 and fixed in 6.12.16 with commit b99dbdee8a89c44d03ae9830ab19f31e124a3f32 Issue introduced in 6.10 with commit 266c990debad2f9589c7a412e897a8e312b09766 and fixed in 6.13.4 with commit 4001f6f79183b8868d80dd2036dfb4ea3d325e8f Issue introduced in 6.10 with commit 266c990debad2f9589c7a412e897a8e312b09766 and fixed in 6.14-rc3 with commit 45ab5166a82d038c898985b0ad43ead69c1f9573 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-58021 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-winwing.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/b99dbdee8a89c44d03ae9830ab19f31e124a3f32 https://git.kernel.org/stable/c/4001f6f79183b8868d80dd2036dfb4ea3d325e8f https://git.kernel.org/stable/c/45ab5166a82d038c898985b0ad43ead69c1f9573