CVE-2026-31532·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: can: raw: fix ro->uniq use-after-free in raw_rcv() raw_release() unregisters raw CAN receive filters via can_rx_unregister(), but receiver deletion is deferred with call_rcu(). This leaves a window where raw_rcv() may still be running in an RCU read-side critical section after raw_release() frees ro->uniq, leading to a use-after-free of the percpu uniq storage. Move free_percpu(ro->uniq) out of raw_release() and into a raw-specific socket destructor. can_rx_unregister() takes an extra reference to the socket and only drops it from the RCU callback, so freeing uniq from sk_destruct ensures the percpu area is not released until the relevant callbacks have drained. [mkl: applied manually]
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.0.1
- 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.18% — higher than 7% 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-31532 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.18%, 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: 7.0
Until: 7.0.1
Fixed in: 7.0.1
How to fix this CVE
Update your Linux kernel to version 7.0.1 or later to resolve a use-after-free vulnerability in the CAN raw socket implementation. This flaw allows local attackers with standard user privileges to cause memory corruption through improper deferred cleanup of socket resources. Apply the kernel update through your distribution's package manager and reboot your system to activate the patched kernel.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r
- Verify if CAN socket support is enabled: grep -i can /boot/config-$(uname -r) | grep CONFIG_CAN
- Search system logs for memory corruption warnings or BUG messages related to CAN: sudo journalctl -xe | grep -i 'can\|use.after.free'
- Confirm the patch was applied by checking if kernel version is ≥7.0.1: uname -r | awk -F. '{print $1"."$2"."$3}' and compare against 7.0.1
FAQ
What is CVE-2026-31532?
CVE-2026-31532 is a use-after-free vulnerability in the Linux kernel's CAN raw socket implementation where memory is accessed after being freed due to a race condition between RCU-deferred cleanup and socket operations.
Is CVE-2026-31532 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2026-31532?
Kernel versions 7.0 through 7.0.1 are affected; the vulnerability is fixed in kernel 7.0.1 and later releases.
How do I check if my server is vulnerable to CVE-2026-31532?
Run 'uname -r' to display your kernel version; if it shows 7.0 or 7.0.0, your system is vulnerable. Also verify CAN support is loaded with 'lsmod | grep can'.
Does Defensia detect CVE-2026-31532?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2026-31532 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0
- https://git.kernel.org/stable/c/1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3
- https://git.kernel.org/stable/c/34c1741254ff972e8375faf176678a248826fe3a
- https://git.kernel.org/stable/c/3f43f12fde34737fba091b7e3ab391e14ddbb0be
- https://git.kernel.org/stable/c/572f0bf536ebc14f6e7da3d21a85cf076de8358e
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31532. Free for 1 server.
Get started free