CVE-2026-31532

can: raw: fix ro->uniq use-after-free in raw_rcv()

7.8 high EPSS 0.17%

Published 23 Apr 2026 Updated 19 Oct 2026 CNA: Linux

Check your servers for CVE-2026-31532

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31532 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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]

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.79% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 16 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, before 1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3
affected from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, before 64c8553decf5a5f2417bd54761ea0a832c56c4ca
affected from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, before 3f43f12fde34737fba091b7e3ab391e14ddbb0be
affected from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, before 5e9cfffad898bbeaafd0ea608a6d267362f050fc
affected from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, before 572f0bf536ebc14f6e7da3d21a85cf076de8358e
affected from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, before 1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0
affected from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, before 7201a531b9a5ed892bfda5ded9194ef622de8ffa
affected from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, before 34c1741254ff972e8375faf176678a248826fe3a
affected from 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, before a535a9217ca3f2fccedaafb2fddb4c48f27d36dc
Other versions: unaffected
Linux
affected 4.1
unaffected before 4.1
unaffected from 5.10.258 up to and including 5.10.*
unaffected from 5.15.209 up to and including 5.15.*
unaffected from 6.1.175 up to and including 6.1.*
unaffected from 6.6.136 up to and including 6.6.*
unaffected from 6.12.83 up to and including 6.12.*
unaffected from 6.18.24 up to and including 6.18.*
unaffected from 6.19.14 up to and including 6.19.*
unaffected from 7.0.1 up to and including 7.0.*
unaffected 7.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31532 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31532

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-31532
trivy image --scanners vuln IMAGE | grep CVE-2026-31532

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-31532 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.