Skip to content
Heist/ feed
Back to feed
High

Use-after-free in Linux kernel's netfilter: nf_tables component

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-4015
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 23:32 UTC · Revision 1

Source evidence

Use-after-free in Linux kernel's netfilter: nf_tables component

core-osv · Original source

Published 6 Sept 2023, 13:52 UTC

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.

osv:CVE-2023-4015
Complete source record
{
  "id": "7f09b074e0e5bc34fa222ca594646564ab0f350c9705880eba6be12ae436d385",
  "url": "https://osv.dev/vulnerability/CVE-2023-4015",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Use-after-free in Linux kernel's netfilter: nf_tables component",
    "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_deactivate() can lead unbinding the chain and objects be deactivated but later used. We recommend upgrading past commit 0a771f7b266b02d262900c75f1e175c7fe76fec2.",
    "evidence": "osv:CVE-2023-4015",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-4015",
      "aliases": [
        "CVE-2023-4015"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6995e2de6891c724bfeb2db33d7b87775f913ad1"
                },
                {
                  "fixed": "2dde18cd1d8fac735875f2e4987f11817cc0bc2c"
                },
                {
                  "fixed": "0a771f7b266b02d262900c75f1e175c7fe76fec2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "6.4"
                      },
                      {
                        "fixed": "6.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "0a771f7b266b02d262900c75f1e175c7fe76fec2"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v6.5-rc1",
            "v6.5-rc2",
            "v6.5-rc7",
            "v6.5-rc4",
            "v6.5-rc3",
            "v6.5-rc6",
            "v6.5-rc5",
            "v6.4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-4015.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:40.534018713Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-794697.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-831302.html",
        "https://git.kernel.org",
        "https://kernel.dance/0a771f7b266b02d262900c75f1e175c7fe76fec2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4015.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-4015",
        "https://www.debian.org/security/2023/dsa-5492",
        "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0a771f7b266b02d262900c75f1e175c7fe76fec2"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-416"
        ],
        "cna_assigner": "Google",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4015.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-4015",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507992,
  "published_at": "2023-09-06T13:52:44.724+00:00"
}