All reports
Medium

kernel: net: inet: do not leave a dangling sk pointer in inet_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

Exploitation

CVE-2024-56601

Probability of exploitation in the next 30 days: 0.25%

FIRST EPSS · 2026-11-18

Description

In the Linux kernel, the following vulnerability has been resolved: net: inet: do not leave a dangling sk pointer in inet_create() sock_init_data() attaches the allocated sk object to the provided sock object. If inet_create() fails later, the sk object is freed, but the sock object retains the dangling pointer, which may create use-after-free later. Clear the sk pointer in the sock object on error.

A flaw was found in the Linux kernel. A local user can exploit this vulnerability to cause a Denial of Service (DoS) or potentially leak sensitive system memory. When an error occurs during network socket creation in the inet_create() function, the kernel frees the allocated socket object without clearing the corresponding pointer, leading to a use-after-free condition.