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 807FE1D54A for ; Wed, 19 Jun 2024 14:58:16 +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=1718809096; cv=none; b=svhkTdTzQnQgB290bS+Zf02cf0DUsPb9KVBENvK3hKvKdOUkkvuvEX+A0hV+1afYwewSeeSe9gtHKNmOyoFaoGSCjWPB10zQV55uEcGUGoTB1SSZfXcqXAcKX+OaLLV3tMSQUU9TNHWRRX/20SMNmrrGu4bcX7fkP9lLUschAAw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718809096; c=relaxed/simple; bh=ftjkBGQ+/5dHN3Uuh34dPvyTCgvWPVDmXP/f/QYgNBs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fZeR/6l7Kx4Dz8Z/IqLhtNTjz1kPJhrG6WHPdAipKYfeBWAbzwPPT8D5la49pVAaAjgGViI7G1rEb1Fnk0gI6OH6sMhzrswr0LQRWGw9vaxzxX37siHNMpBQk1U9JuytWPvvLHZlmhLwuoKtBdYHVsGXtFd+bFvUzp/I9TFZtbc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MqdCkAh4; 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="MqdCkAh4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02D7AC2BBFC; Wed, 19 Jun 2024 14:58:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718809096; bh=ftjkBGQ+/5dHN3Uuh34dPvyTCgvWPVDmXP/f/QYgNBs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MqdCkAh4BknyO8A+laQ/WObXK+BV3+LfF1lx1xavPIpJqC3wxSp9D2XbYb8a4MWeB qbukty86kimS6B4b165lGwQl/b+6zd6LmamDUUYYZrB1+g+SMjvsK4UnAGsJ3s0P90 d9IX9u5CZGwMputNmrfBH+A3BG/tw1Z4+fUju66o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47609: firmware: arm_scpi: Fix string overflow in SCPI genpd driver Date: Wed, 19 Jun 2024 16:58:08 +0200 Message-ID: <2024061907-CVE-2021-47609-5ebf@gregkh> X-Mailer: git-send-email 2.45.2 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=2827; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ftjkBGQ+/5dHN3Uuh34dPvyTCgvWPVDmXP/f/QYgNBs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFH/+Hx+x+2HVc4Elb9fbAC82WS1kY1PL8DpcEPHg3Z 7fx2oP2HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARHk+GBTMPPZ5x5cLZii9l p29W/ly1+/evszMZ5lkpd/MYZu25+C9B8Xaqrs+2nLvFSgA= 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: firmware: arm_scpi: Fix string overflow in SCPI genpd driver Without the bound checks for scpi_pd->name, it could result in the buffer overflow when copying the SCPI device name from the corresponding device tree node as the name string is set at maximum size of 30. Let us fix it by using devm_kasprintf so that the string buffer is allocated dynamically. The Linux kernel CVE team has assigned CVE-2021-47609 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit 8bec4337ad40 and fixed in 4.9.294 with commit 639901b9429a Issue introduced in 4.8 with commit 8bec4337ad40 and fixed in 4.14.259 with commit 4694b1ec425a Issue introduced in 4.8 with commit 8bec4337ad40 and fixed in 4.19.222 with commit 7e8645ca2c00 Issue introduced in 4.8 with commit 8bec4337ad40 and fixed in 5.4.168 with commit 802a1a850156 Issue introduced in 4.8 with commit 8bec4337ad40 and fixed in 5.10.88 with commit f0f484714f35 Issue introduced in 4.8 with commit 8bec4337ad40 and fixed in 5.15.11 with commit 976389cbb16c Issue introduced in 4.8 with commit 8bec4337ad40 and fixed in 5.16 with commit 865ed67ab955 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-47609 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/firmware/scpi_pm_domain.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/639901b9429a3195e0fead981ed74b51f5f31538 https://git.kernel.org/stable/c/4694b1ec425a2d20d6f8ca3db594829fdf5f2672 https://git.kernel.org/stable/c/7e8645ca2c0046f7cd2f0f7d569fc036c8abaedb https://git.kernel.org/stable/c/802a1a8501563714a5fe8824f4ed27fec04a0719 https://git.kernel.org/stable/c/f0f484714f35d24ffa0ecb4afe3df1c5b225411d https://git.kernel.org/stable/c/976389cbb16cee46847e5d06250a3a0b5506781e https://git.kernel.org/stable/c/865ed67ab955428b9aa771d8b4f1e4fb7fd08945