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 1B141494A18 for ; Fri, 25 Sep 2026 10:33:11 +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=1790332392; cv=none; b=PQXfHUFviFWYC6C9Wk3qOwA4/drX84Gdms0nDTVkwPS0qX40nQGSBm4sji7zuR8+QuSLQ1ggqlAICjj7vn5e6Mo5sHUct4mPukKESGSTvcvYTxP8vqcLyLr5wZIwuxDtqXNQW5m+xcpBu+R5rwKjsxIdP/0pqAxvmzR6KY9QnZ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332392; c=relaxed/simple; bh=xo9I7COGmykqUJE2wscUlZSleZTME/kyN80nl/qKPeA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NuChpsrsSIHNtLugPbwQwHRgenDiet+b/M6jNok85xf7NAVyLwUehm2N0Ha++4aYDR/9P0zAFET62NjIHzEsJV3mQTtYjBIp/76ArbRKRvEIaANHZQIdifpl7ro5aMH+mh3YwWkAC9mractmI3xDnlZZVXI7PQMoA5qMIE4+Weg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ILFSwE0H; 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="ILFSwE0H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70BFA1F000FF; Fri, 25 Sep 2026 10:33:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332391; bh=I5zrtT2oJOFPDXY/n4dJ2jj5BIVYhpsm3VQXR0rxcNU=; h=From:To:Cc:Subject:Date:Reply-To; b=ILFSwE0HbVocE2J4j6sR9S49kulEwgrmROgERMpwg09/7x9mEofFzeXMu9UJuZ8qe DTdQKaAGWvWs6PAdCwk6BFuYp6WR2HuweSM6xV/ThRm3X2NUzxQ3MTe/dbVaVnqSS8 w42k6c+waNnPPpV4bWVG6gKb5VpDddz6RY+NkFbg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98020: pds_core: fix cmd_regs access racing BAR unmap on reset Date: Fri, 25 Sep 2026 12:25:22 +0200 Message-ID: <2026092526-CVE-2026-98020-8640@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=3662; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kb653t5FPJC5EnMiKGLcuhE6YD73SHyHiD2Dx8A5zs0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvJMe+zj5bBQ1L2s8cevQaYmV8/nzV97+uT/agL1om 8XMFZd+dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEJt9gWHAlPXNfR8/ZcPZo G1etkzd/rPuqNJNhruiuCcYO1W3OcqsU17XOX9J87fzr7QA= 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: pds_core: fix cmd_regs access racing BAR unmap on reset pdsc_reset_prepare() and pdsc_reset_done()'s pdsc_map_bars() error path clear/iounmap cmd_regs without devcmd_lock, and pdsc_legacy_firmware_update()'s download loop derefs cmd_regs after dropping and retaking the lock without re-checking. An FLR concurrent with a devlink flash can unmap cmd_regs under an in-flight devcmd, causing a NULL deref or a write to unmapped MMIO. Take devcmd_lock across the BAR unmap/remap, and re-check cmd_regs in the download loop. Only the PF maps cmd_regs and runs devcmd, so skip the unmap on a VF, as pdsc_remove() and pdsc_reset_done() already do. A reset that completes entirely within the unlocked window is not a correctness problem for the image: the device clears its update session, so a resumed download is rejected, and it verifies the staged image before writing a flash slot, reporting PDS_RC_BAD_FW rather than activating it. pdsc_unmap_bars() also clears info_regs, intr_status and intr_ctrl. The interrupt and start/stop readers of those are quiesced before the unmap by pdsc_fw_down(), which frees the interrupts and tears down the queues. The debugfs readers are not, since those files outlive a reset; that is pre-existing and out of scope here. The Linux kernel CVE team has assigned CVE-2026-98020 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit e96094c1d11cce4deb5da3c0500d49041ab845b8 and fixed in 6.12.111 with commit 2cc697565fd19b5ba2d100cdd4a20dd6d263abc2 Issue introduced in 6.8 with commit e96094c1d11cce4deb5da3c0500d49041ab845b8 and fixed in 6.18.53 with commit fa31bd14c5042c6315bb2182c963f03ca6e79ca4 Issue introduced in 6.8 with commit e96094c1d11cce4deb5da3c0500d49041ab845b8 and fixed in 7.2.7 with commit 09f831bfe39de5b8026fefb3d106b5cc93272170 Issue introduced in 6.8 with commit e96094c1d11cce4deb5da3c0500d49041ab845b8 and fixed in 7.3-rc3 with commit 7980325b2f71e3f65c1323c39792e2455da6fab6 Issue introduced in 6.6.16 with commit f6ec6ac9432941ec85a2221c91b1ecfc85680d89 Issue introduced in 6.7.4 with commit 692488941283d72362274620b9abd28109fc459f 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-98020 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/net/ethernet/amd/pds_core/fw.c drivers/net/ethernet/amd/pds_core/main.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/2cc697565fd19b5ba2d100cdd4a20dd6d263abc2 https://git.kernel.org/stable/c/fa31bd14c5042c6315bb2182c963f03ca6e79ca4 https://git.kernel.org/stable/c/09f831bfe39de5b8026fefb3d106b5cc93272170 https://git.kernel.org/stable/c/7980325b2f71e3f65c1323c39792e2455da6fab6