What’s Vulnerable › Vulnerabilities

CVE-2021-47520: can: pch_can: pch_can_rx_normal: fix use after free

Description

In the Linux kernel, the following vulnerability has been resolved: can: pch_can: pch_can_rx_normal: fix use after free After calling netif_receive_skb(skb), dereferencing skb is unsafe. Especially, the can_frame cf which aliases skb memory is dereferenced just after the call netif_receive_skb(skb). Reordering the lines solves the issue.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.14.258, 4.19.221, 4.4.295, 4.9.293. Check the vendor advisory for mitigations.

References

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