can: raw: fix ro->uniq use-after-free in raw_rcv()
Summary
| CVE | CVE-2026-31532 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-04-23 12:17:01 UTC |
| Updated | 2026-06-01 17:16:48 UTC |
| 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] |
Risk And Classification
Primary CVSS: v3.1 7.8 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS: 0.000240000 probability, percentile 0.067600000 (date 2026-04-27)
Problem Types: CWE-416
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | Secondary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 514ac99c64b22d83b52dfee3b8becaa69a92bc4a 1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3 git | Not specified |
| CNA | Linux | Linux | affected 514ac99c64b22d83b52dfee3b8becaa69a92bc4a 64c8553decf5a5f2417bd54761ea0a832c56c4ca git | Not specified |
| CNA | Linux | Linux | affected 514ac99c64b22d83b52dfee3b8becaa69a92bc4a 3f43f12fde34737fba091b7e3ab391e14ddbb0be git | Not specified |
| CNA | Linux | Linux | affected 514ac99c64b22d83b52dfee3b8becaa69a92bc4a 5e9cfffad898bbeaafd0ea608a6d267362f050fc git | Not specified |
| CNA | Linux | Linux | affected 514ac99c64b22d83b52dfee3b8becaa69a92bc4a 572f0bf536ebc14f6e7da3d21a85cf076de8358e git | Not specified |
| CNA | Linux | Linux | affected 514ac99c64b22d83b52dfee3b8becaa69a92bc4a 1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0 git | Not specified |
| CNA | Linux | Linux | affected 514ac99c64b22d83b52dfee3b8becaa69a92bc4a 7201a531b9a5ed892bfda5ded9194ef622de8ffa git | Not specified |
| CNA | Linux | Linux | affected 514ac99c64b22d83b52dfee3b8becaa69a92bc4a 34c1741254ff972e8375faf176678a248826fe3a git | Not specified |
| CNA | Linux | Linux | affected 514ac99c64b22d83b52dfee3b8becaa69a92bc4a a535a9217ca3f2fccedaafb2fddb4c48f27d36dc git | Not specified |
| CNA | Linux | Linux | affected 4.1 | Not specified |
| CNA | Linux | Linux | unaffected 4.1 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.258 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.209 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.175 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.136 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.83 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.24 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.19.14 6.19.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.0.1 7.0.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.1-rc1 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/572f0bf536ebc14f6e7da3d21a85cf076de8358e | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/7201a531b9a5ed892bfda5ded9194ef622de8ffa | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/64c8553decf5a5f2417bd54761ea0a832c56c4ca | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/5e9cfffad898bbeaafd0ea608a6d267362f050fc | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/a535a9217ca3f2fccedaafb2fddb4c48f27d36dc | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/3f43f12fde34737fba091b7e3ab391e14ddbb0be | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/34c1741254ff972e8375faf176678a248826fe3a | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.