CVE-2026-74583
Received Received - Intake

Use-After-Free in Linux Kernel Route4 Classifier

Vulnerability report for CVE-2026-74583, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-21

Last updated on: 2026-08-21

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-21
Last Modified
2026-08-21
Generated
2026-08-21
AI Q&A
2026-08-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a use-after-free (UAF) race condition in the Linux kernel's route4 classifier. It occurs when a filter is deleted while another process is still using it. The reader caches a pointer to the filter, but the writer frees it before the cache is updated, leading to a stale pointer being used after memory is freed.

Detection Guidance

This vulnerability is specific to the Linux kernel's route4 classifier and may not have direct detection commands. Monitor kernel logs for KASAN slab-use-after-free reports in route4 fastmap paths. Check for crashes or memory corruption in network traffic classification.

Impact Analysis

This vulnerability could allow an attacker to execute arbitrary code or cause a denial of service by exploiting the use-after-free condition. It affects systems using the Linux kernel with the route4 classifier, potentially leading to system crashes or unauthorized access.

Mitigation Strategies

Apply the kernel patch that introduces a per-filter dying flag to prevent stale fastmap republishing. Update to a Linux kernel version containing the fix. Avoid manual mitigation as the issue requires code changes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-74583. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart