CVE-2024-56600
JSON

7.8high

net: inet6: do not leave a dangling sk pointer in inet6_create()

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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

Affected

Product or packageVersionsReported by
Linux Linuxfrom 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before f2709d1271cfdf55c670ab5c5982139ab627ddc7, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 35360255ca30776dee34d9fa764cffa24d0a5f65, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 276a473c956fb55a6f3affa9ff232e10fffa7b43, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 79e16a0d339532ea832d85798eb036fc4f9e0cea, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 706b07b7b37f886423846cb38919132090bc40da, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before f44fceb71d72d29fb00e0ac84cdf9c081b03cd06, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 9df99c395d0f55fb444ef39f4d6f194ca437d884, 2.6.12
Not affected: before 2.6.12, from 5.4.287 up to 5.4.*, from 5.10.231 up to 5.10.*, from 5.15.174 up to 5.15.*, from 6.1.120 up to 6.1.*, from 6.6.66 up to 6.6.*
CVE List
linux linux_kernelbefore 5.4.287, from 5.5 before 5.10.231, from 5.11 before 5.15.174, from 5.16 before 6.1.120, from 6.2 before 6.6.66, from 6.7 before 6.12.5NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: inet6: no deje un puntero sk colgando en inet6_create() sock_init_data() adjunta el puntero sk asignado al objeto sock proporcionado. Si inet6_create() falla más tarde, se libera el objeto sk, pero el objeto sock conserva el puntero sk colgando, lo que puede provocar un use-after-free más adelante. Borre el puntero sk sock en caso de error.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-56600 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-56600 changed 2026-10-15Public domain