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 408CB242D84 for ; Tue, 20 May 2025 17:09:44 +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=1747760985; cv=none; b=EIFXTHQkL2pQOg7Vf5bFTKClclR7xzzg8xqiil6ZOwfhWM/GAtqAyMDm0Ukz3HDfJLd/6ZJaUgm6mXv459lFfg374FLnL9w8Y9MMbgVik8wSerEegDhgjltsJpcKj0xF+IOj2hZP8lnV7OjBP2rXx0D2RdITAGIK3QLI4hXaiPQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747760985; c=relaxed/simple; bh=k4sTI9xoD4CdLpAFChY8NgkbWcMX4SB6i0WLJFJRdxU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=buy6tQz45iIHpPYXs884S9xXM57SHBa5YCR/Gnk2wdsWvkToYQUQGTKrvQVs7mLtnyRhEz6cIKFU3emFn7ISeDeHmWoqOo05tYe/zldX/WDH7K6yi/ALVbciO1tJZmhJSZHC6GLLxp6KCeWabZonIJy0BV9fsh91CAqvIDf7Pos= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jv4ckUqR; 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="jv4ckUqR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 635DAC4CEEA; Tue, 20 May 2025 17:09:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747760984; bh=k4sTI9xoD4CdLpAFChY8NgkbWcMX4SB6i0WLJFJRdxU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jv4ckUqRJl1BXRup3Akf9h1Mdq2/t6Oydt/6W6jdKyyQJ5F6eGDRvXtqEKp04xEWr ghIXyhSShulrZ+75AGNbbxpOz0wKyMgpLHrv8RbVPzAxDogqc56LKBk4MwX1VECJ+l 9J+4TrHkB/svU0HL0h4Rno7E5SkT47ddKWUBghx8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37987: pds_core: Prevent possible adminq overflow/stuck condition Date: Tue, 20 May 2025 19:07:40 +0200 Message-ID: <2025052038-CVE-2025-37987-def3@gregkh> X-Mailer: git-send-email 2.49.0 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=3003; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=13AyeXHQN0ff6l3QUNIHQYxariBOZL0gSBWg5piW+PY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6226t6PZ+3BqrszA04tWcdJ/0QpXY0xFT/3bYqB5+Z PL5qtDcjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIwDaG+V7xv96+XMP9UyB4 l0EDp9+8hTUt7gwLuv5M8oh5LXW+tJhvoaXI29ia/xI2AA== 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: Prevent possible adminq overflow/stuck condition The pds_core's adminq is protected by the adminq_lock, which prevents more than 1 command to be posted onto it at any one time. This makes it so the client drivers cannot simultaneously post adminq commands. However, the completions happen in a different context, which means multiple adminq commands can be posted sequentially and all waiting on completion. On the FW side, the backing adminq request queue is only 16 entries long and the retry mechanism and/or overflow/stuck prevention is lacking. This can cause the adminq to get stuck, so commands are no longer processed and completions are no longer sent by the FW. As an initial fix, prevent more than 16 outstanding adminq commands so there's no way to cause the adminq from getting stuck. This works because the backing adminq request queue will never have more than 16 pending adminq commands, so it will never overflow. This is done by reducing the adminq depth to 16. The Linux kernel CVE team has assigned CVE-2025-37987 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 45d76f492938cdc27ddadc16e1e75103f4cfbf56 and fixed in 6.12.26 with commit 2982e07ad72b48eb12c29a87a3f2126ea552688c Issue introduced in 6.4 with commit 45d76f492938cdc27ddadc16e1e75103f4cfbf56 and fixed in 6.14.5 with commit 5e3dc65675faad846420d24762e4faadc12d9392 Issue introduced in 6.4 with commit 45d76f492938cdc27ddadc16e1e75103f4cfbf56 and fixed in 6.15-rc4 with commit d9e2f070d8af60f2c8c02b2ddf0a9e90b4e9220c 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-37987 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/core.c drivers/net/ethernet/amd/pds_core/core.h 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/2982e07ad72b48eb12c29a87a3f2126ea552688c https://git.kernel.org/stable/c/5e3dc65675faad846420d24762e4faadc12d9392 https://git.kernel.org/stable/c/d9e2f070d8af60f2c8c02b2ddf0a9e90b4e9220c