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 F4193524A5 for ; Fri, 17 May 2024 13:24:35 +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=1715952276; cv=none; b=VOar9tNPaSrMi5IExAfdL0/FTEa2V7lBIjCvFXuFamqH44JMGnP6VAiihJFFIpwsGXKKuEon9y1yWUNFoZdFtaNH508fvzkzLyRLZoQQssmgd+e34rGs/GIWqC61FGVEfhY/RT2I0irUapq0eq6JoDipuXVGIP7vvjYEcScDIxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715952276; c=relaxed/simple; bh=eIUiKTJZg6nz7LSu+nVQojnBYwv7LVOx+Ff2PTL7XlA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LgBu2Fzu+P75Q9Z6nZErjxiB9yp5+xGhi4Pe2QNKwsictj0odfMZOw2oR8Ib0gMYDvOhi7336yPrApwEKo2pHy6o1VOIXQXBdCEIqWGJJRvO23JlsOzKun7jD1qVoFTp+IB4nj2gfmM6OVNpMEzefCw2v8o0y9sB0tACP06XvwA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Tq7FcoKh; 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="Tq7FcoKh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2902EC2BD10; Fri, 17 May 2024 13:24:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715952275; bh=eIUiKTJZg6nz7LSu+nVQojnBYwv7LVOx+Ff2PTL7XlA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Tq7FcoKhTBJ+BgcQEDTLzIcGgq8kz8llN4f3PbVJ9L0R+Ka4Q7WybG8U0DdVEH4/Z BWRTGBCg9+QlbCkofj+MVA3BkdOm6Zm4cIdCchF/uiTZ5TW6y5X/keV+wnTeyZxibF 3375I+ckvSnkCxXXqPbBeFWGHdNOcFlH9JzoeAr4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35817: drm/amdgpu: amdgpu_ttm_gart_bind set gtt bound flag Date: Fri, 17 May 2024 15:23:57 +0200 Message-ID: <2024051743-CVE-2024-35817-d29b@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=2379; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eIUiKTJZg6nz7LSu+nVQojnBYwv7LVOx+Ff2PTL7XlA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuUfGyL+0XJElUWL2xflFmsDB8xcxayfkRZR+a9sifZ Dh2dO7sjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIv58MC862fLZ+/ciFbdXq X88Oqr4Nj/96KYVhwRzBot9fuefa/zaNf7klYfLbK2HHnQE= 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/amdgpu: amdgpu_ttm_gart_bind set gtt bound flag Otherwise after the GTT bo is released, the GTT and gart space is freed but amdgpu_ttm_backend_unbind will not clear the gart page table entry and leave valid mapping entry pointing to the stale system page. Then if GPU access the gart address mistakely, it will read undefined value instead page fault, harder to debug and reproduce the real issue. The Linux kernel CVE team has assigned CVE-2024-35817 to this issue. Affected and fixed versions =========================== Fixed in 5.15.154 with commit 5d5f1a7f3b10 Fixed in 6.1.84 with commit 589c414138a1 Fixed in 6.6.24 with commit 6fcd12cb9088 Fixed in 6.7.12 with commit e8d27caef2c8 Fixed in 6.8.3 with commit 5cdce3dda3b3 Fixed in 6.9 with commit 6c6064cbe58b 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-35817 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/amd/amdgpu/amdgpu_ttm.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/5d5f1a7f3b1039925f79c7894f153c2a905201fb https://git.kernel.org/stable/c/589c414138a1bed98e652c905937d8f790804efe https://git.kernel.org/stable/c/6fcd12cb90888ef2d8af8d4c04e913252eee4ef3 https://git.kernel.org/stable/c/e8d27caef2c829a306e1f762fb95f06e8ec676f6 https://git.kernel.org/stable/c/5cdce3dda3b3dacde902f63a8ee72c2b7f91912d https://git.kernel.org/stable/c/6c6064cbe58b43533e3451ad6a8ba9736c109ac3