CVE-2026-31422
net/sched: cls_flow: fix NULL pointer dereference on shared blocks
Check your servers for CVE-2026-31422
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-31422 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
net/sched: cls_flow: fix NULL pointer dereference on shared blocks
flow_change() calls tcf_block_q() and dereferences q->handle to derive a default baseclass. Shared blocks leave block->q NULL, causing a NULL deref when a flow filter without a fully qualified baseclass is created on a shared block.
Check tcf_block_shared() before accessing block->q and return -EINVAL for shared blocks. This avoids the null-deref shown below:
======================================================================= KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f] RIP: 0010:flow_change (net/sched/cls_flow.c:508) Call Trace: tc_new_tfilter (net/sched/cls_api.c:2432) rtnetlink_rcv_msg (net/core/rtnetlink.c:6980) [...] =======================================================================
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 4.52% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1abf272022cf1d18469405f47b4ec49c6a3125db, before 57f94ac7e953eece5ed4819605a18f3cdfc63dcc affected from 1abf272022cf1d18469405f47b4ec49c6a3125db, before 942813276edeb1741fa5b0a73471beb4e495fa08 affected from 1abf272022cf1d18469405f47b4ec49c6a3125db, before cc707a4fd4c3b6ab2722e06bc359aa010e13d408 affected from 1abf272022cf1d18469405f47b4ec49c6a3125db, before 4a09f72007201c9f667dc47f64517ec23eea65e5 affected from 1abf272022cf1d18469405f47b4ec49c6a3125db, before 9bf5fc36a43f7b8b5507c96e74fb81f1e8b4957e affected from 1abf272022cf1d18469405f47b4ec49c6a3125db, before a208c3e1232997e9317887294c20008dfcb75449 affected from 1abf272022cf1d18469405f47b4ec49c6a3125db, before 415ea0c973c754b9f375225807810eb9045f4293 affected from 1abf272022cf1d18469405f47b4ec49c6a3125db, before 1a280dd4bd1d616a01d6ffe0de284c907b555504
Other versions: unaffected
|
| Linux |
affected 4.15 unaffected before 4.15 unaffected from 5.10.253 up to and including 5.10.* unaffected from 5.15.203 up to and including 5.15.* unaffected from 6.1.168 up to and including 6.1.* unaffected from 6.6.134 up to and including 6.6.* unaffected from 6.12.81 up to and including 6.12.* unaffected from 6.18.22 up to and including 6.18.* unaffected from 6.19.12 up to and including 6.19.* unaffected 7.0 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-31422 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31422
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-31422
trivy image --scanners vuln IMAGE | grep CVE-2026-31422
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
- https://git.kernel.org/stable/c/57f94ac7e953eece5ed4819605a18f3cdfc63dcc git.kernel.org
- https://git.kernel.org/stable/c/942813276edeb1741fa5b0a73471beb4e495fa08 git.kernel.org
- https://git.kernel.org/stable/c/cc707a4fd4c3b6ab2722e06bc359aa010e13d408 git.kernel.org
- https://git.kernel.org/stable/c/4a09f72007201c9f667dc47f64517ec23eea65e5 git.kernel.org
- https://git.kernel.org/stable/c/9bf5fc36a43f7b8b5507c96e74fb81f1e8b4957e git.kernel.org
- https://git.kernel.org/stable/c/a208c3e1232997e9317887294c20008dfcb75449 git.kernel.org
- https://git.kernel.org/stable/c/415ea0c973c754b9f375225807810eb9045f4293 git.kernel.org
- https://git.kernel.org/stable/c/1a280dd4bd1d616a01d6ffe0de284c907b555504 git.kernel.org
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html cert-portal.siemens.com
Source: the record CVE-2026-31422 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse