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 056B212FB14 for ; Tue, 21 May 2024 14:22:47 +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=1716301368; cv=none; b=nZ/09U8zrcI000OQTLJh9yBtt4spcAhBemBv11dueEPr5BtTCNac304VUoZZLHyJ8JDJth2JwMY17Akttt9WhAcKfX65sPXRsdtjg2rh2jA6/NifhcLURjwdVIdqE4yf4mtuTMDVvhNStjYTqySTgkciKiU92z3Og7LkPS4ZB1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301368; c=relaxed/simple; bh=ClEl9zi8490BeOqwlrkyIBEf09ExvuMjaTcuXY7Kbo8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=R4peBFMwB4DoDXAEp+hmUgq9lJWIbUKVmyH89d7t3pPez6oaRWc2SH97OtlhL+jVoT8ajWmXHzuHEb/rIoxJchRJ1r+zYnFlCEcjigNVUTmWzqhPXyjRVHeRe4PMTajt7gO8yB44dvAh1Ed9I90l0Ynqe6FIba+yBjjPI3d+vxU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iqIU6jvC; 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="iqIU6jvC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34959C2BD11; Tue, 21 May 2024 14:22:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301367; bh=ClEl9zi8490BeOqwlrkyIBEf09ExvuMjaTcuXY7Kbo8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iqIU6jvC3I4G+CrYKe78QStdjT3/fKwi8filwYshu97H84ugP1V6hdY4DyOghmH3t GLTi59z5MdJULAVUZYNlebxArVOKO37vhH0bCcwuGCV4mMENkRq7OG+PGY0sFMc8LL 1EH5yT9UsaWqPvcVi6LzmeFb772jPwJlYD1DdlP4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47279: usb: misc: brcmstb-usb-pinmap: check return value after calling platform_get_resource() Date: Tue, 21 May 2024 16:20:33 +0200 Message-ID: <2024052153-CVE-2021-47279-6e4d@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=1799; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ClEl9zi8490BeOqwlrkyIBEf09ExvuMjaTcuXY7Kbo8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+aztNta3SgtdnFdbVRThm2hwPaX2i0/q9xqa90HIf4 wtV+aMdsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMJEuboYFt6TjVA4dW/GhfVL/ 6RkP9jibNmWEMyxo/SCcKeTvcG4O5/Rr1twJvUrGGmYA 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: misc: brcmstb-usb-pinmap: check return value after calling platform_get_resource() It will cause null-ptr-deref if platform_get_resource() returns NULL, we need check the return value. The Linux kernel CVE team has assigned CVE-2021-47279 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 517c4c44b323 and fixed in 5.12.11 with commit 2147684be1eb Issue introduced in 5.11 with commit 517c4c44b323 and fixed in 5.13 with commit fbf649cd6d64 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-47279 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/misc/brcmstb-usb-pinmap.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/2147684be1ebdaf845783139b9bc4eba3fecd9e4 https://git.kernel.org/stable/c/fbf649cd6d64d40c03c5397ecd6b1ae922ba7afc