What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.46, 5.12.13, 5.4.128. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-47232 or the next vulnerability affects your stack