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 CDB391428E8 for ; Tue, 21 May 2024 14:39:29 +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=1716302369; cv=none; b=JeHMRBQe5gxDvZA/IGSxkd9YaeRZRjiJhy9/lUYQk422ockpNnIa5oBbJiSfPq7KsSznhrzjdtfXw7H907R7rmbT65SjFj1gvbqEKsRwymM7WvAAtGRHxIKTq5FxxwRQ6tW+Rxa6kvl278f5mkoxHSer/lKViF8Dtn/T90u3OzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302369; c=relaxed/simple; bh=8hLzejDjksrRfYoCG4r4twapw5Jh+p9nzDVT5DQiubE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bGmWCTjktD+h3wBO53nQWGPrnZwgyN9bHp9IGRPT7Y/vCC8WLAwWxulGybtdngK23nrZeuiJgsU6CJBX+gMdCSAzyjQiJoy8K8BMkfO2UYDHS65w8gM0nQE14YSfJwxj2IA7YGOWBrTxtolr7lHEKhW7hGjpaIE9tG8p61KNYJ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nKjbg07X; 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="nKjbg07X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AE23C2BD11; Tue, 21 May 2024 14:39:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302369; bh=8hLzejDjksrRfYoCG4r4twapw5Jh+p9nzDVT5DQiubE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nKjbg07X50Bs1NHQ2A/Lb9M6yI5sT1/T8RLkOHasYJEEhh/iLW1ilgeFt9Cl63aNL SA6oek7phSVyeBbV4BPBJSK/CnvUv4nGH0awtzvUCjH4b1D2RMkK4ihTREkOlwOoEi MYqHuHBhWSDlrLUIBHXdradrHf/gIUMXPYgssUUI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47331: usb: common: usb-conn-gpio: fix NULL pointer dereference of charger Date: Tue, 21 May 2024 16:36:05 +0200 Message-ID: <2024052134-CVE-2021-47331-283e@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=2022; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8hLzejDjksrRfYoCG4r4twapw5Jh+p9nzDVT5DQiubE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G81zb3uKTef6mHzkpMc+th1zVBXOBeud23ejru7dJ r7lPyvXdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEZk9imO8cpv4saq7d08D9 xt2lR5TeyDzTEGeYw8uy3Ebk+t83rcszuH7u2eZoPPuHKgA= 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: usb: common: usb-conn-gpio: fix NULL pointer dereference of charger When power on system with OTG cable, IDDIG's interrupt arises before the charger registration, it will cause a NULL pointer dereference, fix the issue by registering the power supply before requesting IDDIG/VBUS irq. The Linux kernel CVE team has assigned CVE-2021-47331 to this issue. Affected and fixed versions =========================== Fixed in 5.10.52 with commit 8e8d910e9a3a Fixed in 5.12.19 with commit 436906fd248e Fixed in 5.13.4 with commit 1a133a0996d6 Fixed in 5.14 with commit 880287910b18 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-47331 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/usb/common/usb-conn-gpio.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/8e8d910e9a3a7fba86140aff4924c30955ab228b https://git.kernel.org/stable/c/436906fd248e018403bcda61a9311d9af02912f1 https://git.kernel.org/stable/c/1a133a0996d6b4c83509d570ed4edcba34c44f25 https://git.kernel.org/stable/c/880287910b1892ed2cb38977893b947382a09d21