KernelScan.io

HIGH Public exploit Introduced in 5.9

netfilter ChainBinding UAF

CVE-2023-3610

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.8HIGH

01

A use-after-free vulnerability in the Linux kernel's netfilter: nf_tables component can be exploited to achieve local privilege escalation. Flaw in the error handling of bound chains causes a use-after-free in the abort path of NFT_MSG_NEWRULE. The vulnerability requires CAP_NET_ADMIN to be triggered. We recommend upgrading past commit 4bedf9eee016286c835e3d8fa981ddece5338795.

02

Engine v0.6.0

Risk summary

Hosts running the affected netfilter code are at risk from a local process with CAP_NET_ADMIN that submits a crafted nftables update. A failed rule construction can trigger a kernel use-after-free, and successful exploitation may escalate local privileges or compromise the confidentiality, integrity, or availability of the host.

Affectednet/netfilter/nf_tables_api.c (netfilter/nf_tables)

Vulnerability analysis

When a new nftables rule targets a bound chain and a later expression fails, the original transaction did not retain the fact that binding had already happened. The rollback and rule-cleanup paths could therefore account for the same chain and its rules with unbalanced references, allowing the chain to be freed while a later cleanup step still accessed it and producing a use-after-free. The fix records that binding state, skips rollback work already handled by another transaction record, and balances references during preparation, commit, deletion, and rollback; it also rejects unsupported nested bindings. The trigger is a local control-plane operation: a process holding CAP_NET_ADMIN submits a crafted rule transaction through nftables, and it does not require an ordinary network packet or special hardware.

Exploit availability

KernelScan found public exploit code for this CVE. Open it in the CVE browser to see what we found, where, and how strong the evidence is — that needs a free account with a confirmed email address.

03

BranchIntroducedFixed inPatch commit
5.105.95.10.188d53c295c1f43
5.155.95.15.119314a8697d080
6.15.96.1.36891cd2edddc7
6.65.96.6.119824064683a7
mainline5.96.44bedf9eee016
cip/5.105.95.10.191-cip38d53c295c1f43
cip/5.10-rt5.95.10.194-cip39-rt16d53c295c1f43
cip/6.15.96.1.38-cip1891cd2edddc7
cip/6.1-rt5.96.1.38-cip1-rt1891cd2edddc7

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.1Fixed in 6.1.38-cip1
cip/6.1-rtFixed in 6.1.38-cip1-rt1
cip/5.10Fixed in 5.10.191-cip38
cip/5.10-rtFixed in 5.10.194-cip39-rt16