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 6D9771C3BEB for ; Mon, 29 Jun 2026 04:53:44 +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=1782708825; cv=none; b=eRDXNtuozR8XpY5Z6KUWLEfWKwhdRGwN8iNAvrP30IaV8DLK0wpnf5pOAWfsRmSUSfjbHNX1ci5mSQRRTf+j5mWFzvlJo+9evx5QWttbHh6Y8NpV5XNs9rdqVay83jJ7kjb5RpdUuS1qUXwr9tcv6COzilqdLedQIuURlpJmgBY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782708825; c=relaxed/simple; bh=Z2KmCY7j7Sr5bXa3/AeXmiPSWffF0eAAd5dgAdZdTnM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=s+44de/SAg0ige2+7/2J7a0BrlyK1lb8v6s2iNHuhRrIYMSlv0N19sqC5YFeNgrOD4DG4eVrUMx3FVpNR6YuOc1cGa9/+HIxqlGuOuHlGvrmOIQZ6CzyspMcWWwUE3x+RY2HzPMHnkR9+JX1XTFh3Bv/1wv/EA20HAppTkcyDrk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DA061F000E9; Mon, 29 Jun 2026 04:53:43 +0000 (UTC) From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53325: agp/amd64: Fix broken error propagation in agp_amd64_probe() Date: Mon, 29 Jun 2026 06:52:27 +0200 Message-ID: <2026062926-CVE-2026-53325-b162@gregkh> X-Mailer: git-send-email 2.54.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=3393; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zf2gm4fPDioLz4XVnvH0ueSJ4Myk7gSuKtsGJCJL1Ew=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmOv7iuzHzjzVbK9yi6jSXJ8WPN8T8rvp76ec90O8PSF d5vf7XndcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE4mQY5qlr/f+08Snfzyka W67MEjt99tfPm5kM85TLPxsI7WK0Fo+zrtBfqXbX9uvjdQA= 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: agp/amd64: Fix broken error propagation in agp_amd64_probe() A NULL pointer dereference was observed in the AMD64 AGP driver when running in a virtualized environment (e.g. qemu/kvm) without a physical AMD northbridge. The crash occurs in amd64_fetch_size() when attempting to dereference the pointer returned by node_to_amd_nb(0). The root cause of this crash is broken error propagation in agp_amd64_probe(): When no AMD northbridges are found, cache_nbs() correctly returns -ENODEV. However, the probe function erroneously checks the return value against exactly -1, rather than < 0. As a result, the hardware absence error is masked, allowing the driver to improperly proceed with initialization. It eventually calls agp_add_bridge(), which invokes amd64_fetch_size(). Since the hardware does not exist, node_to_amd_nb(0) returns NULL, leading to a General Protection Fault (GPF) when accessing its ->misc member. Fix the issue by correcting the error check in agp_amd64_probe() to abort properly when cache_nbs() returns any negative error code. This prevents the driver from erroneously proceeding without hardware, thereby avoiding the subsequent NULL pointer dereference at its source. The Linux kernel CVE team has assigned CVE-2026-53325 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.18 with commit a32073bffc656ca4bde6002b6cf7c1a8e0e22712 and fixed in 6.18.37 with commit 53483a9f4ee9eeb18aa866ec16cce79e136987e1 Issue introduced in 2.6.18 with commit a32073bffc656ca4bde6002b6cf7c1a8e0e22712 and fixed in 7.0.14 with commit 0aa9b27c454c53074cde592eaceb442d30341585 Issue introduced in 2.6.18 with commit a32073bffc656ca4bde6002b6cf7c1a8e0e22712 and fixed in 7.1.2 with commit cefe535a60a2e00e09f4b2689b0c8ffc6912459a Issue introduced in 2.6.18 with commit a32073bffc656ca4bde6002b6cf7c1a8e0e22712 and fixed in 7.2-rc1 with commit b08472db93b1ccff84a7adec5779d47f0e9d3a30 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-53325 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/char/agp/amd64-agp.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/53483a9f4ee9eeb18aa866ec16cce79e136987e1 https://git.kernel.org/stable/c/0aa9b27c454c53074cde592eaceb442d30341585 https://git.kernel.org/stable/c/cefe535a60a2e00e09f4b2689b0c8ffc6912459a https://git.kernel.org/stable/c/b08472db93b1ccff84a7adec5779d47f0e9d3a30