---
id: CVE-2023-4015
title: >-
  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_d…
summary: >-
  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_d…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-416
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.9, < 5.10.190'
  - 'linux_kernel >= 5.11, < 5.15.124'
  - 'linux_kernel >= 5.16, < 6.1.43'
  - 'linux_kernel >= 6.2, < 6.4.8'
  - debian_linux = 12.0
patched:
  - linux_kernel 6.4.8
published: '2023-09-06'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T22:17:16.713'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2023-4015'
references:
  - url: >-
      https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0a771f7b266b02d262900c75f1e175c7fe76fec2
    label: cve-coordination@google.com
  - url: 'https://kernel.dance/0a771f7b266b02d262900c75f1e175c7fe76fec2'
    label: cve-coordination@google.com
  - url: 'https://www.debian.org/security/2023/dsa-5492'
    label: cve-coordination@google.com
  - url: >-
      https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0a771f7b266b02d262900c75f1e175c7fe76fec2
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://kernel.dance/0a771f7b266b02d262900c75f1e175c7fe76fec2'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.debian.org/security/2023/dsa-5492'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-794697.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-831302.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00292
epssPercentile: 0.21592
ingestedAt: '2026-10-14T23:00:02.002Z'
---

## Overview

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.

## Affected

- `linux_kernel >= 5.9, < 5.10.190`
- `linux_kernel >= 5.11, < 5.15.124`
- `linux_kernel >= 5.16, < 6.1.43`
- `linux_kernel >= 6.2, < 6.4.8`
- `debian_linux = 12.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.4.8`
