{"id":"CVE-2021-47232","aliases":["CVE-2021-47232"],"related":[],"kind":"vulnerability","state":"published","title":"can: j1939: fix Use-after-Free, hold skb ref while in use","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: j1939: fix Use-after-Free, hold skb ref while in use\n\nThis patch fixes a Use-after-Free found by the syzbot.\n\nThe problem is that a skb is taken from the per-session skb queue,\nwithout incrementing the ref count. This leads to a Use-after-Free if\nthe skb is taken concurrently from the session queue due to a CTS.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: j1939: fix Use-after-Free, hold skb ref while in use\n\nThis patch fixes a Use-after-Free found by the syzbot.\n\nThe problem is that a skb is taken from the per-session skb queue,\nwithout incrementing the ref count. This leads to a Use-after-Free if\nthe skb is taken concurrently from the session queue due to a CTS.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: can: j1939: corrige Use-after-Free, mantenga presionada la referencia skb mientras está en uso. Este parche corrige un Use-after-Free encontrado por syzbot. El problema es que se toma un skb de la cola de skb por sesión, sin incrementar el recuento de referencias. Esto conduce a un use after free si el skb se toma simultáneamente de la cola de sesión debido a un CTS.","source":"nvd"}],"published":"2024-05-21T14:19:35.084Z","modified":"2026-08-05T08:46:51.007Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"9d71dd0c70099914fcd063135da3c580865e924c","fixed":"22cba878abf646cd3a02ee7c8c2cef7afe66a256","status":"affected"},{"type":"git","introduced":"9d71dd0c70099914fcd063135da3c580865e924c","fixed":"509ab6bfdd0c76daebbad0f0af07da712116de22","status":"affected"},{"type":"git","introduced":"9d71dd0c70099914fcd063135da3c580865e924c","fixed":"1071065eeb33d32b7d98c2ce7591881ae7381705","status":"affected"},{"type":"git","introduced":"9d71dd0c70099914fcd063135da3c580865e924c","fixed":"2030043e616cab40f510299f09b636285e0a3678","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"5.4.128","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.46","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.12.13","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"9d71dd0c7009","fixed":"22cba878abf6 ","status":"affected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"9d71dd0c7009","fixed":" 509ab6bfdd0c ","status":"affected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"9d71dd0c7009","fixed":"1071065eeb33 ","status":"affected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"9d71dd0c7009","fixed":"2030043e616c ","status":"affected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"5.4.128","fixed":"5.5","status":"unaffected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"custom","introduced":" 5.10.46","fixed":"5.11","status":"unaffected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"5.12.13","fixed":"5.13","status":"unaffected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"5.13","status":"unaffected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"5.4","status":"unaffected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:5.4:-:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.4","fixed":"5.4.128"},{"status":"affected","introduced":"5.5","fixed":"5.10.46"},{"status":"affected","introduced":"5.11","fixed":"5.12.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/22cba878abf646cd3a02ee7c8c2cef7afe66a256","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/509ab6bfdd0c76daebbad0f0af07da712116de22","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1071065eeb33d32b7d98c2ce7591881ae7381705","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2030043e616cab40f510299f09b636285e0a3678","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-05-28T19:03:26.982Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47232","url":"https://www.cve.org/CVERecord?id=CVE-2021-47232","licence":"CVE Terms of Use","modified":"2026-08-05T08:46:51.007Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47232","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47232","licence":"Public domain","modified":"2026-08-04T10:16:53.793Z"}],"updatedAt":"2026-11-25T22:58:08.748Z","epss":{"score":0.00621,"percentile":0.51137,"date":"2026-12-02T12:00:21.000Z"}}