# CVE-2023-4015: Use-after-free in Linux kernel's netfilter: nf\_tables component

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-09-06 · Modified: 2026-10-14
- Aliases: UBUNTU-CVE-2023-4015, DEBIAN-CVE-2023-4015
- Record: https://cvemate.com/vulnerability/CVE-2023-4015 · JSON: https://cvemate.com/vulnerability/CVE-2023-4015/json

## Description

```text
A use-after-free vulnerability in the Linux kernel's netfilter: nf_tables component can be exploited to achieve local privilege escalation.

On an error when building a nftables rule, deactivating immediate expressions in nft_immediate_deactivate() can lead unbinding the chain and objects be deactivated but later used.

We recommend upgrading past commit 0a771f7b266b02d262900c75f1e175c7fe76fec2.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.294%, percentile 23.644%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 94)

- debian linux (Debian): \< 6.1.52-1 \| \< 6.4.11-1
- ubuntu linux (Ubuntu): \< 5.15.0-82.91
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1043.48
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1043.48~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): \< 6.2.0-1010.10~22.04.1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1045.52
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1045.52~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-6.2 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 21)

- <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0a771f7b266b02d262900c75f1e175c7fe76fec2>
- <https://kernel.dance/0a771f7b266b02d262900c75f1e175c7fe76fec2>
- <https://www.debian.org/security/2023/dsa-5492>
- <https://ubuntu.com/security/CVE-2023-4015>
- <https://google.github.io/security-research/kernelctf/rules>
- <https://patchwork.ozlabs.org/project/netfilter-devel/patch/20230723142446.13809-1-pablo@netfilter.org/>
- <https://ubuntu.com/security/notices/USN-6315-1>
- <https://ubuntu.com/security/notices/USN-6316-1>
- <https://ubuntu.com/security/notices/USN-6318-1>
- <https://ubuntu.com/security/notices/USN-6321-1>
- <https://ubuntu.com/security/notices/USN-6325-1>
- <https://ubuntu.com/security/notices/USN-6328-1>
- <https://ubuntu.com/security/notices/USN-6330-1>
- <https://ubuntu.com/security/notices/USN-6332-1>
- <https://ubuntu.com/security/notices/USN-6348-1>
- <https://ubuntu.com/security/notices/USN-6385-1>
- <https://www.cve.org/CVERecord?id=CVE-2023-4015>
- <https://security-tracker.debian.org/tracker/CVE-2023-4015>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-4015>
- <https://cert-portal.siemens.com/productcert/html/ssa-831302.html>

---

Data as of 2026-12-05T02:50:03.335Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
