| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-57933: gve: guard XSK operations on the existence of queues |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| gve: guard XSK operations on the existence of queues |
| |
| This patch predicates the enabling and disabling of XSK pools on the |
| existence of queues. As it stands, if the interface is down, disabling |
| or enabling XSK pools would result in a crash, as the RX queue pointer |
| would be NULL. XSK pool registration will occur as part of the next |
| interface up. |
| |
| Similarly, xsk_wakeup needs be guarded against queues disappearing |
| while the function is executing, so a check against the |
| GVE_PRIV_FLAGS_NAPI_ENABLED flag is added to synchronize with the |
| disabling of the bit and the synchronize_net() in gve_turndown. |
| |
| The Linux kernel CVE team has assigned CVE-2024-57933 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 6.4 with commit fd8e40321a12391e6f554cc637d0c4b6109682a9 and fixed in 6.6.70 with commit 771d66f2bd8c4dba1286a9163ab982cecd825718 |
| Issue introduced in 6.4 with commit fd8e40321a12391e6f554cc637d0c4b6109682a9 and fixed in 6.12.9 with commit 8e8d7037c89437af12725f454e2eaf40e8166c0f |
| Issue introduced in 6.4 with commit fd8e40321a12391e6f554cc637d0c4b6109682a9 and fixed in 6.13 with commit 40338d7987d810fcaa95c500b1068a52b08eec9b |
| |
| 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-2024-57933 |
| 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/google/gve/gve_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/771d66f2bd8c4dba1286a9163ab982cecd825718 |
| https://git.kernel.org/stable/c/8e8d7037c89437af12725f454e2eaf40e8166c0f |
| https://git.kernel.org/stable/c/40338d7987d810fcaa95c500b1068a52b08eec9b |