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 DAD702563F for ; Wed, 28 Feb 2024 08:15:15 +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=1709108115; cv=none; b=a25wDKED76ilQm2H1l7yCiud4wFJaLHEzxjYBMoSM+ptsomDzmLc7V239JkOg3BA0o3HeL+KBpR0lqq8JEp+i1qbkywu5QE58TOPBHkcZDmVK8yKnqjspFvB6fmp28jvAYd+qmI7lCA6PzGVV9f3Vyv02VT8RCLWM7ZU1up8FCk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108115; c=relaxed/simple; bh=OA8L9QzVPJNGKv7ZIxmkCRCe53oLspzHI2FMK+nyNtI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OZP3Wr7Lt9grWYryviy18dVhIJdzxeEFB2/PVEbN/8ykG07CnIe+3czzTEObsmSf+5NGAnB50eVD0emj7fuXSxGvi48iEWb2+38uwCFHlYPoEbYT4tozWiVstmG6a5tzBuZB8n5q6rqleBwf/U/u7HoCZ7W4rZtsSveZKgEjIrg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JIX/rx5f; 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="JIX/rx5f" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C323C433C7; Wed, 28 Feb 2024 08:15:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108115; bh=OA8L9QzVPJNGKv7ZIxmkCRCe53oLspzHI2FMK+nyNtI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JIX/rx5f8NLCzMvwmTNuMDtZR9JCpwI7TjTkj9BII9SO7O+pP8WFtaulvdy5i+7KW 6dDFzdjJi8RRerbxpWzPb0eWtqi7rLnffxLe/zSwQ0icOrQ7YvePKZaqvDzcDONWY1 phpvukZN2bs/p4RWrBU53ZYWQPXROLjrl5SAKav0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2021-46985: ACPI: scan: Fix a memory leak in an error handling path Date: Wed, 28 Feb 2024 09:14:35 +0100 Message-ID: <2024022824-CVE-2021-46985-4dad@gregkh> X-Mailer: git-send-email 2.44.0 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=2821; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bYn0qN3UaT6FWpC6VnpPRHQ5BTQyr7WTf9ovNR5tuq8=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn3XidEewXPF8opYXSxZ5tesJun7kzCXe2tnsmKNnr9j 55PaLHtiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlEcjEsuHq4xjY5WodNVytE t+oBIxurlqcvwzx9W1WH1KevLRIK37Fd+mpw/OD5XkYA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: gregkh@kernel.org Description =========== In the Linux kernel, the following vulnerability has been resolved: ACPI: scan: Fix a memory leak in an error handling path If 'acpi_device_set_name()' fails, we must free 'acpi_device_bus_id->bus_id' or there is a (potential) memory leak. The Linux kernel CVE team has assigned CVE-2021-46985 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9.264 with commit e5cdbe419004 and fixed in 4.9.269 with commit 6901a4f795e0 Issue introduced in 4.14.228 with commit 717d9d88fbd9 and fixed in 4.14.233 with commit 5ab9857dde7c Issue introduced in 4.19.184 with commit 7385e438e1f3 and fixed in 4.19.191 with commit 69cc821e89ce Issue introduced in 5.4.109 with commit bc0b1a2036dd and fixed in 5.4.120 with commit dafd4c0b5e83 Issue introduced in 5.10.27 with commit 4a5891992c68 and fixed in 5.10.38 with commit e2381174daea Issue introduced in 5.11.11 with commit 321dbe6c0b55 and fixed in 5.11.22 with commit c5c8f6ffc942 Issue introduced in 5.12 with commit eb50aaf960e3 and fixed in 5.12.5 with commit a7e17a8d421a Issue introduced in 5.12 with commit eb50aaf960e3 and fixed in 5.13 with commit 0c8bd174f0fc Please see https://www.kernel.org or 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-46985 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/acpi/scan.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/6901a4f795e0e8d65ae779cb37fc22e0bf294712 https://git.kernel.org/stable/c/5ab9857dde7c3ea3faef6b128d718cf8ba98721b https://git.kernel.org/stable/c/69cc821e89ce572884548ac54c4f80eec7a837a5 https://git.kernel.org/stable/c/dafd4c0b5e835db020cff11c74b4af9493a58e72 https://git.kernel.org/stable/c/e2381174daeae0ca35eddffef02dcc8de8c1ef8a https://git.kernel.org/stable/c/c5c8f6ffc942cf42f990f22e35bcf4cbe9d8c2fb https://git.kernel.org/stable/c/a7e17a8d421ae23c920240625b4413c7b94d94a4 https://git.kernel.org/stable/c/0c8bd174f0fc131bc9dfab35cd8784f59045da87