net: af_can: do not leave a dangling sk pointer in can_create()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0d66548a10cbbe0ef256852d63d30603f0f73f9b · < 8df832e6b945e1ba61467d7f1c9305e314ae92fe| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: af_can: do not leave a dangling sk pointer in can_create()
On error can_create() frees the allocated sk object, but sock_init_data() has already attached it to the provided sock object. This will leave a dangling sk pointer in the sock object and may cause use-after-free later.
From the CVE record · Linux
An error in the Linux kernel's can_create() frees a socket object but leaves a dangling pointer attached to the socket. This may cause a use-after-free later. The input does not specify how an attacker could trigger the error or whether authentication or user interaction is required.
Engineers running the Linux kernel should check their installations; affected versions were not provided.