Description
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.
Published: 2026-08-21
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Potential kernel memory corruption leading to privilege escalation
Action: Immediate Patch
AI Analysis

Impact

The vulnerability exists in the Linux kernel’s network scheduler, within the cls_route classifier. A race condition arises between packet classification (reader) and filter deletion (writer). If a filter pointer is cleared and freed while still referenced in the route4 fastmap cache, subsequent packet processing may read the freed memory, causing a use‑after‑free in kernel space. This memory corruption could allow arbitrary code execution in kernel context and potentially enable privilege escalation.

Affected Systems

All Linux kernel builds that include the cls_route fastmap implementation prior to the recent commit are affected. The affected vendor is Linux:Linux, covering all distributions that ship this kernel code.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity. EPSS score of 0.00165 (less than 1%) and the CVE is not listed in CISA's KEV catalog, so no publicly known exploits are reported. Based on the description, it is inferred that the race condition can be triggered by concurrent packet classification and filter manipulation; the exact attack vector is not explicitly identified in the advisory. The low EPSS score indicates a very low probability of exploitation, although the available information suggests that exploitation is possible under the right conditions.

Generated by OpenCVE AI on August 25, 2026 at 06:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to the latest patched release that includes the route4 fastmap use‑after‑free fix.
  • If an upgrade cannot be applied immediately, disable or unload the cls_route classifier to remove the vulnerable code path.
  • Monitor kernel logs for KASAN or memory corruption messages and enable additional hardening such as SELinux or AppArmor to limit the impact of an exploit.

Generated by OpenCVE AI on August 25, 2026 at 06:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4777-1 linux security update
Debian DSA Debian DSA DSA-6466-1 linux security update
History

Tue, 25 Aug 2026 05:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

cvssV3_1

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


Sat, 22 Aug 2026 02:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 22 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Fri, 21 Aug 2026 18:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 21 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
Description 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.
Title net/sched: cls_route: fix fastmap use-after-free on filter
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-08-25T05:40:10.077Z

Reserved: 2026-08-15T05:44:03.918Z

Link: CVE-2026-74583

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-21T17:16:44.643

Modified: 2026-08-25T06:18:32.033

Link: CVE-2026-74583

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-21T00:00:00Z

Links: CVE-2026-74583 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T07:00:08Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference