CVE-2026-31532
Severity CVSS v4.0:
Pending analysis
Type:
CWE-416
Use After Free
Publication date:
23/04/2026
Last modified:
29/04/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
can: raw: fix ro->uniq use-after-free in raw_rcv()<br />
<br />
raw_release() unregisters raw CAN receive filters via can_rx_unregister(),<br />
but receiver deletion is deferred with call_rcu(). This leaves a window<br />
where raw_rcv() may still be running in an RCU read-side critical section<br />
after raw_release() frees ro->uniq, leading to a use-after-free of the<br />
percpu uniq storage.<br />
<br />
Move free_percpu(ro->uniq) out of raw_release() and into a raw-specific<br />
socket destructor. can_rx_unregister() takes an extra reference to the<br />
socket and only drops it from the RCU callback, so freeing uniq from<br />
sk_destruct ensures the percpu area is not released until the relevant<br />
callbacks have drained.<br />
<br />
[mkl: applied manually]
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.1 (including) | 6.6.136 (including) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.12.83 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.18 (including) | 6.18.24 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.19 (including) | 6.19.14 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 7.0 (including) | 7.0.1 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0
- https://git.kernel.org/stable/c/34c1741254ff972e8375faf176678a248826fe3a
- https://git.kernel.org/stable/c/572f0bf536ebc14f6e7da3d21a85cf076de8358e
- https://git.kernel.org/stable/c/5e9cfffad898bbeaafd0ea608a6d267362f050fc
- https://git.kernel.org/stable/c/7201a531b9a5ed892bfda5ded9194ef622de8ffa
- https://git.kernel.org/stable/c/a535a9217ca3f2fccedaafb2fddb4c48f27d36dc



