CVE-2026-31421·Kernel vulnerability
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)
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.12
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.17% — higher than 6% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 6.19.12
Fixed in: 6.19.12
How to fix this CVE
Update your Linux kernel to version 6.19.12 or later to resolve this NULL pointer dereference vulnerability in the traffic control classifier subsystem. The vulnerability occurs when an empty firewall (fw) filter is attached to a shared network block, causing the kernel to crash during packet classification. Ensure your system receives the stable kernel patch through your distribution's update mechanism as soon as possible.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check current kernel version: uname -r (verify it is 6.19.12 or later, or not in the 6.19.x range)
- Verify if tc (traffic control) is configured with shared blocks: tc qdisc show and tc filter show (look for shared_block keyword)
- Search system logs for NULL pointer dereference crashes: grep -i 'null-ptr-deref\|fw_classify' /var/log/kern.log /var/log/messages
- After patching, reboot and confirm new kernel is loaded: uname -r (should show version 6.19.12 or later)
FAQ
What is CVE-2026-31421?
This vulnerability allows a NULL pointer dereference in the Linux kernel's traffic control subsystem when using the firewall classifier (cls_fw) with shared network blocks, triggered by packets with non-zero marks. The flaw occurs because shared blocks leave the block queue pointer uninitialized, causing a kernel crash during packet classification.
Is CVE-2026-31421 being actively exploited?
No, CVE-2026-31421 is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available. However, it can be trivially triggered by any local user with network configuration privileges.
What versions of Kernel are affected by CVE-2026-31421?
Linux kernel versions 6.19 through 6.19.11 are vulnerable. The fix is included in kernel 6.19.12 and all subsequent releases.
How do I check if my server is vulnerable to CVE-2026-31421?
Run `uname -r` to check your kernel version. If it shows 6.19.0 through 6.19.11, your system is vulnerable. Additionally, check if traffic control with shared blocks is configured using `tc qdisc show` and `tc filter show`.
Does Defensia detect CVE-2026-31421?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-31421 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/18328eff2f97d1a6adcdb6d4a0f42f2f83a31e28
- https://git.kernel.org/stable/c/3cb055df9e8625ce699a259d8178d67b37f2b160
- https://git.kernel.org/stable/c/3d41f9a314afa94b1c7c7c75405920123220e8cd
- https://git.kernel.org/stable/c/5cf41031922c154aa5ccda8bcdb0f5e6226582ec
- https://git.kernel.org/stable/c/96426c348def662b06bfdc65be3002905604927a
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31421. Free for 1 server.
Get started free