# CVE-2026-46319: net/sched: act\_ct: Only release RCU read lock after ct\_ft

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.14% (percentile 2, 2026-11-26)
- **CWE:** CWE-416, CWE-362
- **Published:** 2026-06-09T12:11:12.128Z
- **Modified:** 2026-10-19T20:18:42.577Z

## Who should check

- Anyone running Linux \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< ece578ca61e572df96cfc80456357ebfae0b4b9e; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< a2e0c045c87aa252eb61412e67dd91f2c2b19f81; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< 67c9ecc9f2575273ed1323e312881fc98ac83d6d; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< f23424a0ddadb494d4bd57056a7ca703312d3a7b; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< 17dfb67cb399b660105d9a8c6100851c0d0cdc70; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< 4c727c6967a41b37efe0f26332ca9ec5b74785a3; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< 3e20e1b3058e0b94638e7b931c138e840e266724; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< f462dca0c8415bf0058d0ffa476354c4476d0f09
- Anyone running Linux 5.7

## Description

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

net/sched: act\_ct: Only release RCU read lock after ct\_ft

When looking up a flow table in act\_ct in tcf\_ct\_flow\_table\_get(),
rhashtable\_lookup\_fast() internally opens and closes an RCU read critical
section before returning ct\_ft.
The tcf\_ct\_flow\_table\_cleanup\_work() can complete before refcount\_inc\_not\_zero()
is invoked on the returned ct\_ft resulting in a UAF on the already freed ct\_ft
object. This vulnerability can lead to privilege escalation.

Analysis from zdi-disclosures@trendmicro.com:
When initializing act\_ct, tcf\_ct\_init() is called, which internally triggers
tcf\_ct\_flow\_table\_get().

static int tcf\_ct\_flow\_table\_get(struct net \*net, struct tcf\_ct\_params \*params)

{
                struct zones\_ht\_key key = { .net = net, .zone = params-\>zone };
                struct tcf\_ct\_flow\_table \*ct\_ft;
                int err = -ENOMEM;

                mutex\_lock(&zones\_mutex);
                ct\_ft = rhashtable\_lookup\_fast(&zones\_ht, &key, zones\_params); // \[1\]
                if (ct\_ft && refcount\_inc\_not\_zero(&ct\_ft-\>ref)) // \[2\]
                                goto out\_unlock;
                ...
}

static \_\_always\_inline void \*rhashtable\_lookup\_fast(
                struct rhashtable \*ht, const void \*key,
                const struct rhashtable\_params params)
{
                void \*obj;

                rcu\_read\_lock();
                obj = rhashtable\_lookup(ht, key, params);
                rcu\_read\_unlock();

                return obj;
}

At \[1\], rhashtable\_lookup\_fast() looks up and returns the corresponding ct\_ft
from zones\_ht . The lookup is performed within an RCU read critical section
through rcu\_read\_lock() / rcu\_read\_unlock(), which prevents the object from
being freed. However, at the point of function return, rcu\_read\_unlock() has
already been called, and there is nothing preventing ct\_ft from being freed
before reaching refcount\_inc\_not\_zero(&ct\_ft-\>ref) at \[2\]. This interval becomes
the race window, during which ct\_ft can be freed.

Free Process:

tcf\_ct\_flow\_table\_put() is executed through the path tcf\_ct\_cleanup() call\_rcu()
tcf\_ct\_params\_free\_rcu() tcf\_ct\_params\_free() tcf\_ct\_flow\_table\_put().

static void tcf\_ct\_flow\_table\_put(struct tcf\_ct\_flow\_table \*ct\_ft)
{
                if (refcount\_dec\_and\_test(&ct\_ft-\>ref)) {
                                rhashtable\_remove\_fast(&zones\_ht, &ct\_ft-\>node, zones\_params);
                                INIT\_RCU\_WORK(&ct\_ft-\>rwork, tcf\_ct\_flow\_table\_cleanup\_work); // \[3\]
                                queue\_rcu\_work(act\_ct\_wq, &ct\_ft-\>rwork);
                }
}

At \[3\], tcf\_ct\_flow\_table\_cleanup\_work() is scheduled as RCU work

static void tcf\_ct\_flow\_table\_cleanup\_work(struct work\_struct \*work)

{
                struct tcf\_ct\_flow\_table \*ct\_ft;
                struct flow\_block \*block;

                ct\_ft = container\_of(to\_rcu\_work(work), struct tcf\_ct\_flow\_table,
                                                                rwork);
                nf\_flow\_table\_free(&ct\_ft-\>nf\_ft);
                block = &ct\_ft-\>nf\_ft.flow\_block;
                down\_write(&ct\_ft-\>nf\_ft.flow\_block\_lock);
                WARN\_ON(!list\_empty(&block-\>cb\_list));
                up\_write(&ct\_ft-\>nf\_ft.flow\_block\_lock);
                kfree(ct\_ft); // \[4\]

                module\_put(THIS\_MODULE);
}

tcf\_ct\_flow\_table\_cleanup\_work() frees ct\_ft at \[4\]. When this function executes
between \[1\] and \[2\], UAF occurs.

This race condition has a very short race window, making it generally
difficult to trigger. Therefore, to trigger the vulnerability an msleep(100) was
inserted after\[1\]

## Affected and fixed versions

- Linux: \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< ece578ca61e572df96cfc80456357ebfae0b4b9e; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< a2e0c045c87aa252eb61412e67dd91f2c2b19f81; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< 67c9ecc9f2575273ed1323e312881fc98ac83d6d; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< f23424a0ddadb494d4bd57056a7ca703312d3a7b; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< 17dfb67cb399b660105d9a8c6100851c0d0cdc70; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< 4c727c6967a41b37efe0f26332ca9ec5b74785a3; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< 3e20e1b3058e0b94638e7b931c138e840e266724; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< f462dca0c8415bf0058d0ffa476354c4476d0f09 (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-46319. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-46319.md
Affected: Linux >= 138470a9b2cc2e26e6018300394afc3858a54e6a, < ece578ca61e572df96cfc80456357ebfae0b4b9e; >= 138470a9b2cc2e26e6018300394afc3858a54e6a, < a2e0c045c87aa252eb61412e67dd91f2c2b19f81; >= 138470a9b2cc2e26e6018300394afc3858a54e6a, < 67c9ecc9f2575273ed1323e312881fc98ac83d6d; >= 138470a9b2cc2e26e601830…
Fixed in: Linux 67c9ecc9f2575273ed1323e312881fc98ac83d6d, Linux 17dfb67cb399b660105d9a8c6100851c0d0cdc70, Linux 4c727c6967a41b37efe0f26332ca9ec5b74785a3, Linux 3e20e1b3058e0b94638e7b931c138e840e266724

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-46319 being exploited?

There is no confirmed exploitation: CVE-2026-46319 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.14% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-46319?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-46319?

Linux \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< ece578ca61e572df96cfc80456357ebfae0b4b9e; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< a2e0c045c87aa252eb61412e67dd91f2c2b19f81; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< 67c9ecc9f2575273ed1323e312881fc98ac83d6d; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< f23424a0ddadb494d4bd57056a7ca703312d3a7b; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< 17dfb67cb399b660105d9a8c6100851c0d0cdc70; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< 4c727c6967a41b37efe0f26332ca9ec5b74785a3; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< 3e20e1b3058e0b94638e7b931c138e840e266724; \>= 138470a9b2cc2e26e6018300394afc3858a54e6a, \< f462dca0c8415bf0058d0ffa476354c4476d0f09; Linux 5.7.

### Is there a fix for CVE-2026-46319?

Yes. Fixed in Linux 67c9ecc9f2575273ed1323e312881fc98ac83d6d, Linux 17dfb67cb399b660105d9a8c6100851c0d0cdc70, Linux 4c727c6967a41b37efe0f26332ca9ec5b74785a3, Linux 3e20e1b3058e0b94638e7b931c138e840e266724. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-46319?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ece578ca61e572df96cfc80456357ebfae0b4b9e>
- patch: <https://git.kernel.org/stable/c/a2e0c045c87aa252eb61412e67dd91f2c2b19f81>
- patch: <https://git.kernel.org/stable/c/67c9ecc9f2575273ed1323e312881fc98ac83d6d>
- patch: <https://git.kernel.org/stable/c/f23424a0ddadb494d4bd57056a7ca703312d3a7b>
- patch: <https://git.kernel.org/stable/c/17dfb67cb399b660105d9a8c6100851c0d0cdc70>
- patch: <https://git.kernel.org/stable/c/4c727c6967a41b37efe0f26332ca9ec5b74785a3>
- patch: <https://git.kernel.org/stable/c/3e20e1b3058e0b94638e7b931c138e840e266724>
- patch: <https://git.kernel.org/stable/c/f462dca0c8415bf0058d0ffa476354c4476d0f09>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-46319>

HTML: <https://flawdb.com/CVE-2026-46319> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-46319>
