# CVE-2026-74700: net/sched: cls\_api: Always acquire rtnl\_lock when destroying locked classifiers

> 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.17% (percentile 4, 2026-11-28)
- **Published:** 2026-08-22T15:33:00.933Z
- **Modified:** 2026-10-30T13:20:04.270Z

## Who should check

- Anyone running Linux \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< 73e8544e0df5d11b1914bcc25ae284946b51786d; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< 34e77d8e3570f9df3952496ddb402833695662fd; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< b648c8a56531aeabd1c14f6b5cf1891e269b3756; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< d6222af7274f08e7a1848131dc30319993d8f377; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< a81f9c44d87fb59d99fce72e29e02cab3a49a1c3; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< a347304b2ca1a5377d5bd2d8a72e4b4f12afe648
- Anyone running Linux 5.1

## Description

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

net/sched: cls\_api: Always acquire rtnl\_lock when destroying locked classifiers

Another challenge with unlocked filters.
There is a short window in tc\_new\_tfilter where a tcf\_proto can be found
and briefly referenced by a totally unrelated, unlocked classifier's request
and cause a race.

Feng created a poc which created this race with two threads, one creating a
u32 filter and other a flower filter in the same chain/prio:

1. Both threads enter tc\_new\_tfilter, both find the chain empty, both
   drop filter\_chain\_lock
2. u32 finishes tcf\_proto\_create("u32") first, calls
   tcf\_chain\_tp\_insert\_unique() -\> inserts u32\_tp into the chain
3. flower finishes tcf\_proto\_create("flower") later, calls
   tcf\_chain\_tp\_insert\_unique() -\> tcf\_chain\_tp\_find() now sees u32\_tp
   already there, takes a reference on it, destroys flower's own tp\_new
   and returns u32\_tp to the caller.

Flower then hits the kind mismatch check (because it requested for kind
"flower" but tp-\>ops-\>kind is "u32") and goes through the errout path
which calls tcf\_proto\_put() on u32\_tp. If the u32 thread has already
gone through its own errout (its change() call failed on the PoC's empty
options) and dropped its create and insert refs, flower's put is the
last one and drops u32\_tp's refcnt to zero.

At this point tp-\>ops-\>destroy() runs in a context that never took
rtnl\_lock. When that happens, it might cause a UAF like the following
(illustrated by the PoC):

\[  +0.000710\] BUG: KASAN: slab-use-after-free in u32\_init (net/sched/cls\_u32.c:393)
\[  +0.000281\] Read of size 8 at addr ffff888120022f00 by task poc\_feng\_xue/524

  Call Trace:
   u32\_init (net/sched/cls\_u32.c:393)
   tc\_new\_tfilter (net/sched/cls\_api.c:2378)

  Allocated by task 526:
   u32\_init (net/sched/cls\_u32.c:378)
   tc\_new\_tfilter (net/sched/cls\_api.c:2378)

  Freed by task 522:
   kfree
   u32\_destroy (net/sched/cls\_u32.c:662)
   tcf\_proto\_destroy (net/sched/cls\_api.c:446)
   tcf\_proto\_put (net/sched/cls\_api.c:459)
   tc\_new\_tfilter (net/sched/cls\_api.c:2459)

Fix this by having tcf\_proto\_destroy() take rtnl\_lock around
tp-\>ops-\>destroy() for locked classifiers whenever rtnl is not held.

To explain why I used a temp variable "not\_lockless" I'd like to point to a
semi-related note on rtnl\_held vs TCF\_PROTO\_OPS\_DOIT\_UNLOCKED (adding here
for future cleanup if deemed necessary):
The rtnl\_held parameter and the TCF\_PROTO\_OPS\_DOIT\_UNLOCKED flag are
redundant sources of truth for whether rtnl\_lock is held. Among the nine
classifier destroy(..rtnl\_held..) callbacks, only flower consults the
rtnl\_held parameter which it propagates to tc\_setup\_cb\_destroy()
and tc\_setup\_cb\_call(). The other eight (u32, flow, bpf, cgroup, route, basic,
fw, mall) ignore it entirely;-\> those that call tc\_setup\_cb\_destroy()
(u32, bpf, mall) hardcode true always instead of forwarding the parameter.

A future cleanup should remove the rtnl\_held parameter from the destroy callback
signature entirely and have callers rely solely on their knowledge whether
they are running in an unlocked context.

## Affected and fixed versions

- Linux: \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< 73e8544e0df5d11b1914bcc25ae284946b51786d; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< 34e77d8e3570f9df3952496ddb402833695662fd; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< b648c8a56531aeabd1c14f6b5cf1891e269b3756; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< d6222af7274f08e7a1848131dc30319993d8f377; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< a81f9c44d87fb59d99fce72e29e02cab3a49a1c3; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< a347304b2ca1a5377d5bd2d8a72e4b4f12afe648 (cvelist)
- Linux: 5.1 (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-74700. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74700.md
Affected: Linux >= 12db03b65c2b90752e4c37666977fd4a1b5f5824, < 73e8544e0df5d11b1914bcc25ae284946b51786d; >= 12db03b65c2b90752e4c37666977fd4a1b5f5824, < 34e77d8e3570f9df3952496ddb402833695662fd; >= 12db03b65c2b90752e4c37666977fd4a1b5f5824, < b648c8a56531aeabd1c14f6b5cf1891e269b3756; >= 12db03b65c2b90752e4c376…
Fixed in: Linux 73e8544e0df5d11b1914bcc25ae284946b51786d, Linux 34e77d8e3570f9df3952496ddb402833695662fd

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-74700 being exploited?

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

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

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

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

Linux \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< 73e8544e0df5d11b1914bcc25ae284946b51786d; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< 34e77d8e3570f9df3952496ddb402833695662fd; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< b648c8a56531aeabd1c14f6b5cf1891e269b3756; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< d6222af7274f08e7a1848131dc30319993d8f377; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< a81f9c44d87fb59d99fce72e29e02cab3a49a1c3; \>= 12db03b65c2b90752e4c37666977fd4a1b5f5824, \< a347304b2ca1a5377d5bd2d8a72e4b4f12afe648; Linux 5.1.

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

Yes. Fixed in Linux 73e8544e0df5d11b1914bcc25ae284946b51786d, Linux 34e77d8e3570f9df3952496ddb402833695662fd. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/73e8544e0df5d11b1914bcc25ae284946b51786d>
- other: <https://git.kernel.org/stable/c/34e77d8e3570f9df3952496ddb402833695662fd>
- other: <https://git.kernel.org/stable/c/b648c8a56531aeabd1c14f6b5cf1891e269b3756>
- other: <https://git.kernel.org/stable/c/d6222af7274f08e7a1848131dc30319993d8f377>
- other: <https://git.kernel.org/stable/c/a81f9c44d87fb59d99fce72e29e02cab3a49a1c3>
- other: <https://git.kernel.org/stable/c/a347304b2ca1a5377d5bd2d8a72e4b4f12afe648>

## 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-74700>

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