# CVE-2021-47232: can: j1939: fix Use-after-Free, hold skb ref while in use

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-02)
- Published: 2024-05-21T14:19:35.084Z
- Modified: 2026-08-05T08:46:51.007Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

can: j1939: fix Use-after-Free, hold skb ref while in use

This patch fixes a Use-after-Free found by the syzbot.

The problem is that a skb is taken from the per-session skb queue,
without incrementing the ref count. This leads to a Use-after-Free if
the skb is taken concurrently from the session queue due to a CTS.

(As written by CVE List.)

## Affected

- Linux Linux: from 9d71dd0c70099914fcd063135da3c580865e924c before 22cba878abf646cd3a02ee7c8c2cef7afe66a256; from 9d71dd0c70099914fcd063135da3c580865e924c before 509ab6bfdd0c76daebbad0f0af07da712116de22; from 9d71dd0c70099914fcd063135da3c580865e924c before 1071065eeb33d32b7d98c2ce7591881ae7381705; from 9d71dd0c70099914fcd063135da3c580865e924c before 2030043e616cab40f510299f09b636285e0a3678; 5.4 (not affected: before 5.4; from 5.4.128 up to 5.4.*; from 5.10.46 up to 5.10.*; from 5.12.13 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 9d71dd0c7009 before 22cba878abf6 ; from 9d71dd0c7009 before  509ab6bfdd0c ; from 9d71dd0c7009 before 1071065eeb33 ; from 9d71dd0c7009 before 2030043e616c ; 5.4; from 5.4 before 5.4.128; from 5.5 before 5.10.46; from 5.11 before 5.12.13; 5.13 (not affected: from 5.4.128 before 5.5; from  5.10.46 before 5.11; from 5.12.13 before 5.13; 5.13; before 5.4)

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/22cba878abf646cd3a02ee7c8c2cef7afe66a256> (patch)
- <https://git.kernel.org/stable/c/509ab6bfdd0c76daebbad0f0af07da712116de22> (patch)
- <https://git.kernel.org/stable/c/1071065eeb33d32b7d98c2ce7591881ae7381705> (patch)
- <https://git.kernel.org/stable/c/2030043e616cab40f510299f09b636285e0a3678> (patch)

## Sources

- CVE List: [CVE-2021-47232](https://www.cve.org/CVERecord?id=CVE-2021-47232), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47232](https://nvd.nist.gov/vuln/detail/CVE-2021-47232), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47232 · Whole record: https://cve.day/CVE-2021-47232.json · Rebuilt by cve.day 2026-11-25T22:58:08.748Z
