can: dev: can_restart: fix use after free bug
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 39549eef3587f1c1e8c65c88a2400d10fd30ea17 · < 593c072b7b3c4d7044416eb039d9ad706bedd67a| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s CAN restart handling accesses packet memory after passing it to netif_rx_ni(), causing a use-after-free. The input does not specify how an attacker could trigger it, whether authentication or user interaction is required, or what an attacker could achieve.
Engineers running the Linux kernel should check their versions; affected versions are not specified in the input.