From mboxrd@z Thu Jan 1 00:00:00 1970 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 7F14E18E351 for ; Tue, 20 Aug 2024 23:51:17 +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=1724197877; cv=none; b=m+7kMSwxv+ksHh2aKY91zU6a9h4mid78wnoJlSBny1pAFHJgQ/+SeZEYsMaRBdEKcAhMqlGbHUN3MdY3rXLaBCk9gcwL/LFiFo+qg0v5hzNzlzAh8u/KnNactWAWXoWX55zFT/M3n7nfpEhtjY92HOetcREncriB/7iSjawD1iQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724197877; c=relaxed/simple; bh=VbvI1BRk/daewQhc2w7DRL0iMJnlHB0xLoGtJyNUFms=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DrF6THU/nDaTSotfg04coKAWGpc65k4p9Xn5GymKfosRWfulUd57HJwcLpHeB1YZ4wzzJJ1aRt+Mz8Hu1CZS5BCxBvRTSt9KUf5UBhZ9lvWNesvUa2lKM+oqd/zyhAhpd0YRHSbg/F2OX9xzqvUkinobPb2zmGYLsd1AykqacdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tGA5JpzD; 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="tGA5JpzD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4042C4AF09; Tue, 20 Aug 2024 23:51:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724197877; bh=VbvI1BRk/daewQhc2w7DRL0iMJnlHB0xLoGtJyNUFms=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tGA5JpzDJ1Di9vlvhLyqPOw+f4nmEf90tXT1EGMaykZqFao/njMQIFoQ3xBhJWLb4 EZD8T0A485qIEmKrN0nyVS04JPGurrRZHbcjUG0XUflLcgTRoEeApAAtrqjuGcSvt2 qhDCplS4ot0W5nlmchXaekFJmq8oBak+i61bzOms= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43867: drm/nouveau: prime: fix refcount underflow Date: Wed, 21 Aug 2024 07:51:00 +0800 Message-ID: <2024082157-CVE-2024-43867-0620@gregkh> X-Mailer: git-send-email 2.46.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=2826; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VbvI1BRk/daewQhc2w7DRL0iMJnlHB0xLoGtJyNUFms=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHtR867fOYen/LRI6b7GyPcxcs5j28enKL/Cnv/Estn 64cYbrT0hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATsd/EMJt9R6XSjyfrMr00 C+XWO1ocYQmf2s8w3+NyzMf3HzYqethEB7/cvSpOulrPDwA= 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: drm/nouveau: prime: fix refcount underflow Calling nouveau_bo_ref() on a nouveau_bo without initializing it (and hence the backing ttm_bo) leads to a refcount underflow. Instead of calling nouveau_bo_ref() in the unwind path of drm_gem_object_init(), clean things up manually. (cherry picked from commit 1b93f3e89d03cfc576636e195466a0d728ad8de5) The Linux kernel CVE team has assigned CVE-2024-43867 to this issue. Affected and fixed versions =========================== Issue introduced in 3.9 with commit ab9ccb96a6e6 and fixed in 5.4.282 with commit 3bcb8bba72ce Issue introduced in 3.9 with commit ab9ccb96a6e6 and fixed in 5.10.224 with commit 906372e753c5 Issue introduced in 3.9 with commit ab9ccb96a6e6 and fixed in 5.15.165 with commit 16998763c62b Issue introduced in 3.9 with commit ab9ccb96a6e6 and fixed in 6.1.104 with commit ebebba4d357b Issue introduced in 3.9 with commit ab9ccb96a6e6 and fixed in 6.6.45 with commit f23cd66933fe Issue introduced in 3.9 with commit ab9ccb96a6e6 and fixed in 6.10.4 with commit 2a1b327d57a8 Issue introduced in 3.9 with commit ab9ccb96a6e6 and fixed in 6.11-rc2 with commit a9bf3efc33f1 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-43867 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/gpu/drm/nouveau/nouveau_prime.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/3bcb8bba72ce89667fa863054956267c450c47ef https://git.kernel.org/stable/c/906372e753c5027a1dc88743843b6aa2ad1aaecf https://git.kernel.org/stable/c/16998763c62bb465ebc409d0373b9cdcef1a61a6 https://git.kernel.org/stable/c/ebebba4d357b6c67f96776a48ddbaf0060fa4c10 https://git.kernel.org/stable/c/f23cd66933fe76b84d8e282e5606b4d99068c320 https://git.kernel.org/stable/c/2a1b327d57a8ac080977633a18999f032d7e9e3f https://git.kernel.org/stable/c/a9bf3efc33f1fbf88787a277f7349459283c9b95