{"id":"CVE-2026-31532","published":"2026-04-23T11:12:44Z","modified":"2026-10-19T18:45:55Z","title":"can: raw: fix ro->uniq use-after-free in raw_rcv()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: raw: fix ro->uniq use-after-free in raw_rcv()\n\nraw_release() unregisters raw CAN receive filters via can_rx_unregister(),\nbut receiver deletion is deferred with call_rcu(). This leaves a window\nwhere raw_rcv() may still be running in an RCU read-side critical section\nafter raw_release() frees ro->uniq, leading to a use-after-free of the\npercpu uniq storage.\n\nMove free_percpu(ro->uniq) out of raw_release() and into a raw-specific\nsocket destructor. can_rx_unregister() takes an extra reference to the\nsocket and only drops it from the RCU callback, so freeing uniq from\nsk_destruct ensures the percpu area is not released until the relevant\ncallbacks have drained.\n\n[mkl: applied manually]","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00186,"percentile":0.0475,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3","tags":[]},{"url":"https://git.kernel.org/stable/c/64c8553decf5a5f2417bd54761ea0a832c56c4ca","tags":[]},{"url":"https://git.kernel.org/stable/c/3f43f12fde34737fba091b7e3ab391e14ddbb0be","tags":[]},{"url":"https://git.kernel.org/stable/c/5e9cfffad898bbeaafd0ea608a6d267362f050fc","tags":[]},{"url":"https://git.kernel.org/stable/c/572f0bf536ebc14f6e7da3d21a85cf076de8358e","tags":[]},{"url":"https://git.kernel.org/stable/c/1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0","tags":[]},{"url":"https://git.kernel.org/stable/c/7201a531b9a5ed892bfda5ded9194ef622de8ffa","tags":[]},{"url":"https://git.kernel.org/stable/c/34c1741254ff972e8375faf176678a248826fe3a","tags":[]},{"url":"https://git.kernel.org/stable/c/a535a9217ca3f2fccedaafb2fddb4c48f27d36dc","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[]}],"priority":{"score":6.4,"factors":[{"name":"EPSS percentile","points":0.95},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, < 1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3",">= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, < 64c8553decf5a5f2417bd54761ea0a832c56c4ca",">= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, < 3f43f12fde34737fba091b7e3ab391e14ddbb0be",">= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, < 5e9cfffad898bbeaafd0ea608a6d267362f050fc",">= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, < 572f0bf536ebc14f6e7da3d21a85cf076de8358e",">= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, < 1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0",">= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, < 7201a531b9a5ed892bfda5ded9194ef622de8ffa",">= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, < 34c1741254ff972e8375faf176678a248826fe3a",">= 514ac99c64b22d83b52dfee3b8becaa69a92bc4a, < a535a9217ca3f2fccedaafb2fddb4c48f27d36dc"]},{"vendor":"Linux","product":"Linux","versions":["4.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T15:10:40.984593Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-25219","exploited":false,"provenance":"source"}}