All reports
Medium

kernel: net: af_can: do not leave a dangling sk pointer in can_create()

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
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-56603

Probability of exploitation in the next 30 days: 0.24%

FIRST EPSS · 2026-11-19

Description

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.

A flaw was found in the Linux kernel's CAN (Controller Area Network) subsystem. When an error occurs during socket creation, an internal socket object is released without clearing its associated reference, leaving a dangling pointer. A local user could exploit this use-after-free condition to cause a Denial of Service (DoS) or potentially execute arbitrary code.