| From bippy-1.2.0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@kernel.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2025-37886: pds_core: make wait_context part of q_info |
| |
| 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 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 |