CVE-2026-31421net/sched: cls_fw: fix NULL pointer dereference on shared blocks
- 5.5MediumCVSS base score
- 0.13%Exploitation in 30 daysEPSS · top 98% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: net/sched: cls_fw: fix NULL pointer dereference on shared blocks The old-method path in fw_classify() calls tcf_block_q() and dereferences q->handle. Shared blocks leave block->q NULL, causing a NULL deref when an empty cls_fw filter is attached to a shared block and a packet with a nonzero major skb mark is classified. Reject the configuration in fw_change() when the old method (no TCA_OPTIONS) is used on a shared block, since fw_classify()'s old-method path needs block->q which is NULL for shared blocks. The fixed null-ptr-deref calling stack: KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f] RIP: 0010:fw_classify (net/sched/cls_fw.c:81) Call Trace: tcf_classify (./include/net/tc_wrapper.h:197 net/sched/cls_api.c:1764 net/sched/cls_api.c:1860) tc_run (net/core/dev.c:4401) __dev_queue_xmit (net/core/dev.c:4535 net/core/dev.c:4790)
Timeline
ID reserved
By Linux
- 35 days later
· 35 days later
Published
- 7 months later
· 7 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.13% · top 98% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected 1abf272022cf1d18469405f47b4ec49c6a3125db – < d6d5bd62a09650856e1e2010eb09853eba0d64e1
- affected 1abf272022cf1d18469405f47b4ec49c6a3125db – < febf64ca79a2d6540ab6e5e197fa0f4f7e84473e
- affected 1abf272022cf1d18469405f47b4ec49c6a3125db – < 3d41f9a314afa94b1c7c7c75405920123220e8cd
- affected 1abf272022cf1d18469405f47b4ec49c6a3125db – < 18328eff2f97d1a6adcdb6d4a0f42f2f83a31e28
- affected 1abf272022cf1d18469405f47b4ec49c6a3125db – < 5cf41031922c154aa5ccda8bcdb0f5e6226582ec
- affected 1abf272022cf1d18469405f47b4ec49c6a3125db – < 3cb055df9e8625ce699a259d8178d67b37f2b160
- affected 1abf272022cf1d18469405f47b4ec49c6a3125db – < 96426c348def662b06bfdc65be3002905604927a
- affected 1abf272022cf1d18469405f47b4ec49c6a3125db – < faeea8bbf6e958bf3c00cb08263109661975987c
- affected 4.15
- unaffected < 4.15
- unaffected 5.10.253 – ≤ 5.10.*
- unaffected 5.15.203 – ≤ 5.15.*
- unaffected 6.1.168 – ≤ 6.1.*
- unaffected 6.6.134 – ≤ 6.6.*
- unaffected 6.12.81 – ≤ 6.12.*
- unaffected 6.18.22 – ≤ 6.18.*
- unaffected 6.19.12 – ≤ 6.19.*
- unaffected 7.0 – ≤ *
References
References11
- https://git.kernel.org/stable/c/d6d5bd62a09650856e1e2010eb09853eba0d64e1 (opens in a new tab)
- https://git.kernel.org/stable/c/febf64ca79a2d6540ab6e5e197fa0f4f7e84473e (opens in a new tab)
- https://git.kernel.org/stable/c/3d41f9a314afa94b1c7c7c75405920123220e8cd (opens in a new tab)
- https://git.kernel.org/stable/c/18328eff2f97d1a6adcdb6d4a0f42f2f83a31e28 (opens in a new tab)
- https://git.kernel.org/stable/c/5cf41031922c154aa5ccda8bcdb0f5e6226582ec (opens in a new tab)
- https://git.kernel.org/stable/c/3cb055df9e8625ce699a259d8178d67b37f2b160 (opens in a new tab)
- https://git.kernel.org/stable/c/96426c348def662b06bfdc65be3002905604927a (opens in a new tab)
- https://git.kernel.org/stable/c/faeea8bbf6e958bf3c00cb08263109661975987c (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-21945 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-31421)Record last updated .