CVE-2026-97959

net/sched: cls_route: free emptied bucket on filter move

No CVSS score yet EPSS 0.18%

Published 25 Sep 2026 Updated 19 Oct 2026 CNA: Linux

Check your servers for CVE-2026-97959

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-97959 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

net/sched: cls_route: free emptied bucket on filter move

route4_change can move an existing filter to a different top-level bucket: route4_set_parms recomputes the handle from TCA_ROUTE4_TO/ FROM/IIF, and the handle-mismatch check is gated on the 'new' flag, so for an existing filter the new handle may differ from the old one and land in a different bucket. When this happens, the filter is unlinked from the old bucket, but the bucket itself is never freed once it goes empty. The stale empty bucket remains in head->table[], causing route4_delete to report *last=false even after the last live filter is gone. That pins the empty tcf_proto and causes a leak.

Fix this by refcounting the filters linked to a bucket and freeing the bucket when the count drops to zero. The existing scan in route4_delete goes away with it.

The count is updated at all sites that link or unlink a filter during add, change and delete, and the bucket is dropped from head->table[] as soon as it reaches zero.

Conditions to recreate the bug: CONFIG_NET_CLS_ROUTE4=y, CONFIG_NET_SCH_INGRESS=y, CONFIG_NET_CLS_ACT=y.

tc qdisc replace dev lo clsact tc filter add dev lo ingress protocol ip pref 100 route from 1 to 1 tc filter change dev lo ingress protocol ip pref 100 handle 0x10001 \ route from 1 to 2 tc filter del dev lo ingress protocol ip pref 100 handle 0x10002 \ route from 1 to 2 tc filter show dev lo ingress | grep -c 'pref 100 route chain 0 '

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.55% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 1e052be69d045c8d0f82ff1116fd3e5a79661745, before 9e7741b41a25b9d49df4d262fa314342e6f95c50
affected from 1e052be69d045c8d0f82ff1116fd3e5a79661745, before 48d38bf8c22a05fde07ba1f885cde27b851649a2
affected from 1e052be69d045c8d0f82ff1116fd3e5a79661745, before cc99d26b12431e4e4d0e346ec32764eb42c0aed9
affected from 1e052be69d045c8d0f82ff1116fd3e5a79661745, before 41e94079200aaf0cdbe4594b0af75710b33da124
affected from 1e052be69d045c8d0f82ff1116fd3e5a79661745, before 2e2f130951d34871b0643bf700164d97cff4b427
affected from 1e052be69d045c8d0f82ff1116fd3e5a79661745, before f8495d67434e1cb7e511297687ca55fdb28e4c20
affected from 1e052be69d045c8d0f82ff1116fd3e5a79661745, before 81dd117c04422c6d0c7974aba9fa6a0ba370959b
affected from 1e052be69d045c8d0f82ff1116fd3e5a79661745, before 1853f30cf5c84971f99788a76207c6f745380896
Other versions: unaffected
Linux
affected 4.1
unaffected before 4.1
unaffected from 5.10.271 up to and including 5.10.*
unaffected from 5.15.222 up to and including 5.15.*
unaffected from 6.1.189 up to and including 6.1.*
unaffected from 6.6.158 up to and including 6.6.*
unaffected from 6.12.111 up to and including 6.12.*
unaffected from 6.18.53 up to and including 6.18.*
unaffected from 7.2.7 up to and including 7.2.*
unaffected 7.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-97959 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-97959

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-97959
trivy image --scanners vuln IMAGE | grep CVE-2026-97959

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-97959 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.