Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 08A8B4AF17C for ; Thu, 24 Sep 2026 16:12:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266381; cv=none; b=XdpBynnA6BVubc5ngEcuKuIeifybm5X++Cps4SbLd5Y9eT0NP+FwqElj0JvwK7wjOckmsRGYW2mP81BoRO2raGox6Wb+Bkxfs0YLy0Va1FLcxzpiFNzZRs4YQC6r9cy+UlQWjT/wF/CPMdujnzqA/BD2IL0NuxhhqUgWl6iwPnQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266381; c=relaxed/simple; bh=YFjzqNr4DJceaxUROON03cEpUPpF9QRpU1Uaqx+TL5s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PznWnQsS5cOpaNqs0BxUkYDEY1AjxsLQfqjNqL4pZs0mMj3zckoxVm2wk/0/6a7zji0v0uA1Lx0yx1xr9JdOEeCEFltl0s8bqb0xkoCh0046Uai6gtyPfW9Lb3u5K4XSTibPKvMPW2nSToNxk8LzCdM3oJHRvh3wXSbAjGxeJLQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=esBfSzq8; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="esBfSzq8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40D7D1F000FF; Thu, 24 Sep 2026 16:12:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790266372; bh=YlTUqlmX9Ujsrzfr4RdlocfZEjEjsQLNu7ilsIKUueU=; h=From:To:Cc:Subject:Date:Reply-To; b=esBfSzq8C5jZE6nci02f4HmIhG8H7njFX4nWbmKxRhrC/uEm52lhsHrWK7quwmms+ F2StIFlDCMXKsvgDaaUaAHAvEYB5DEO73taP1lwKMJ3jtsYwC8jztkZpDhnWpfEVOw gODpkQG9VUDB9/NuxoJPNC3I1J5ztSlKWEc364BU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97424: drm/amdgpu/ras: add ras_suspend callback and use it for cp_ecc_error_irq Date: Thu, 24 Sep 2026 18:03:24 +0200 Message-ID: <2026092428-CVE-2026-97424-4222@gregkh> X-Mailer: git-send-email 2.55.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=2712; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aJ0QOF4Yi6wtFGLQZQnuD6mNQo6bLkZC7pxGR5Crce8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPacYfMpct2bXrDvfTq236TRUO7G6wZrjbcWje21OY Y6Jol1nOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiKz8xzM+NubwtbnGQ8sqS P9reK03Nr4r/P8uw4PB96++zUuTY7Nn+5857cWBSCKdxNwA= 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/ras: add ras_suspend callback and use it for cp_ecc_error_irq cp_ecc_error_irq is acquired in amdgpu_gfx_ras_late_init() but released in gfx_v9_0_hw_fini(), so the put site has to query amdgpu_irq_enabled() because the get is skipped on SR-IOV VF. ras_late_init / ras_fini have no suspend counterpart, so move the put to amdgpu_gfx_ras_suspend() / amdgpu_gfx_ras_fini() and add a matching ras_suspend callback that is invoked from amdgpu_ras_suspend() before disable_all_features(). The get and put now sit in the same place and check the same condition (not VF, funcs registered), no refcount querying needed. An active flag gates ras_fini so the suspend-then-unload-without-resume path falls into amdgpu_ras_block_late_fini_default() instead of double-releasing what ras_suspend already cleaned up. Drop the cp_ecc_error_irq put from gfx_v9_0_hw_fini(). gfx_v8_0 manages cp_ecc_error_irq locally and is unaffected; no other GFX generation has this IRQ. The Linux kernel CVE team has assigned CVE-2026-97424 to this issue. Affected and fixed versions =========================== Fixed in 6.18.53 with commit 001824103f2fe6ffd2380afddf81f43b446035b2 Fixed in 7.2 with commit e3829992dd9fa0a82511af4f01733fc854cd15a5 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-2026-97424 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_gfx.c drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h drivers/gpu/drm/amd/amdgpu/gfx_v9_0.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/001824103f2fe6ffd2380afddf81f43b446035b2 https://git.kernel.org/stable/c/e3829992dd9fa0a82511af4f01733fc854cd15a5