| From bippy-1.1.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-2023-53080: xsk: Add missing overflow check in xdp_umem_reg |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| xsk: Add missing overflow check in xdp_umem_reg |
| |
| The number of chunks can overflow u32. Make sure to return -EINVAL on |
| overflow. Also remove a redundant u32 cast assigning umem->npgs. |
| |
| The Linux kernel CVE team has assigned CVE-2023-53080 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 4.18 with commit bbff2f321a864ee07c9d3d1245af498023146951 and fixed in 5.10.177 with commit 580634b03a55f04a3c1968bcbd97736c079c6601 |
| Issue introduced in 4.18 with commit bbff2f321a864ee07c9d3d1245af498023146951 and fixed in 5.15.105 with commit 3cfc3564411acf96bf2fb791f706a1aa4f872c1d |
| Issue introduced in 4.18 with commit bbff2f321a864ee07c9d3d1245af498023146951 and fixed in 6.1.22 with commit a069909acc4435eeb41d05ccc03baa447cc01b7e |
| Issue introduced in 4.18 with commit bbff2f321a864ee07c9d3d1245af498023146951 and fixed in 6.2.9 with commit bb2e3bfb2a79db0c2057c6f701b782954394c67f |
| Issue introduced in 4.18 with commit bbff2f321a864ee07c9d3d1245af498023146951 and fixed in 6.3 with commit c7df4813b149362248d6ef7be41a311e27bf75fe |
| |
| 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-2023-53080 |
| 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: |
| net/xdp/xdp_umem.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/580634b03a55f04a3c1968bcbd97736c079c6601 |
| https://git.kernel.org/stable/c/3cfc3564411acf96bf2fb791f706a1aa4f872c1d |
| https://git.kernel.org/stable/c/a069909acc4435eeb41d05ccc03baa447cc01b7e |
| https://git.kernel.org/stable/c/bb2e3bfb2a79db0c2057c6f701b782954394c67f |
| https://git.kernel.org/stable/c/c7df4813b149362248d6ef7be41a311e27bf75fe |