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 D80E57EEF8 for ; Tue, 21 May 2024 15:04:51 +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=1716303891; cv=none; b=bFOURgpQI+XDYNIHE3XhMD9azwRxi2yIpIhM6prdU9k3WGfli4uglRNJCPDO4n1Y47VK5sixSEZx1a7eDB9l5fb24OatXhNvS0qvwpNBZg1vccd27fZyFRmsTDNdnvr9wAjVBVSK5eTQU15iw+Mzf9ICZ8EN2NcpnoWMDtY761k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716303891; c=relaxed/simple; bh=w0fS8YmQ06pB5iRlPJgf3dY/Z9GFFfTnt9Ifw8/0XPc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n9eq2HzSo1lD6PxJkE75kCZ8I/E7S3Uu7h82y8pQ4RnR1BvVPalYaOfrBfAU9zcQx2r9fQs8kJm4G2+qU2umxFEWKRk76eCSaDyVNl9wCzvE1OQmr/AUvoYKea8nXAJLNEFNHlGrLz1dRz9ovMrJ3y1XfzwuCIh2iqKEn5QP6Ko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kQ2o02q4; 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="kQ2o02q4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12F32C2BD11; Tue, 21 May 2024 15:04:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716303891; bh=w0fS8YmQ06pB5iRlPJgf3dY/Z9GFFfTnt9Ifw8/0XPc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kQ2o02q4S6xHTZZtQtN2/rr5MLncIiFM3tZzAhwzRIzoqU56Oj3tu6eecz83sXAuE xjm3sWOoigdhTSk5C0jGvAdc0B2V7tEELD/+yQh7bJJ+dgroQ9LTuotyGLx2yRkTBF 2DiUvwL/nI3dC/W+5VwVasmCNxLH1/ZnGhn8jBYw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2020-36788: drm/nouveau: avoid a use-after-free when BO init fails Date: Tue, 21 May 2024 17:03:35 +0200 Message-ID: <2024052134-CVE-2020-36788-06ab@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=2172; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=w0fS8YmQ06pB5iRlPJgf3dY/Z9GFFfTnt9Ifw8/0XPc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+249xRL36LfzOlE36tU5HkmHuzcA/K1q7Pr36YiH6O uWGmsXSjhgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIbwHDgtlpLh3x1mu8tmf+ qHiiOz3y9Z/1/Awztt2OEfRVfFn0LCHW69uKmXql23QB 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: avoid a use-after-free when BO init fails nouveau_bo_init() is backed by ttm_bo_init() and ferries its return code back to the caller. On failures, ttm_bo_init() invokes the provided destructor which should de-initialize and free the memory. Thus, when nouveau_bo_init() returns an error the gem object has already been released and the memory freed by nouveau_bo_del_ttm(). The Linux kernel CVE team has assigned CVE-2020-36788 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 019cbd4a4feb and fixed in 5.10.73 with commit f86e19d918a8 Issue introduced in 5.4 with commit 019cbd4a4feb and fixed in 5.14.12 with commit 548f2ff8ea5e Issue introduced in 5.4 with commit 019cbd4a4feb and fixed in 5.15 with commit bcf34aa5082e 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-2020-36788 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_gem.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/f86e19d918a85492ad1a01fcdc0ad5ecbdac6f96 https://git.kernel.org/stable/c/548f2ff8ea5e0ce767ae3418d1ec5308990be87d https://git.kernel.org/stable/c/bcf34aa5082ee2343574bc3f4d1c126030913e54