# CVE-2026-74583: net/sched: cls\_route: fix fastmap use-after-free on filter

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-21 · Modified: 2026-10-16
- Aliases: UBUNTU-CVE-2026-74583, DEBIAN-CVE-2026-74583
- Record: https://cvemate.com/vulnerability/CVE-2026-74583 · JSON: https://cvemate.com/vulnerability/CVE-2026-74583/json

## Description

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

net/sched: cls_route: fix fastmap use-after-free on filter

The route4 classifier maintains a 16-slot fastmap cache that stores raw
struct route4_filter pointers indexed by (id, iif). The reader
(route4_classify) populates this cache via route4_set_fastmap() for every
classified packet that hits a filter. The writer (route4_delete,
route4_change) clears the cache via route4_reset_fastmap() before
RCU-deferred kfree of the filter.

This creates a UAF race:
 1. Reader walks the RCU-protected bucket chain, finds filter f
 2. Writer unlinks f, calls route4_reset_fastmap(), then tcf_queue_work()
 3. Reader calls route4_set_fastmap() and writes f into the cache
    *after* the writer's reset, caching a pointer about to be freed
 4. After the RCU grace period, kfree(f) executes
 5. Next classified packet on the same (id, iif) tuple hits the stale
    fastmap entry and reads f->res from freed memory

Reproduced with an mdelay(100) accelerator in route4_set_fastmap() and a
concurrent add/delete stress test (provided by both zdi and Santosh).
Both triggered KASAN slab-use-after-free reports in the route4 fastmap
paths.

Fix:
Introduce a per-filter boolean dying flag to suppress stale fastmap
republishing by in-flight readers.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.177%, percentile 7.528%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 172)

- debian linux (Debian): \< 6.1.187-1 \| \< 6.12.105-1 \| \< 7.1.9-1
- debian linux-6.12 (Debian): \< 6.12.107-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-198.208 \| \< 6.8.0-149.149 \| \< 7.0.0-42.42
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1117.124 \| \< 6.8.0-1069.74 \| \< 7.0.0-1016.17
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1117.124~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74~22.04.1
- ubuntu linux-aws-7.0 (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-1017.18~24.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1117.124+fips1 \| \< 6.8.0-1069.74+fips1

## References (first 20 of 35)

- <https://git.kernel.org/stable/c/7897198b26445b4009a057bda1986b94a99e5d5f>
- <https://git.kernel.org/stable/c/820f083c294ad6d319c02a7d43294f2ed2565139>
- <https://git.kernel.org/stable/c/5ec9001be6d0eb527251125632ec8fe88278897f>
- <https://git.kernel.org/stable/c/b969984b2bdc85d721ce4047cd270cd37ec705a2>
- <https://git.kernel.org/stable/c/a17f636c9330eac879822ce29f998e5abd1b72c1>
- <https://git.kernel.org/stable/c/0e7a8cf8895b06d07c7311f028eba16ad742b9bc>
- <https://git.kernel.org/stable/c/ae9aff87025219005a2d16b4fe83d6f24643e50d>
- <https://git.kernel.org/stable/c/47d7f7051253bdc02b1d245d87e38f16d31a74df>
- <https://ubuntu.com/security/CVE-2026-74583>
- <https://www.cve.org/CVERecord?id=CVE-2026-74583>
- <https://ubuntu.com/security/notices/USN-8878-1>
- <https://ubuntu.com/security/notices/USN-8879-1>
- <https://ubuntu.com/security/notices/USN-8877-1>
- <https://ubuntu.com/security/notices/USN-8875-1>
- <https://ubuntu.com/security/notices/USN-8886-1>
- <https://ubuntu.com/security/notices/USN-8875-2>
- <https://security-tracker.debian.org/tracker/CVE-2026-74583>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-74583>
- <https://ubuntu.com/security/notices/USN-8959-1>
- <https://ubuntu.com/security/notices/USN-8963-1>

---

Data as of 2026-12-05T08:28:50.907Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
