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 4DC857EEF8 for ; Tue, 21 May 2024 15:05:02 +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=1716303903; cv=none; b=aMaABXryUuX93og0ljHYBImO+okN7aU5IbRD1H6NU6V1x4fmGDySIII+nwSsbnZI8BL+ne2MPOd6tIfGlYViT6j9Pnn/74K82KMVlvMjJhIXrLGlQvMQocoVAYu4fa171A96gEQTmJ8VxTcATmbbQZHJbngKq/s3Ih8D9t+EWOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716303903; c=relaxed/simple; bh=fwaLK0JaoltOjLjXUeXABDAkl80MP7WJgY6On9tBCms=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Nz4w7w5D8gC/oWjO0/6R9YoFAfIjl81Cnicq40MOu1fGyoqR30BcisRiCbZ2A41v5PVTAGl/PKkKI6/OTce+qiX1pLUiMYywFQhNGlFZ0+LIZagvqfb7TpToaS5CZyyydoSPvg+jwy51PmKXlkFUOlOs2e/igB8jozrYAcKq/Rw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Tt2fX0yw; 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="Tt2fX0yw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EC1AC32789; Tue, 21 May 2024 15:05:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716303902; bh=fwaLK0JaoltOjLjXUeXABDAkl80MP7WJgY6On9tBCms=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Tt2fX0ywAJ7U3bqvgN8OINLB7QWtntUkj7aoxjTWwaq/ScVtZx2KhTpyPiRnzQT7L vxWcN8H5vbzkqAk4akDuook0U2vubPCil9sVAJCs4MZGbqXCdPMwfBFtRrQ065XJI2 DyzAbcuqvboXGWsdJvrhV9erumdTgp/Ho8yXm28s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47380: HID: amd_sfh: Fix potential NULL pointer dereference Date: Tue, 21 May 2024 17:03:57 +0200 Message-ID: <2024052143-CVE-2021-47380-8750@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=1900; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fwaLK0JaoltOjLjXUeXABDAkl80MP7WJgY6On9tBCms=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+288f0bh8d8OsrL3Cy2z8bye/+HHwRl0unwe/df3sj 2JmX/SVOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAitdsZ5kokM3YeWGJqt3QZ 01vpqnPXIzqY1Bjm2WXN+Vp+3/Zg8AZvS+GSRY/N2y/+AgA= 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: HID: amd_sfh: Fix potential NULL pointer dereference devm_add_action_or_reset() can suddenly invoke amd_mp2_pci_remove() at registration that will cause NULL pointer dereference since corresponding data is not initialized yet. The patch moves initialization of data before devm_add_action_or_reset(). Found by Linux Driver Verification project (linuxtesting.org). [jkosina@suse.cz: rebase] The Linux kernel CVE team has assigned CVE-2021-47380 to this issue. Affected and fixed versions =========================== Fixed in 5.14.10 with commit 283e4bee701d Fixed in 5.15 with commit d46ef750ed58 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-47380 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/hid/amd-sfh-hid/amd_sfh_pcie.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/283e4bee701dfcd409dd293f19a268bb2bc8ff38 https://git.kernel.org/stable/c/d46ef750ed58cbeeba2d9a55c99231c30a172764