Paper/Archive/CVE-2021-47232

CVE-2021-47232

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

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
Linux9d71dd0c70099914fcd063135da3c580865e924c – < 22cba878abf646cd3a02ee7c8c2cef7afe66a25622cba878abf646cd3a02ee7c8c2cef7afe66a256CNA
Linux9d71dd0c70099914fcd063135da3c580865e924c – < 509ab6bfdd0c76daebbad0f0af07da712116de22509ab6bfdd0c76daebbad0f0af07da712116de22CNA
Linux9d71dd0c70099914fcd063135da3c580865e924c – < 1071065eeb33d32b7d98c2ce7591881ae73817051071065eeb33d32b7d98c2ce7591881ae7381705CNA
Linux9d71dd0c70099914fcd063135da3c580865e924c – < 2030043e616cab40f510299f09b636285e0a36782030043e616cab40f510299f09b636285e0a3678CNA
Linux5.45.4.128CNA
linux_kernel9d71dd0c7009 – < 22cba878abf6 22cba878abf6 CISA-ADP
linux_kernel9d71dd0c7009 – < 509ab6bfdd0c 509ab6bfdd0c CISA-ADP
linux_kernel9d71dd0c7009 – < 1071065eeb33 1071065eeb33 CISA-ADP
linux_kernel9d71dd0c7009 – < 2030043e616c 2030043e616c CISA-ADP
linux_kernelsee advisory5.4.128CISA-ADP
linux_kernelsee advisory 5.10.46CISA-ADP
linux_kernelsee advisory5.12.13CISA-ADP

Scores by source

Linux (CNA)9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA ADP8.4CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA ADPSSVCExploitation: none · Automatable: no · Technical impact: total

References

refgit.kernel.org/stable/c/22cba878abf646cd3a02ee7c8c2cef7afe66a256refgit.kernel.org/stable/c/509ab6bfdd0c76daebbad0f0af07da712116de22refgit.kernel.org/stable/c/1071065eeb33d32b7d98c2ce7591881ae7381705refgit.kernel.org/stable/c/2030043e616cab40f510299f09b636285e0a3678