CVE-2026-31532

Published Apr 23, 2026

Last updated 2 months ago

CVSS high 7.8
Linux Kernel
CAN

Overview

AI description

Automated description summarized from trusted sources.

CVE-2026-31532 is a use-after-free vulnerability identified in the Linux kernel's Controller Area Network (CAN) raw socket implementation. This flaw occurs due to a timing window that exists during the unregistration process of CAN receive filters. Specifically, after `raw_release()` unregisters CAN receive filters, the deletion of the receiver is deferred. This creates a window where the `raw_rcv()` function might still be executing within an RCU read-side critical section, potentially accessing the `ro->uniq` storage after it has been freed. This improper memory access can lead to system instability or a denial of service.

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]
Source
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Modified
Products
linux_kernel

Risk scores

CVSS 3.1

Type
Primary
Base score
7.8
Impact score
5.9
Exploitability score
1.8
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Severity
HIGH

Weaknesses

nvd@nist.gov
CWE-416

Social media

Hype score
Not currently trending

Configurations