# CVE-2023-52628: netfilter: nftables: exthdr: fix 4-byte stack OOB write

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-03-28T07:33:46.217Z
- **Modified:** 2026-08-05T09:10:47.591Z

## Who should check

- Anyone running Linux \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< 28a97c43c9e32f437ebb8d6126f9bb7f3ca9521a; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< cf39c4f77a773a547ac2bcf30ecdd303bb0c80cb; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< a7d86a77c33ba1c357a7504341172cc1507f0698; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< 1ad7b189cc1411048434e8595ffcbe7873b71082; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< d9ebfc0f21377690837ebbd119e679243e0099cc; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< c8f292322ff16b9a2272a67de396c09a50e09dce; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< fd94d9dadee58e09b49075240fe83423eb1dcd36
- Anyone running Linux 4.1

## 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 and fixed versions

- Linux: \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< 28a97c43c9e32f437ebb8d6126f9bb7f3ca9521a; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< cf39c4f77a773a547ac2bcf30ecdd303bb0c80cb; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< a7d86a77c33ba1c357a7504341172cc1507f0698; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< 1ad7b189cc1411048434e8595ffcbe7873b71082; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< d9ebfc0f21377690837ebbd119e679243e0099cc; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< c8f292322ff16b9a2272a67de396c09a50e09dce; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< fd94d9dadee58e09b49075240fe83423eb1dcd36 (cvelist)
- Linux: 4.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52628. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52628.md
Affected: Linux >= 49499c3e6e18b7677a63316f3ff54a16533dc28f, < 28a97c43c9e32f437ebb8d6126f9bb7f3ca9521a; >= 49499c3e6e18b7677a63316f3ff54a16533dc28f, < cf39c4f77a773a547ac2bcf30ecdd303bb0c80cb; >= 49499c3e6e18b7677a63316f3ff54a16533dc28f, < a7d86a77c33ba1c357a7504341172cc1507f0698; >= 49499c3e6e18b7677a63316…
Fixed in: Linux 28a97c43c9e32f437ebb8d6126f9bb7f3ca9521a, Linux 1ad7b189cc1411048434e8595ffcbe7873b71082

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52628 being exploited?

There is no confirmed exploitation: CVE-2023-52628 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52628?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52628?

Linux \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< 28a97c43c9e32f437ebb8d6126f9bb7f3ca9521a; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< cf39c4f77a773a547ac2bcf30ecdd303bb0c80cb; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< a7d86a77c33ba1c357a7504341172cc1507f0698; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< 1ad7b189cc1411048434e8595ffcbe7873b71082; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< d9ebfc0f21377690837ebbd119e679243e0099cc; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< c8f292322ff16b9a2272a67de396c09a50e09dce; \>= 49499c3e6e18b7677a63316f3ff54a16533dc28f, \< fd94d9dadee58e09b49075240fe83423eb1dcd36; Linux 4.1.

### Is there a fix for CVE-2023-52628?

Yes. Fixed in Linux 28a97c43c9e32f437ebb8d6126f9bb7f3ca9521a, Linux 1ad7b189cc1411048434e8595ffcbe7873b71082. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-52628?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/28a97c43c9e32f437ebb8d6126f9bb7f3ca9521a>
- patch: <https://git.kernel.org/stable/c/cf39c4f77a773a547ac2bcf30ecdd303bb0c80cb>
- patch: <https://git.kernel.org/stable/c/a7d86a77c33ba1c357a7504341172cc1507f0698>
- patch: <https://git.kernel.org/stable/c/1ad7b189cc1411048434e8595ffcbe7873b71082>
- patch: <https://git.kernel.org/stable/c/d9ebfc0f21377690837ebbd119e679243e0099cc>
- patch: <https://git.kernel.org/stable/c/c8f292322ff16b9a2272a67de396c09a50e09dce>
- patch: <https://git.kernel.org/stable/c/fd94d9dadee58e09b49075240fe83423eb1dcd36>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52628>

HTML: <https://flawdb.com/CVE-2023-52628> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52628>
