# CVE-2023-53200: netfilter: x\_tables: fix percpu counter block leak on error path when creating new netns

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-09-15T14:21:28.466Z
- **Modified:** 2026-11-05T21:17:19.090Z

## Who should check

- Anyone running Linux \>= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, \< e306dbee4c98025a9326386023a12ef4d887e9d1; \>= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, \< 512b6c4b83c91d007301ea7d7f095d16c3aceacd; \>= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, \< 3cc9610a87b7dde82f7360dd4eb6c2c27940ed57; \>= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, \< 0af8c09c896810879387decfba8c942994bb61f5
- Anyone running Linux 4.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

netfilter: x\_tables: fix percpu counter block leak on error path when creating new netns

Here is the stack where we allocate percpu counter block:

  +-\< \_\_alloc\_percpu
    +-\< xt\_percpu\_counter\_alloc
      +-\< find\_check\_entry \# {arp,ip,ip6}\_tables.c
        +-\< translate\_table

And it can be leaked on this code path:

  +-\> ip6t\_register\_table
    +-\> translate\_table \# allocates percpu counter block
    +-\> xt\_register\_table \# fails

there is no freeing of the counter block on xt\_register\_table fail.
Note: xt\_percpu\_counter\_free should be called to free it like we do in
do\_replace through cleanup\_entry helper (or in \_\_ip6t\_unregister\_table).

Probability of hitting this error path is low AFAICS (xt\_register\_table
can only return ENOMEM here, as it is not replacing anything, as we are
creating new netns, and it is hard to imagine that all previous
allocations succeeded and after that one in xt\_register\_table failed).
But it's worth fixing even the rare leak.

## Affected and fixed versions

- Linux: \>= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, \< e306dbee4c98025a9326386023a12ef4d887e9d1; \>= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, \< 512b6c4b83c91d007301ea7d7f095d16c3aceacd; \>= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, \< 3cc9610a87b7dde82f7360dd4eb6c2c27940ed57; \>= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, \< 0af8c09c896810879387decfba8c942994bb61f5 (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- Upgrade Linux to 0af8c09c896810879387decfba8c942994bb61f5 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53200.md
Affected: Linux >= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, < e306dbee4c98025a9326386023a12ef4d887e9d1; >= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, < 512b6c4b83c91d007301ea7d7f095d16c3aceacd; >= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, < 3cc9610a87b7dde82f7360dd4eb6c2c27940ed57; >= 71ae0dff02d756e4d2ca710…
Fixed in: Linux 512b6c4b83c91d007301ea7d7f095d16c3aceacd, Linux 3cc9610a87b7dde82f7360dd4eb6c2c27940ed57, Linux 0af8c09c896810879387decfba8c942994bb61f5

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-53200 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, \< e306dbee4c98025a9326386023a12ef4d887e9d1; \>= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, \< 512b6c4b83c91d007301ea7d7f095d16c3aceacd; \>= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, \< 3cc9610a87b7dde82f7360dd4eb6c2c27940ed57; \>= 71ae0dff02d756e4d2ca710b79f2ff5390029a5f, \< 0af8c09c896810879387decfba8c942994bb61f5; Linux 4.2.

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

Yes. Fixed in Linux 512b6c4b83c91d007301ea7d7f095d16c3aceacd, Linux 3cc9610a87b7dde82f7360dd4eb6c2c27940ed57, Linux 0af8c09c896810879387decfba8c942994bb61f5. Upgrade Linux to 0af8c09c896810879387decfba8c942994bb61f5 or later.

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

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/e306dbee4c98025a9326386023a12ef4d887e9d1>
- patch: <https://git.kernel.org/stable/c/512b6c4b83c91d007301ea7d7f095d16c3aceacd>
- patch: <https://git.kernel.org/stable/c/3cc9610a87b7dde82f7360dd4eb6c2c27940ed57>
- patch: <https://git.kernel.org/stable/c/0af8c09c896810879387decfba8c942994bb61f5>

## 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-53200>

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