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 9E49213774D for ; Tue, 9 Dec 2025 04:10:34 +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=1765253434; cv=none; b=NpS4chGGDY2epjrIjRhH2rCjERRFZto72nxb3ACIIyhE214jvA5MQrVexRmG5sdWbOtq1VJRoe9gZhCSXuBrqULXBSFHY8tIwMzTLkxoT7tRb4r1zK+I/hxmzED6xmA7wUO/eDpLk6Luk1PvvAGWTJSN+mihEkX4uBjbuQCOU/A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765253434; c=relaxed/simple; bh=KlAJncJm9/6W0ud1X3jxPdf7vYpScswb34dVVKoaziQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dK8PAJi2+rRGa2N1cxDs5hHCsNFlI4hyx66h3paZdwwUnSiMwQ6suVyHyG7c7AfS5RkMivoWglEtj1V6rzfRzpZDcG4Dx0tzp+FI9nQFzmqCbBXzRp5EKW8CTlrbEXGhLqWNQVdonuA++X9NfJ+4rJECVJPZRCuAGfP8PSvmJEg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QtPIManD; 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="QtPIManD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E957FC4CEF5; Tue, 9 Dec 2025 04:10:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765253434; bh=KlAJncJm9/6W0ud1X3jxPdf7vYpScswb34dVVKoaziQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=QtPIManDYUM/BuGuErRXycKjMNFsgeMSLMQctqT7/WzFqsXremWRX1kqynlxAJBsy 50MxdMuc/del0G0VSRxld65BDbrWbf96v4TGwc7ejXeGAB+oGaor3yl9JgZjOe3krT 5J687/cRgbaKt8ZvgRneVvndGLFdwIkXRpdOEW2Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40339: drm/amdgpu: fix nullptr err of vm_handle_moved Date: Tue, 9 Dec 2025 13:10:21 +0900 Message-ID: <2025120911-CVE-2025-40339-82ee@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1923; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Vx6ytXsV33H1T7hOcDcYWVxD4UERJHFvKPIvfC/LHxQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmC5Urn+6T5nbNTJ0YsU/hxv8IW6mwaRpbTnh1OUXKP PsyeU5aRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkQiPDgsOu/62nXwlJlJ6n z9W3IY0zdR/nBIYF/dcNc8Ic5T7PlZ+/sllcYMKrhI67AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: fix nullptr err of vm_handle_moved If a amdgpu_bo_va is fpriv->prt_va, the bo of this one is always NULL. So, such kind of amdgpu_bo_va should be updated separately before amdgpu_vm_handle_moved. The Linux kernel CVE team has assigned CVE-2025-40339 to this issue. Affected and fixed versions =========================== Fixed in 6.12.58 with commit 47281febebe337586569aa4c5694a7511063a42e Fixed in 6.17.8 with commit 273d1ea12e42e9babb9783837906f3c466f213d3 Fixed in 6.18 with commit 859958a7faefe5b7742b7b8cdbc170713d4bf158 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-2025-40339 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_amdkfd_gpuvm.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/47281febebe337586569aa4c5694a7511063a42e https://git.kernel.org/stable/c/273d1ea12e42e9babb9783837906f3c466f213d3 https://git.kernel.org/stable/c/859958a7faefe5b7742b7b8cdbc170713d4bf158