{"id":"CVE-2026-31532","aliases":["CVE-2026-31532"],"related":[],"kind":"vulnerability","state":"published","title":"can: raw: fix ro->uniq use-after-free in raw_rcv()","summary":"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]","summarySource":"cvelist","descriptions":[{"lang":"en","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]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncan: raw: corregir el uso después de liberación de ro  ->  uniq en raw_rcv()\n\nraw_release() anula el registro de los filtros de recepción CAN raw a través de can_rx_unregister(), pero la eliminación del receptor se difiere con call_rcu(). Esto deja una ventana donde raw_rcv() aún puede estar ejecutándose en una sección crítica del lado de lectura de RCU después de que raw_release() libera ro  ->  uniq, lo que lleva a un uso después de liberación del almacenamiento percpu uniq.\n\nMover free_percpu(ro  ->  uniq) fuera de raw_release() y a un destructor de socket específico de raw. can_rx_unregister() toma una referencia adicional al socket y solo la libera desde la devolución de llamada RCU, por lo que liberar uniq desde sk_destruct asegura que el área percpu no se libera hasta que las devoluciones de llamada relevantes se hayan procesado.\n\n[mkl: aplicado manualmente]","source":"nvd"}],"published":"2026-04-23T11:12:44.829Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"514ac99c64b22d83b52dfee3b8becaa69a92bc4a","fixed":"1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3","status":"affected"},{"type":"git","introduced":"514ac99c64b22d83b52dfee3b8becaa69a92bc4a","fixed":"64c8553decf5a5f2417bd54761ea0a832c56c4ca","status":"affected"},{"type":"git","introduced":"514ac99c64b22d83b52dfee3b8becaa69a92bc4a","fixed":"3f43f12fde34737fba091b7e3ab391e14ddbb0be","status":"affected"},{"type":"git","introduced":"514ac99c64b22d83b52dfee3b8becaa69a92bc4a","fixed":"5e9cfffad898bbeaafd0ea608a6d267362f050fc","status":"affected"},{"type":"git","introduced":"514ac99c64b22d83b52dfee3b8becaa69a92bc4a","fixed":"572f0bf536ebc14f6e7da3d21a85cf076de8358e","status":"affected"},{"type":"git","introduced":"514ac99c64b22d83b52dfee3b8becaa69a92bc4a","fixed":"1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0","status":"affected"},{"type":"git","introduced":"514ac99c64b22d83b52dfee3b8becaa69a92bc4a","fixed":"7201a531b9a5ed892bfda5ded9194ef622de8ffa","status":"affected"},{"type":"git","introduced":"514ac99c64b22d83b52dfee3b8becaa69a92bc4a","fixed":"34c1741254ff972e8375faf176678a248826fe3a","status":"affected"},{"type":"git","introduced":"514ac99c64b22d83b52dfee3b8becaa69a92bc4a","fixed":"a535a9217ca3f2fccedaafb2fddb4c48f27d36dc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.1","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.136","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.83","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","lastAffected":"6.19.*","status":"unaffected"},{"type":"semver","introduced":"7.0.1","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.1","lastAffected":"6.6.136"},{"status":"affected","introduced":"6.7","fixed":"6.12.83"},{"status":"affected","introduced":"6.18","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"status":"affected","introduced":"7.0","fixed":"7.0.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/1de30576a6dfeaaa27ef91fa272e6b9240b6fbd3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/64c8553decf5a5f2417bd54761ea0a832c56c4ca","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f43f12fde34737fba091b7e3ab391e14ddbb0be","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5e9cfffad898bbeaafd0ea608a6d267362f050fc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/572f0bf536ebc14f6e7da3d21a85cf076de8358e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7201a531b9a5ed892bfda5ded9194ef622de8ffa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/34c1741254ff972e8375faf176678a248826fe3a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a535a9217ca3f2fccedaafb2fddb4c48f27d36dc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:10:40.984Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31532","url":"https://www.cve.org/CVERecord?id=CVE-2026-31532","licence":"CVE Terms of Use","modified":"2026-10-19T18:45:55.225Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31532","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31532","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.385Z","epss":{"score":0.00171,"percentile":0.06786,"date":"2026-12-01T12:00:22.000Z"}}