CVE-2024-56606
JSON

7.8high

af_packet: avoid erroring out after sock_init_data() in packet_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: af_packet: avoid erroring out after sock_init_data() in packet_create() After sock_init_data() the allocated sk object is attached to the provided sock object. On error, packet_create() frees the sk object leaving the dangling pointer in the sock object on return. Some other code may try to use this pointer and cause use-after-free.

Affected

Product or packageVersionsReported by
Linux Linuxfrom b013840810c221f2b0cf641d01531526052dc1fb before 71b22837a5e55ac27d6a14b9cdf2326587405c4f, from b013840810c221f2b0cf641d01531526052dc1fb before 1dc1e1db927056cb323296e2294a855cd003dfe7, from b013840810c221f2b0cf641d01531526052dc1fb before 132e615bb1d7cdec2d3cfbdec2efa630e923fd21, from b013840810c221f2b0cf641d01531526052dc1fb before a6cf750b737374454a4e03a5ed449a3eb0c96414, from b013840810c221f2b0cf641d01531526052dc1fb before 157f08db94123e2ba56877dd0ac88908b13a5dd0, from b013840810c221f2b0cf641d01531526052dc1fb before fd09880b16d33aa5a7420578e01cd79148fa9829, from b013840810c221f2b0cf641d01531526052dc1fb before 46f2a11cb82b657fd15bab1c47821b635e03838b, 3.14
Not affected: before 3.14, 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: af_packet: avoid erroring out after sock_init_data() in packet_create() After sock_init_data() the allocated sk object is attached to the provided sock object. On error, packet_create() frees the sk object leaving the dangling pointer in the sock object on return. Some other code may try to use this pointer and cause use-after-free.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: af_packet: evitar errores después de sock_init_data() en packet_create() Después de sock_init_data(), el objeto sk asignado se adjunta al objeto sock proporcionado. En caso de error, packet_create() libera el objeto sk dejando el puntero colgando en el objeto sock al regresar. Es posible que algún otro código intente usar este puntero y provoque un error de use-after-free.

References

Sources

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