All reports
Medium

kernel: can: dev: can_restart: fix use after free bug

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-47668

Probability of exploitation in the next 30 days: 0.24%

FIRST EPSS · 2026-11-24

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.

A flaw was found in the Linux kernel's Controller Area Network (CAN) subsystem. A use-after-free vulnerability occurs in the CAN device restart handler when network packet memory is accessed after being released. A local user could trigger this flaw during CAN interface restart operations, potentially leading to a kernel crash and a Denial of Service (DoS).