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 8E4C822313 for ; Sun, 19 May 2024 08:38: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=1716107896; cv=none; b=qHQtBBpbLh6+p7WQ9RvzO11tmB/fi/KKGiWtScvlbb3F+/Zp+HnhJ+yxiGGFAH2SnPoZd9OFIYXY//h+oAhmd1YIO7pPxU3al1pwtanOv3W9sOF85PqlaBPUpWAVwRnLhOekDqQB9fMn/4fqjBaOiJvYHO8KNJWJeCLoNLHHj9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716107896; c=relaxed/simple; bh=XZaEDfz3+BGQoMoJ9nxq9SwtF/XYHQyORoel7tffeI4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C9s+JdHUGwIpx90tEWHtDUZJEM1etAj6ZTrlw74s1mzUJ2Y4DV3N3FRTTnL3t0HLutJ0epJejVDWChvnvKKtdBx7B6IpxQLaX4UkvpuO+S9uSEBrqPrevZJ7RlU8kSwomW5mVfaK25nR4uNozDtIaqLmV316peh7oI0ga7S0ZVA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YUman2rd; 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="YUman2rd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F016FC32781; Sun, 19 May 2024 08:38:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716107896; bh=XZaEDfz3+BGQoMoJ9nxq9SwtF/XYHQyORoel7tffeI4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YUman2rd1a8lsMK/nV+pd2QvHkqNFVXSa3hXqnS6Mc0YVZS3fI1jdMl/CbkcCE0d3 s/EEqEYv7a2UFBD6zq3rmwQN/mbSFOZkDWmHYAxjAuaRXeHebaUuTqV4NT4M5sF4z0 0KbWMr94Wk7bCcBrLHXRfBTwdFGKIQ5NXUc9Q5SY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35916: dma-buf: Fix NULL pointer dereference in sanitycheck() Date: Sun, 19 May 2024 10:35:30 +0200 Message-ID: <2024051958-CVE-2024-35916-67f1@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=2299; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XZaEDfz3+BGQoMoJ9nxq9SwtF/XYHQyORoel7tffeI4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmeOze9kzukMFVh3RP/NJnN7zumZzy9In65pZB5Xe6hv 67nXHXaO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiDxIZ5nDMOeFv+KdxgYqf RPh8n8Osos6GZQzzdPxjC7yXNq3e/LleaDvXvPUz40W9AQ== 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: dma-buf: Fix NULL pointer dereference in sanitycheck() If due to a memory allocation failure mock_chain() returns NULL, it is passed to dma_fence_enable_sw_signaling() resulting in NULL pointer dereference there. Call dma_fence_enable_sw_signaling() only if mock_chain() succeeds. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-35916 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit d62c43a953ce and fixed in 6.1.85 with commit 0336995512cd Issue introduced in 6.1 with commit d62c43a953ce and fixed in 6.6.26 with commit 156c226cbbdc Issue introduced in 6.1 with commit d62c43a953ce and fixed in 6.8.5 with commit eabf131cba1d Issue introduced in 6.1 with commit d62c43a953ce and fixed in 6.9 with commit 2295bd846765 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-2024-35916 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-buf/st-dma-fence-chain.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/0336995512cdab0c65e99e4cdd47c4606debe14e https://git.kernel.org/stable/c/156c226cbbdcf5f3bce7b2408a33b59fab7fae2c https://git.kernel.org/stable/c/eabf131cba1db12005a68378305f13b9090a7a6b https://git.kernel.org/stable/c/2295bd846765c766701e666ed2e4b35396be25e6