can: ctucanfd: handle skb allocation failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
can: ctucanfd: handle skb allocation failure
If skb allocation fails, the pointer to struct can_frame is NULL. This is actually handled everywhere inside ctucan_err_interrupt() except for the only place.
Add the missed NULL check.
Found by Linux Verification Center (linuxtesting.org) with SVACE static analysis tool.
From the CVE record · Linux
The Linux kernel’s ctucanfd driver misses a NULL check in ctucan_err_interrupt() when skb allocation fails. This can lead to a NULL pointer dereference; the input does not establish whether an attacker can trigger it or specify access or interaction requirements.
Engineers running Linux kernels with the ctucanfd driver should check their deployments; affected versions are not specified.