can: can327: can327_feed_frame_to_netdev(): fix potential skb leak when netdev is down
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
can: can327: can327_feed_frame_to_netdev(): fix potential skb leak when netdev is down
In can327_feed_frame_to_netdev(), it did not free the skb when netdev is down, and all callers of can327_feed_frame_to_netdev() did not free allocated skb too. That would trigger skb leak.
Fix it by adding kfree_skb() in can327_feed_frame_to_netdev() when netdev is down. Not tested, just compiled.
From the CVE record · Linux
The Linux kernel’s can327 frame-handling function can leak an allocated network buffer when the network device is down. The input does not specify how an attacker could trigger this condition or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with can327 should check their versions; affected versions are not specified.