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 1717125625 for ; Wed, 28 Feb 2024 08:16: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=1709108177; cv=none; b=FLaqQ/7vScohQP4m8gAfXPR8TYhDkqUIYMPyRyjoGDph3ntoBNoQMH88EFpc2GhTUuFuWiZZO+S/rzDpZ559pPZPUh8/qW/+l3gIN8PuRkugU/tJ9dMjTYE6rKWeui4vvkrmlIwEuxfm40dfshprqGji9MPgf9mCYXEGGwR4wC0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108177; c=relaxed/simple; bh=QDcDOPWJqd46QdHp4YLobhQuMD6tvH1SaIGbb6Dmxb8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=W1mTcc5tPaOd0wmeXQwNJmphO4UTSS8LsY3vsMjyT6/rw/SDZf+IwZtLY6S5zFAgtNOVyCRIEjzWWKuz8EgxJqcvHFflgl4FKF4rM3XY+D7CAxpzz7psBGnKIO5S3m1r/3cVDAd2sz4xU+ceYQxDxOU6bKGwfwX7uw2ns3jDd9E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=htWbKQmD; 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="htWbKQmD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 523F2C433C7; Wed, 28 Feb 2024 08:16:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108176; bh=QDcDOPWJqd46QdHp4YLobhQuMD6tvH1SaIGbb6Dmxb8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=htWbKQmDnXwjtojiiQfWbvjYTDlAfuhPOrnnmmV7dcj1m8PSewCp1nR+ZhjDMv0MR vieJCJzGzBiza9sknZ9YMFuW4xV/LE5oAs6/SrDZUT/F+qIqn1pAbPYMqvs6rinvfw TKoJDb4JGWTAHIzkY3XueBYtmv9gtXLfloeUnjog= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2021-47003: dmaengine: idxd: Fix potential null dereference on pointer status Date: Wed, 28 Feb 2024 09:14:53 +0100 Message-ID: <2024022829-CVE-2021-47003-12d7@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=2442; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8s6BA3FKuKYfkn/ngWPpe4gbZJm7fMI8iCE6Jc9qUug=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn3XqeGSM2OWiOgyGTsWVL12vBH2rdV1ToRHLpzc1Rbb k3gDxfuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlI1DLMj93Y5XnkVfvPps+x NUezDrKo9G3kYZjN5rd77c2mWOVXiY06T6eeXXlmSrgcAA== 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: dmaengine: idxd: Fix potential null dereference on pointer status There are calls to idxd_cmd_exec that pass a null status pointer however a recent commit has added an assignment to *status that can end up with a null pointer dereference. The function expects a null status pointer sometimes as there is a later assignment to *status where status is first null checked. Fix the issue by null checking status before making the assignment. Addresses-Coverity: ("Explicit null dereferenced") The Linux kernel CVE team has assigned CVE-2021-47003 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.17 with commit 40e3b5c12864 and fixed in 5.10.38 with commit 5756f757c725 Issue introduced in 5.11 with commit 89e3becd8f82 and fixed in 5.11.22 with commit 2280b4cc29d8 Issue introduced in 5.11 with commit 89e3becd8f82 and fixed in 5.12.5 with commit 7bc402f843e7 Issue introduced in 5.11 with commit 89e3becd8f82 and fixed in 5.13 with commit 28ac8e03c43d 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-47003 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/dma/idxd/device.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/5756f757c72501ef1a16f5f63f940623044180e9 https://git.kernel.org/stable/c/2280b4cc29d8cdd2be3d1b2d1ea4f958e2131c97 https://git.kernel.org/stable/c/7bc402f843e7817a4a808e7b9ab0bcd7ffd55bfa https://git.kernel.org/stable/c/28ac8e03c43dfc6a703aa420d18222540b801120