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 CA6581A239F for ; Fri, 9 May 2025 06:45:58 +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=1746773158; cv=none; b=OKtxdGUckqDtxib9oc3kNVS3/uH/Z7TSmKy2vBpZLGZWvq9RqA8cJ3PPeUZ8kLlIaahCcB/kiNfB7A9hIELrUIdv6D3LGtC7FSgZeR5b+V25q7z5EkciS8+p6eS604qCn+0Hjg7Q02mxX+439e3SvT62nFlW3MRTh6GcDVnyAnI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746773158; c=relaxed/simple; bh=QVrPXThQC4D2XIupYCyQcmhlfru3MODb4LdTnfAZ+MY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AnQjOasSYoEnpsDp0ENahh1Iek7elqY+Aq+pXSaDyA276Dzzh4x+JFBe7sIqcff9SQ5QHgrqGhJCvWcJyKwt3d4wrH0NAS7S+N+iaCzpgs8jnnZXay2QQajesUO+CV7rJDYrRw93i56EG+2yoy0P/Jy5/I+0pjM1BCA9FW8gTEc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P6R1wnVQ; 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="P6R1wnVQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D162C4CEE9; Fri, 9 May 2025 06:45:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746773158; bh=QVrPXThQC4D2XIupYCyQcmhlfru3MODb4LdTnfAZ+MY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=P6R1wnVQHqx/nbT/gabpnJmvJoXawI06fLdGHo02mp/fW0lHBx/8Kp3LAiUZPBdJf He+1PwSK8YmMwhynDWEqSb23SF47Y9K3i5Kva7iM3JQBybKHO89Rbqyl2uFMPWBcbM OCc+h3pHFspd5VhxCTQTSvtijKESwxiNXCZEb6Yc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37886: pds_core: make wait_context part of q_info Date: Fri, 9 May 2025 08:45:53 +0200 Message-ID: <2025050945-CVE-2025-37886-cab3@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=2919; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jY4NvEUjosJ1z8nsrE6wxiekaaJPekr0x8vre2GTdIA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyS2YpaurZL/lXJRDffufIg/hL9nc3/pHM1377+N9X4 2OSR1/0dcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEeBUYFnRtUpReZPq/Q9K7 yb1T6WHNth/XrjIsOMrm4Fdo+eDS/fUq7hWhS4M/Fm5YDAA= 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: make wait_context part of q_info Make the wait_context a full part of the q_info struct rather than a stack variable that goes away after pdsc_adminq_post() is done so that the context is still available after the wait loop has given up. There was a case where a slow development firmware caused the adminq request to time out, but then later the FW finally finished the request and sent the interrupt. The handler tried to complete_all() the completion context that had been created on the stack in pdsc_adminq_post() but no longer existed. This caused bad pointer usage, kernel crashes, and much wailing and gnashing of teeth. The Linux kernel CVE team has assigned CVE-2025-37886 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 01ba61b55b2041a39c54aefb3153c770dd59a0ef and fixed in 6.6.89 with commit 1d7c4b2b0bbfb09b55b2dc0e2355d7936bf89381 Issue introduced in 6.4 with commit 01ba61b55b2041a39c54aefb3153c770dd59a0ef and fixed in 6.12.26 with commit 66d7702b42ffdf0dce4808626088268a4e905ca6 Issue introduced in 6.4 with commit 01ba61b55b2041a39c54aefb3153c770dd59a0ef and fixed in 6.14.5 with commit 520f012fe75fb8efc9f16a57ef929a7a2115d892 Issue introduced in 6.4 with commit 01ba61b55b2041a39c54aefb3153c770dd59a0ef and fixed in 6.15-rc4 with commit 3f77c3dfffc7063428b100c4945ca2a7a8680380 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-37886 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/adminq.c 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/1d7c4b2b0bbfb09b55b2dc0e2355d7936bf89381 https://git.kernel.org/stable/c/66d7702b42ffdf0dce4808626088268a4e905ca6 https://git.kernel.org/stable/c/520f012fe75fb8efc9f16a57ef929a7a2115d892 https://git.kernel.org/stable/c/3f77c3dfffc7063428b100c4945ca2a7a8680380