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 CA98C145A01 for ; Thu, 30 May 2024 14:59:44 +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=1717081184; cv=none; b=bjCYnPgD0OuHe6fqXQq14M/UE6Dj8soKriPHjEmPdv4H5QHHta76yWHnkCOX731foCNZ5f+UGnhqlBY+oXmaoaugBSbuZAUxvQBeEnSksuoTn5viS9Tpotrhnth769wbhLh4fH+u5MZikQgkeHhj7zMGap+FnC3pKpa+dYMTe84= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717081184; c=relaxed/simple; bh=VKA4Qc/5mgmK+neApRUyVJphEHFk9tbln1TtqoKKNqk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WklGYeclvD5XmCqWARB5Wg31U/c7njk5/uZ3Znj5KanZN2Qw1VcTK7xm7HeB8K1J2N6Fg64wu4zXdVl7DCHqkgT4Sa4LE67+nw8o7vFEiGcDsEtohh2rRPLOxFcDw2c8BVaBzZWEln3UMnNShTRL80raOHrotgSRJmBDd6ndR84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vZN3dxTG; 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="vZN3dxTG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8954C2BBFC; Thu, 30 May 2024 14:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717081184; bh=VKA4Qc/5mgmK+neApRUyVJphEHFk9tbln1TtqoKKNqk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vZN3dxTGFH+PXrjZa9oXfUBpabgyPt+EFDoGuQB+a/UeQM/FtsvpymgylRJKLZVAt 8jHF1+yCWc6nQBvXA7SwkI2w+s3WZuHWN1S3bHAjsUUD/51Ov6PBmBQYSrRmOaERnV 35K6weFpVIJ6S6WWacXOAqbWQb1YQhHZafxRgw50= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36018: nouveau/uvmm: fix addr/range calcs for remap operations Date: Thu, 30 May 2024 16:59:41 +0200 Message-ID: <2024053040-CVE-2024-36018-d6b8@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=2404; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VKA4Qc/5mgmK+neApRUyVJphEHFk9tbln1TtqoKKNqk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRU2KiNCwXuKrt2pF/8MndP+HLHEtldPWqax581Jefr KjMpDanI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaybRnD/Ogri/RN0yfVOZ7N +7DhwYpNlQe+zmKYn2b5u/m2rs1bzqsrC/Xrfbb1/33CBQA= 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: nouveau/uvmm: fix addr/range calcs for remap operations dEQP-VK.sparse_resources.image_rebind.2d_array.r64i.128_128_8 was causing a remap operation like the below. op_remap: prev: 0000003fffed0000 00000000000f0000 00000000a5abd18a 0000000000000000 op_remap: next: op_remap: unmap: 0000003fffed0000 0000000000100000 0 op_map: map: 0000003ffffc0000 0000000000010000 000000005b1ba33c 00000000000e0000 This was resulting in an unmap operation from 0x3fffed0000+0xf0000, 0x100000 which was corrupting the pagetables and oopsing the kernel. Fixes the prev + unmap range calcs to use start/end and map back to addr/range. The Linux kernel CVE team has assigned CVE-2024-36018 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit b88baab82871 and fixed in 6.6.26 with commit 692a51bebf45 Issue introduced in 6.6 with commit b88baab82871 and fixed in 6.8.5 with commit 0c16020d2b69 Issue introduced in 6.6 with commit b88baab82871 and fixed in 6.9 with commit be141849ec00 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-36018 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_uvmm.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/692a51bebf4552bdf0a79ccd68d291182a26a569 https://git.kernel.org/stable/c/0c16020d2b69a602c8ae6a1dd2aac9a3023249d6 https://git.kernel.org/stable/c/be141849ec00ef39935bf169c0f194ac70bf85ce