CVE-2026-31474·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: can: isotp: fix tx.buf use-after-free in isotp_sendmsg() isotp_sendmsg() uses only cmpxchg() on so->tx.state to serialize access to so->tx.buf. isotp_release() waits for ISOTP_IDLE via wait_event_interruptible() and then calls kfree(so->tx.buf). If a signal interrupts the wait_event_interruptible() inside close() while tx.state is ISOTP_SENDING, the loop exits early and release proceeds to force ISOTP_SHUTDOWN and continues to kfree(so->tx.buf) while sendmsg may still be reading so->tx.buf for the final CAN frame in isotp_fill_dataframe(). The so->tx.buf can be allocated once when the standard tx.buf length needs to be extended. Move the kfree() of this potentially extended tx.buf to sk_destruct time when either isotp_sendmsg() and isotp_release() are done.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.19.11
- 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.14% — higher than 3% 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.
Read the two together. CVE-2026-31474 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.14%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 6.19.11
Fixed in: 6.19.11
How to fix this CVE
Update your Linux kernel to version 6.19.11 or later to resolve a use-after-free vulnerability in the CAN ISO-TP protocol handler. This vulnerability occurs when socket cleanup races with active message transmission, potentially allowing memory corruption. Apply the kernel security update immediately to systems running affected versions 6.19 through 6.19.10.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check kernel version with: uname -r | grep -E '^6\.19\.([0-9]|10)($|[^0-9])' && echo 'VULNERABLE' || echo 'PATCHED_OR_UNAFFECTED'
- Step 2: Identify CAN devices in use: ip link show type can or lsmod | grep isotp
- Step 3: Search kernel logs for use-after-free or memory errors related to isotp: sudo dmesg | grep -i 'isotp\|use.*after.*free\|UAF'
- Step 4: Verify patched version: uname -r should show 6.19.11 or later, or a kernel version outside the 6.19.x range
FAQ
What is CVE-2026-31474?
This is a use-after-free vulnerability in the Linux kernel's CAN ISO-TP (ISO 15765-2) protocol implementation. The vulnerability exists because socket cleanup (isotp_release) can free the transmission buffer while the send function (isotp_sendmsg) is still accessing it, creating a race condition that can lead to memory corruption or system crash.
Is CVE-2026-31474 being actively exploited?
No, this vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are available. However, the vulnerability requires local access and CAN network interface usage, limiting broader exposure.
What versions of Kernel are affected by CVE-2026-31474?
Linux kernel versions 6.19 through 6.19.10 are affected. The vulnerability is resolved in kernel 6.19.11 and later.
How do I check if my server is vulnerable to CVE-2026-31474?
Run: uname -r && if uname -r | grep -E '^6\.19\.[0-9]($|[^0-9])' | grep -qv '6\.19\.1[1-9]'; then echo 'VULNERABLE'; else echo 'NOT VULNERABLE'; fi
Does Defensia detect CVE-2026-31474?
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-31474 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/2e62e7051eca75a7f2e3d52d62ec10d7d7aa358c
- https://git.kernel.org/stable/c/424e95d62110cdbc8fd12b40918f37e408e35a92
- https://git.kernel.org/stable/c/9649d051e54413049c009638ec1dc23962c884a4
- https://git.kernel.org/stable/c/cb3d6efa78460e6d50bf68806d0db66265709f64
- https://git.kernel.org/stable/c/eec8a1b18a79600bd4419079dc0026c1db72a830
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31474. Free for 1 server.
Get started free