# CVE-2026-31532: can: raw: fix ro->uniq use-after-free in raw_rcv()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-04-23T11:12:44.829Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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]

(As written by CVE List.)

## Affected

- Linux Linux: from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a before 1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3; from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a before 64c8553decf5a5f2417bd54761ea0a832c56c4ca; from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a before 3f43f12fde34737fba091b7e3ab391e14ddbb0be; from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a before 5e9cfffad898bbeaafd0ea608a6d267362f050fc; from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a before 572f0bf536ebc14f6e7da3d21a85cf076de8358e; from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a before 1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0; from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a before 7201a531b9a5ed892bfda5ded9194ef622de8ffa; from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a before 34c1741254ff972e8375faf176678a248826fe3a; from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a before a535a9217ca3f2fccedaafb2fddb4c48f27d36dc; 4.1 (not affected: before 4.1; from 5.10.258 up to 5.10.*; from 5.15.209 up to 5.15.*; from 6.1.175 up to 6.1.*; from 6.6.136 up to 6.6.*; from 6.12.83 up to 6.12.*; from 6.18.24 up to 6.18.*; from 6.19.14 up to 6.19.*; from 7.0.1 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 4.1 up to 6.6.136; from 6.7 before 6.12.83; from 6.18 before 6.18.24; from 6.19 before 6.19.14; from 7.0 before 7.0.1

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3>
- <https://git.kernel.org/stable/c/64c8553decf5a5f2417bd54761ea0a832c56c4ca>
- <https://git.kernel.org/stable/c/3f43f12fde34737fba091b7e3ab391e14ddbb0be>
- <https://git.kernel.org/stable/c/5e9cfffad898bbeaafd0ea608a6d267362f050fc> (patch)
- <https://git.kernel.org/stable/c/572f0bf536ebc14f6e7da3d21a85cf076de8358e> (patch)
- <https://git.kernel.org/stable/c/1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0> (patch)
- <https://git.kernel.org/stable/c/7201a531b9a5ed892bfda5ded9194ef622de8ffa> (patch)
- <https://git.kernel.org/stable/c/34c1741254ff972e8375faf176678a248826fe3a> (patch)
- <https://git.kernel.org/stable/c/a535a9217ca3f2fccedaafb2fddb4c48f27d36dc> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Sources

- CVE List: [CVE-2026-31532](https://www.cve.org/CVERecord?id=CVE-2026-31532), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-31532](https://nvd.nist.gov/vuln/detail/CVE-2026-31532), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31532 · Whole record: https://cve.day/CVE-2026-31532.json · Rebuilt by cve.day 2026-11-25T22:59:19.385Z
