KernelScan.io

HIGH Introduced in 6.2

net/sched act_ct UAF

CVE-2026-98442

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.0HIGH

01

In the Linux kernel, the following vulnerability has been resolved: net/sched: act_ct: fix helper UAF due to extensions realloc While calling the helpers, a raw pointer to the extensions area is wired into expectations list: -> nf_ct_helper() -> helper->help() -> nf_ct_expect_related_report() -> nf_ct_expect_insert() -> hlist_add_head_rcu(&exp->lnode, &master_help->expectations) In case the connection is not confirmed yet, more extensions can be added afterwards with *_ext_add() calls reallocating the extension space and leaving the now invalid pointer in the expectations list that is later accessed while removing the expectation. Make sure that helpers are called at the end after all the other extensions are already added. Note that the helper rejection now leaves the mark and labels set, but that's not different from how the NAT was handled before or how the mark and the labels were handled on confirmation failure. And there are no atomicity guarantees provided by the API anyway.

02

Engine v0.9.0

Risk summary

A local unprivileged user who can configure traffic control actions with connection tracking helpers can trigger a use-after-free in the kernel's netfilter connection tracking subsystem. This leads to memory corruption that can be exploited for privilege escalation or kernel crash. The bug is reachable when a TC ct action with a helper is applied to unconfirmed connections, which can be arranged by sending crafted packets through a configured classifier.

Affectednet/sched/act_ct.c (net/sched)

Vulnerability analysis

The act_ct traffic control action invokes connection tracking helpers while the connection is still unconfirmed. During helper execution, a raw pointer to the connection's extension area is stored in the expectations list. If the connection is not yet confirmed, subsequent extension additions (for NAT, marks, or labels) can reallocate the extension memory, invalidating the stored pointer. When the expectation is later removed, the stale pointer is dereferenced, causing a use-after-free. The fix reorders operations so that helpers are called only after all extensions have been added and the extension area is stable, eliminating the window where the pointer can become dangling.

03

BranchIntroducedFixed inPatch commit
6.126.26.12.1121679bbf5fbea
6.186.26.18.55812c16a255e7
6.66.26.6.16031f5fe29a572
7.26.27.2.98988f4d11f3f
mainline6.27.3dad19b59da05
cip/6.126.26.12.112-cip331679bbf5fbea

04

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

CIP treeState
cip/6.12Fixed in 6.12.112-cip33