{"id":"CVE-2026-74583","aliases":["CVE-2026-74583"],"related":[],"kind":"vulnerability","state":"published","title":"net/sched: cls_route: fix fastmap use-after-free on filter","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: cls_route: fix fastmap use-after-free on filter\n\nThe route4 classifier maintains a 16-slot fastmap cache that stores raw\nstruct route4_filter pointers indexed by (id, iif). The reader\n(route4_classify) populates this cache via route4_set_fastmap() for every\nclassified packet that hits a filter. The writer (route4_delete,\nroute4_change) clears the cache via route4_reset_fastmap() before\nRCU-deferred kfree of the filter.\n\nThis creates a UAF race:\n 1. Reader walks the RCU-protected bucket chain, finds filter f\n 2. Writer unlinks f, calls route4_reset_fastmap(), then tcf_queue_work()\n 3. Reader calls route4_set_fastmap() and writes f into the cache\n    *after* the writer's reset, caching a pointer about to be freed\n 4. After the RCU grace period, kfree(f) executes\n 5. Next classified packet on the same (id, iif) tuple hits the stale\n    fastmap entry and reads f->res from freed memory\n\nReproduced with an mdelay(100) accelerator in route4_set_fastmap() and a\nconcurrent add/delete stress test (provided by both zdi and Santosh).\nBoth triggered KASAN slab-use-after-free reports in the route4 fastmap\npaths.\n\nFix:\nIntroduce a per-filter boolean dying flag to suppress stale fastmap\nrepublishing by in-flight readers.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: cls_route: fix fastmap use-after-free on filter\n\nThe route4 classifier maintains a 16-slot fastmap cache that stores raw\nstruct route4_filter pointers indexed by (id, iif). The reader\n(route4_classify) populates this cache via route4_set_fastmap() for every\nclassified packet that hits a filter. The writer (route4_delete,\nroute4_change) clears the cache via route4_reset_fastmap() before\nRCU-deferred kfree of the filter.\n\nThis creates a UAF race:\n 1. Reader walks the RCU-protected bucket chain, finds filter f\n 2. Writer unlinks f, calls route4_reset_fastmap(), then tcf_queue_work()\n 3. Reader calls route4_set_fastmap() and writes f into the cache\n    *after* the writer's reset, caching a pointer about to be freed\n 4. After the RCU grace period, kfree(f) executes\n 5. Next classified packet on the same (id, iif) tuple hits the stale\n    fastmap entry and reads f->res from freed memory\n\nReproduced with an mdelay(100) accelerator in route4_set_fastmap() and a\nconcurrent add/delete stress test (provided by both zdi and Santosh).\nBoth triggered KASAN slab-use-after-free reports in the route4 fastmap\npaths.\n\nFix:\nIntroduce a per-filter boolean dying flag to suppress stale fastmap\nrepublishing by in-flight readers.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet/sched: cls_route: corrección de uso después de liberación de fastmap en el filtro\n\nEl clasificador route4 mantiene una caché fastmap de 16 ranuras que almacena punteros brutos de struct route4_filter indexados por (id, iif). El lector (route4_classify) rellena esta caché a través de route4_set_fastmap() para cada paquete clasificado que coincide con un filtro. El escritor (route4_delete, route4_change) borra la caché a través de route4_reset_fastmap() antes de la liberación kfree diferida por RCU del filtro.\n\nEsto crea una condición de carrera UAF:\n1. El lector recorre la cadena de cubos protegida por RCU, encuentra el filtro f\n2. El escritor desvincula f, llama a route4_reset_fastmap(), luego tcf_queue_work()\n3. El lector llama a route4_set_fastmap() y escribe f en la caché después del reinicio del escritor, almacenando en caché un puntero que está a punto de ser liberado\n4. Después del período de gracia de RCU, se ejecuta kfree(f)\n5. El siguiente paquete clasificado en la misma tupla (id, iif) accede a la entrada fastmap obsoleta y lee f -> res de memoria liberada\n\nReproducido con un acelerador mdelay(100) en route4_set_fastmap() y una prueba de estrés concurrente de añadir/eliminar (proporcionada tanto por zdi como por Santosh). Ambos activaron informes de uso después de liberación de slab de KASAN en las rutas fastmap de route4.\n\nSolución:\nIntroducir un indicador booleano 'dying' por filtro para suprimir la republicación de fastmap obsoleta por parte de lectores en curso.","source":"nvd"}],"published":"2026-08-21T16:31:55.886Z","modified":"2026-10-16T20:17:40.370Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1109c00547fc66df45b9ff923544be4c1e1bec13","fixed":"7897198b26445b4009a057bda1986b94a99e5d5f","status":"affected"},{"type":"git","introduced":"1109c00547fc66df45b9ff923544be4c1e1bec13","fixed":"820f083c294ad6d319c02a7d43294f2ed2565139","status":"affected"},{"type":"git","introduced":"1109c00547fc66df45b9ff923544be4c1e1bec13","fixed":"5ec9001be6d0eb527251125632ec8fe88278897f","status":"affected"},{"type":"git","introduced":"1109c00547fc66df45b9ff923544be4c1e1bec13","fixed":"b969984b2bdc85d721ce4047cd270cd37ec705a2","status":"affected"},{"type":"git","introduced":"1109c00547fc66df45b9ff923544be4c1e1bec13","fixed":"a17f636c9330eac879822ce29f998e5abd1b72c1","status":"affected"},{"type":"git","introduced":"1109c00547fc66df45b9ff923544be4c1e1bec13","fixed":"0e7a8cf8895b06d07c7311f028eba16ad742b9bc","status":"affected"},{"type":"git","introduced":"1109c00547fc66df45b9ff923544be4c1e1bec13","fixed":"ae9aff87025219005a2d16b4fe83d6f24643e50d","status":"affected"},{"type":"git","introduced":"1109c00547fc66df45b9ff923544be4c1e1bec13","fixed":"47d7f7051253bdc02b1d245d87e38f16d31a74df","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.18","status":"unaffected"},{"type":"semver","introduced":"5.10.265","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.216","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.152","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.104","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.45","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.9","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7897198b26445b4009a057bda1986b94a99e5d5f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/820f083c294ad6d319c02a7d43294f2ed2565139","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ec9001be6d0eb527251125632ec8fe88278897f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b969984b2bdc85d721ce4047cd270cd37ec705a2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a17f636c9330eac879822ce29f998e5abd1b72c1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0e7a8cf8895b06d07c7311f028eba16ad742b9bc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae9aff87025219005a2d16b4fe83d6f24643e50d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/47d7f7051253bdc02b1d245d87e38f16d31a74df","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T19:01:17.964Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74583","url":"https://www.cve.org/CVERecord?id=CVE-2026-74583","licence":"CVE Terms of Use","modified":"2026-10-16T19:05:58.388Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74583","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74583","licence":"Public domain","modified":"2026-10-16T20:17:40.370Z"}],"updatedAt":"2026-11-25T22:59:34.801Z","epss":{"score":0.00177,"percentile":0.07564,"date":"2026-12-01T12:00:22.000Z"}}