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 344946D1D2 for ; Tue, 21 May 2024 14:37:55 +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=1716302275; cv=none; b=qOQCQcMh7CSMMtwEP2Bt0kt2x5eiyNv9oHw1O9JCvKKgvMDuRD6QPi5TH1PnjAocf6dFHH1OZdIUDwtoNqsThIvzG1pfLJId/TOZcZHIgknMM49SV/6zMghJxPDI4pG+dYcSuoiFpzGqpBqvncvZIDh6oGMPcaBewuKp2ejHxX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302275; c=relaxed/simple; bh=hV57pPgTeDuCCSu7EiQOuIC0fhPrnHXKRdelj6vkUC8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oeTcIQYFDRB+P5WKxQYig6sps9cjdmolLy/ECeveo0nf5bsRkJrzpT05CpreOVW7lzkoPeYeKbREv8R3odwSm/7szNitm3kCDVSBXhIMmlGpj0+6Cw6uFaMijx+fMP1S6GufCS/Gl3EAqFc8MIxxoCgaIx2f804ncqgHsoanF6U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qvNYJ4VT; 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="qvNYJ4VT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B072FC2BD11; Tue, 21 May 2024 14:37:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302275; bh=hV57pPgTeDuCCSu7EiQOuIC0fhPrnHXKRdelj6vkUC8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qvNYJ4VTZi1bdFgM8JWixWl2aYpkZP+SekBlU7i3sAbMWLGI2oucGuR57knxOJKQX ydVdoRazDzQVqHtaVr0FtTw+SSg7k1aTgW3zYsi9O9a8oNWo7X1zzA9IBjWpi2+v4p cnv/2O9GaH8vykZ9X3SLVg6wYCBmD7te83dY6Z7E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47289: ACPI: fix NULL pointer dereference Date: Tue, 21 May 2024 16:35:23 +0200 Message-ID: <2024052122-CVE-2021-47289-7cbb@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=2161; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hV57pPgTeDuCCSu7EiQOuIC0fhPrnHXKRdelj6vkUC8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G7XuOxjPiUid1FrAUy5basK69s4/0zavKu98uTN/b /GI9Rd1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwERiIhjm8K8W6Y3Kt9j1VidL f6fx/5l3fO36GebHzt3M/tX2oO6pB6a1x0rZYn3vbOUCAA== 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: ACPI: fix NULL pointer dereference Commit 71f642833284 ("ACPI: utils: Fix reference counting in for_each_acpi_dev_match()") started doing "acpi_dev_put()" on a pointer that was possibly NULL. That fails miserably, because that helper inline function is not set up to handle that case. Just make acpi_dev_put() silently accept a NULL pointer, rather than calling down to put_device() with an invalid offset off that NULL pointer. The Linux kernel CVE team has assigned CVE-2021-47289 to this issue. Affected and fixed versions =========================== Fixed in 5.4.139 with commit 38f54217b423 Fixed in 5.10.57 with commit cae3fa3d8165 Fixed in 5.13.6 with commit ccf23a088807 Fixed in 5.14 with commit fc68f42aa737 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-47289 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: include/acpi/acpi_bus.h 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/38f54217b423c0101d03a00feec6fb8ec608b12e https://git.kernel.org/stable/c/cae3fa3d8165761f3000f523b11cfa1cd35206bc https://git.kernel.org/stable/c/ccf23a0888077a25a0793a746c3941db2a7562e4 https://git.kernel.org/stable/c/fc68f42aa737dc15e7665a4101d4168aadb8e4c4