What’s Vulnerable › Vulnerabilities

CVE-2021-47668: can: dev: can_restart: fix use after free bug

Description

In the Linux kernel, the following vulnerability has been resolved: can: dev: can_restart: fix use after free bug After calling netif_rx_ni(skb), dereferencing skb is unsafe. Especially, the can_frame cf which aliases skb memory is accessed after the netif_rx_ni() in: stats->rx_bytes += cf->len; Reordering the lines solves the issue.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.14.218, 4.19.171, 4.4.254, 4.9.254. Check the vendor advisory for mitigations.

References

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