Vulnerability · Published Mar 28, 2024 · Assigned by Linux
CVE-2023-52628netfilter: nftables: exthdr: fix 4-byte stack OOB write
High 7.8
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: netfilter: nftables: exthdr: fix 4-byte stack OOB write If priv->len is a multiple of 4, then dst[len / 4] can write past the destination array which leads to stack corruption. This construct is necessary to clean the remainder of the register in case ->len is NOT a multiple of the register size, so make it conditional just like nft_payload.c does. The bug was added in 4.1 cycle and then copied/inherited when tcp/sctp and ip option support was added. Bug reported by Zero Day Initiative project (ZDI-CAN-21950, ZDI-CAN-21951, ZDI-CAN-21961).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.55-1 | DEBIAN-CVE-2023-52628 |
| Debian:13 | linux | 6.5.6-1 | DEBIAN-CVE-2023-52628 |
| Debian:14 | linux | 6.5.6-1 | DEBIAN-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux | 5.15.0-87.97 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1048.53 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | 6.5.0-1010.10~22.04.1 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1050.57 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | 6.5.0-1009.9~22.04.1 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1050.57.1 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1045.53 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1045.50 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1031.37 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1041.44 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1043.49 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1045.50 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-87.96 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1039.39 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1019.19 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1006.6 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | 6.5.0-1007.7 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1046.52 | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1041.44 | UBUNTU-CVE-2023-52628 |
| Ubuntu:24.04:LTS | linux-raspi | 6.7.0-1001.1 | UBUNTU-CVE-2023-52628 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2023-52628 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1025.29 | UBUNTU-CVE-2023-52628 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 49499c3e6e18b7677a63316f3ff54a16533dc28f – before 28a97c43c9e32f437ebb8d6126f9bb7f3ca9521a49499c3e6e18b7677a63316f3ff54a16533dc28f – before cf39c4f77a773a547ac2bcf30ecdd303bb0c80cb49499c3e6e18b7677a63316f3ff54a16533dc28f – before a7d86a77c33ba1c357a7504341172cc1507f069849499c3e6e18b7677a63316f3ff54a16533dc28f – before 1ad7b189cc1411048434e8595ffcbe7873b7108249499c3e6e18b7677a63316f3ff54a16533dc28f – before d9ebfc0f21377690837ebbd119e679243e0099cc49499c3e6e18b7677a63316f3ff54a16533dc28f – before c8f292322ff16b9a2272a67de396c09a50e09dce49499c3e6e18b7677a63316f3ff54a16533dc28f – before fd94d9dadee58e09b49075240fe83423eb1dcd36 |
| Linux | Linux | 4.1 |
References
- https://git.kernel.org/stable/c/28a97c43c9e32f437ebb8d6126f9bb7f3ca9521a
- https://git.kernel.org/stable/c/cf39c4f77a773a547ac2bcf30ecdd303bb0c80cb
- https://git.kernel.org/stable/c/a7d86a77c33ba1c357a7504341172cc1507f0698
- https://git.kernel.org/stable/c/1ad7b189cc1411048434e8595ffcbe7873b71082
- https://git.kernel.org/stable/c/d9ebfc0f21377690837ebbd119e679243e0099cc
- https://git.kernel.org/stable/c/c8f292322ff16b9a2272a67de396c09a50e09dce
- https://git.kernel.org/stable/c/fd94d9dadee58e09b49075240fe83423eb1dcd36
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html