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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2026-04-23T11:12:44.829Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 64c8553decf5a5f2417bd54761ea0a832c56c4ca; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 3f43f12fde34737fba091b7e3ab391e14ddbb0be; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 5e9cfffad898bbeaafd0ea608a6d267362f050fc; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 572f0bf536ebc14f6e7da3d21a85cf076de8358e; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 7201a531b9a5ed892bfda5ded9194ef622de8ffa; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 34c1741254ff972e8375faf176678a248826fe3a; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< a535a9217ca3f2fccedaafb2fddb4c48f27d36dc
- Anyone running Linux 4.1

## 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\]

## Affected and fixed versions

- Linux: \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 64c8553decf5a5f2417bd54761ea0a832c56c4ca; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 3f43f12fde34737fba091b7e3ab391e14ddbb0be; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 5e9cfffad898bbeaafd0ea608a6d267362f050fc; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 572f0bf536ebc14f6e7da3d21a85cf076de8358e; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 7201a531b9a5ed892bfda5ded9194ef622de8ffa; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 34c1741254ff972e8375faf176678a248826fe3a; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< a535a9217ca3f2fccedaafb2fddb4c48f27d36dc (cvelist)
- Linux: 4.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31532. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31532.md
Affected: Linux >= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, < 1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3; >= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, < 64c8553decf5a5f2417bd54761ea0a832c56c4ca; >= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, < 3f43f12fde34737fba091b7e3ab391e14ddbb0be; >= 514ac99c64b22d83b52dfee…
Fixed in: Linux 1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3, Linux 64c8553decf5a5f2417bd54761ea0a832c56c4ca, Linux 3f43f12fde34737fba091b7e3ab391e14ddbb0be, Linux 5e9cfffad898bbeaafd0ea608a6d267362f050fc, Linux 572f0bf536ebc14f6e7da3d21a85cf076de8358e, Linux 1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0, Linux 7201a…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31532 being exploited?

There is no confirmed exploitation: CVE-2026-31532 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-31532?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-31532?

Linux \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 64c8553decf5a5f2417bd54761ea0a832c56c4ca; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 3f43f12fde34737fba091b7e3ab391e14ddbb0be; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 5e9cfffad898bbeaafd0ea608a6d267362f050fc; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 572f0bf536ebc14f6e7da3d21a85cf076de8358e; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 7201a531b9a5ed892bfda5ded9194ef622de8ffa; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< 34c1741254ff972e8375faf176678a248826fe3a; \>= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, \< a535a9217ca3f2fccedaafb2fddb4c48f27d36dc; Linux 4.1.

### Is there a fix for CVE-2026-31532?

Yes. Fixed in Linux 1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3, Linux 64c8553decf5a5f2417bd54761ea0a832c56c4ca, Linux 3f43f12fde34737fba091b7e3ab391e14ddbb0be, Linux 5e9cfffad898bbeaafd0ea608a6d267362f050fc, Linux 572f0bf536ebc14f6e7da3d21a85cf076de8358e, Linux 1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0, Linux 7201a531b9a5ed892bfda5ded9194ef622de8ffa, Linux 34c1741254ff972e8375faf176678a248826fe3a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-31532?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://git.kernel.org/stable/c/1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3>
- other: <https://git.kernel.org/stable/c/64c8553decf5a5f2417bd54761ea0a832c56c4ca>
- other: <https://git.kernel.org/stable/c/3f43f12fde34737fba091b7e3ab391e14ddbb0be>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31532>

HTML: <https://flawdb.com/CVE-2026-31532> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31532>
