Description
In the Linux kernel, the following vulnerability has been resolved:

netfilter: cttimeout: prevent UAF during module unload

nf_ct_set_timeout() protects the timeout hook dereference and policy lookup
with rcu_read_lock(). cttimeout_exit(), however, unregisters the per-net
operations before it clears the hook.

This allows the following interleaving:

CPU 0 CPU 1
cttimeout_exit() nf_ct_set_timeout()
unregister_pernet_subsys() rcu_read_lock()
kfree(pernet) h = nf_ct_timeout_hook
h->timeout_find_get()
nfct_timeout_pernet()

The hook still points to ctnl_timeout_find_get() when CPU 1 looks up the
already freed per-net timeout list. KASAN reported:

BUG: KASAN: slab-use-after-free in ctnl_timeout_find_get
Read of size 8 by task poc/90
Call Trace:
ctnl_timeout_find_get+0x271/0x2a0 [nfnetlink_cttimeout]
nf_ct_set_timeout+0x7b/0x3c0
xt_ct_tg_check+0x724/0xb20
xt_check_target+0x234/0xa90
do_ipt_set_ctl+0x570/0x1270
Allocated by task 89:
__kmalloc_noprof+0x16e/0x460
ops_init+0x6d/0x420
register_pernet_operations+0x2f6/0x670
Freed by task 91:
kfree+0x131/0x390
ops_undo_list+0x3d4/0x730
unregister_pernet_operations+0x232/0x490
unregister_pernet_subsys+0x1c/0x30
cttimeout_exit+0x52/0x970 [nfnetlink_cttimeout]

Clear the hook and wait for existing readers before unregistering the
per-net operations. This blocks new policy lookups and ensures readers that
observed the hook finish before the per-net storage is freed.
Published: 2026-09-25
Score: 7 High
EPSS: < 1% Very Low
KEV: No
Impact: Use-After-Free (kernel memory corruption)
Action: Immediate Patch
AI Analysis

Impact

An improper teardown of the netfilter cttimeout module caused the module to unregister per‑net operations before clearing a hook that is still referenced by policy lookup functions. This sequence leads to a use‑after‑free condition in the kernel. The flaw may surface when the module is unloaded concurrently with another CPU performing a timeout lookup, causing the hook to point at freed memory. An attacker could trigger the interleaving to cause a kernel panic or potentially execute arbitrary code with kernel privileges if the freed memory is subsequently corrupted.

Affected Systems

The defect is present in the Linux kernel, affecting all configurations that enable the nfnetlink_cttimeout module (netfilter cttimeout). The vulnerability applies to any kernel version that includes this module prior to the inclusion of the hotpatch described in the description. No specific kernel release is listed, so all kernels prior to being patched are considered affected.

Risk and Exploitability

Because the flaw is a kernel use‑after‑free, compromise could lead to privilege escalation. The CVSS score is 7, indicating a high severity, but the EPSS score is < 1% and the vulnerability is not listed in KEV. The likely attack vector is that an attacker would need the ability to load or unload kernel modules while another process performs concurrent timeout lookups; local users with privileged module loading rights could trigger the interleaving. The flaw occurs only under specific timing conditions, so an attacker must orchestrate such timing. Once the use‑after‑free is triggered, the kernel may crash or allow the attacker to hijack execution flow, depending on memory contents.

Generated by OpenCVE AI on October 1, 2026 at 08:01 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to a Linux kernel version that includes the fix for the cttimeout use‑after‑free, which clears the hook and waits for readers before unregistering per‑net operations.
  • If an update is not immediately possible, disable the nfnetlink_cttimeout module or the kernel configuration option that enables it to eliminate the vulnerable code path.
  • Restrict access to kernel module loading/unloading by enforcing strict permissions on /lib/modules and requiring elevated privileges (e.g., ensure only root or a designated group can run modprobe).

Generated by OpenCVE AI on October 1, 2026 at 08:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6568-1 linux security update
History

Wed, 21 Oct 2026 13:15:00 +0000


Sat, 03 Oct 2026 11:15:00 +0000


Wed, 30 Sep 2026 00:15:00 +0000


Fri, 25 Sep 2026 22:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 25 Sep 2026 15:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: netfilter: cttimeout: prevent UAF during module unload nf_ct_set_timeout() protects the timeout hook dereference and policy lookup with rcu_read_lock(). cttimeout_exit(), however, unregisters the per-net operations before it clears the hook. This allows the following interleaving: CPU 0 CPU 1 cttimeout_exit() nf_ct_set_timeout() unregister_pernet_subsys() rcu_read_lock() kfree(pernet) h = nf_ct_timeout_hook h->timeout_find_get() nfct_timeout_pernet() The hook still points to ctnl_timeout_find_get() when CPU 1 looks up the already freed per-net timeout list. KASAN reported: BUG: KASAN: slab-use-after-free in ctnl_timeout_find_get Read of size 8 by task poc/90 Call Trace: ctnl_timeout_find_get+0x271/0x2a0 [nfnetlink_cttimeout] nf_ct_set_timeout+0x7b/0x3c0 xt_ct_tg_check+0x724/0xb20 xt_check_target+0x234/0xa90 do_ipt_set_ctl+0x570/0x1270 Allocated by task 89: __kmalloc_noprof+0x16e/0x460 ops_init+0x6d/0x420 register_pernet_operations+0x2f6/0x670 Freed by task 91: kfree+0x131/0x390 ops_undo_list+0x3d4/0x730 unregister_pernet_operations+0x232/0x490 unregister_pernet_subsys+0x1c/0x30 cttimeout_exit+0x52/0x970 [nfnetlink_cttimeout] Clear the hook and wait for existing readers before unregistering the per-net operations. This blocks new policy lookups and ensures readers that observed the hook finish before the per-net storage is freed.
Title netfilter: cttimeout: prevent UAF during module unload
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-21T12:53:26.912Z

Reserved: 2026-09-24T16:01:01.158Z

Link: CVE-2026-97609

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:14.987

Modified: 2026-10-21T13:21:14.830

Link: CVE-2026-97609

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-97609 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T08:15:05Z

Weaknesses