From mboxrd@z Thu Jan 1 00:00:00 1970 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 B785A12F367 for ; Tue, 21 May 2024 14:20:37 +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=1716301237; cv=none; b=eh/Q9ik/VtKJF/IckeAg0uLc5sLkALySjJTMnHifGf5GsTyo70xgSb/a2F4bkKdsGqmLY9DMo0jAFM5eGtIouV4KqHeadz5+wmP1XDdxkAiCWPdLGqfH3PNwHLvCU7vHZ2sIrG9D4R6faUZrPgiRUgsG3gMJvVAFG6qNzB986oA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301237; c=relaxed/simple; bh=2VcMWKTSXgtwSH/RLHvbGWX7zZr/RNF+O9I5BCEhBZ4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RUmZfKAIO7cgVqf6e9bQoGQ75KRasuVf3hY4UKW+LgbAlpzhtw1O83N+nvyGZpW09blJ/l8MFetBJpFayCb95HEoJ1Db3XUkdG7Bk4OAwaFoG6pIAEjmKiXpxIwIGCNMkEyQeRSt/Ek/qmb7E0PNBZgX54Dd0uN3KZ+ecomvNPk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z0bc8n5S; 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="z0bc8n5S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEB9EC2BD11; Tue, 21 May 2024 14:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301237; bh=2VcMWKTSXgtwSH/RLHvbGWX7zZr/RNF+O9I5BCEhBZ4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=z0bc8n5So9N4FvH7SxHjXSLbX2KqNJZ4Yhjhnm5asaMENkFcUMLPg5+Hbj7CGHZKl tzTdq4M8sSjtv1vnRDFPkfGkzFRlWAJ4/vvzStqVAwoesducKcoToOXfaIr7BIvMdU rjf87QOzrwane3bBKOZUEuF5HNiDzPR8sdbR8SU8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47233: regulator: rt4801: Fix NULL pointer dereference if priv->enable_gpios is NULL Date: Tue, 21 May 2024 16:19:47 +0200 Message-ID: <2024052139-CVE-2021-47233-e795@gregkh> X-Mailer: git-send-email 2.45.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=1767; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2VcMWKTSXgtwSH/RLHvbGWX7zZr/RNF+O9I5BCEhBZ4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+a6uf/DBK2Cxvy7G2YM2kQ0WeJyd1389ujOVqjpJiV 69ybL3QEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOJ2sawYDkru0Wpw6f0g3KG ktK8bmtVZugqMsz3LJDKn56l9KDjTtTZnMbl9+3q64sA 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: regulator: rt4801: Fix NULL pointer dereference if priv->enable_gpios is NULL devm_gpiod_get_array_optional may return NULL if no GPIO was assigned. The Linux kernel CVE team has assigned CVE-2021-47233 to this issue. Affected and fixed versions =========================== Fixed in 5.10.46 with commit ba8a26a7ce86 Fixed in 5.12.13 with commit dc68f0c9e4a0 Fixed in 5.13 with commit cb2381cbecb8 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-2021-47233 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/regulator/rt4801-regulator.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/ba8a26a7ce8617f9f3d6230de34b2302df086b41 https://git.kernel.org/stable/c/dc68f0c9e4a001e02376fe87f4bdcacadb27e8a1 https://git.kernel.org/stable/c/cb2381cbecb81a8893b2d1e1af29bc2e5531df27