---
id: CVE-2026-31532
title: |-
  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 ca…
summary: |-
  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 ca…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-416
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 4.1, <= 6.6.136'
  - 'linux_kernel >= 6.7, < 6.12.83'
  - 'linux_kernel >= 6.18, < 6.18.24'
  - 'linux_kernel >= 6.19, < 6.19.14'
  - 'linux_kernel >= 7.0, < 7.0.1'
patched:
  - linux_kernel 7.0.1
published: '2026-04-23'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T02:19:10.410'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-31532'
references:
  - url: 'https://git.kernel.org/stable/c/1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/34c1741254ff972e8375faf176678a248826fe3a'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/3f43f12fde34737fba091b7e3ab391e14ddbb0be'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/572f0bf536ebc14f6e7da3d21a85cf076de8358e'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5e9cfffad898bbeaafd0ea608a6d267362f050fc'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/64c8553decf5a5f2417bd54761ea0a832c56c4ca'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/7201a531b9a5ed892bfda5ded9194ef622de8ffa'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/a535a9217ca3f2fccedaafb2fddb4c48f27d36dc'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-784472.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00174
epssPercentile: 0.0641
ingestedAt: '2026-10-15T03:30:12.857Z'
---

## Overview

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

- `linux_kernel >= 4.1, <= 6.6.136`
- `linux_kernel >= 6.7, < 6.12.83`
- `linux_kernel >= 6.18, < 6.18.24`
- `linux_kernel >= 6.19, < 6.19.14`
- `linux_kernel >= 7.0, < 7.0.1`

## Remediation

Upgrade past the affected range:

- `linux_kernel 7.0.1`
