# CVE-2024-56606: af_packet: avoid erroring out after sock_init_data() in packet_create()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-12-27T14:51:11.327Z
- Modified: 2026-10-15T01:19:17.313Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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.*; from 6.12.5 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: before 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.5

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/71b22837a5e55ac27d6a14b9cdf2326587405c4f> (patch)
- <https://git.kernel.org/stable/c/1dc1e1db927056cb323296e2294a855cd003dfe7> (patch)
- <https://git.kernel.org/stable/c/132e615bb1d7cdec2d3cfbdec2efa630e923fd21> (patch)
- <https://git.kernel.org/stable/c/a6cf750b737374454a4e03a5ed449a3eb0c96414> (patch)
- <https://git.kernel.org/stable/c/157f08db94123e2ba56877dd0ac88908b13a5dd0> (patch)
- <https://git.kernel.org/stable/c/fd09880b16d33aa5a7420578e01cd79148fa9829> (patch)
- <https://git.kernel.org/stable/c/46f2a11cb82b657fd15bab1c47821b635e03838b> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Sources

- CVE List: [CVE-2024-56606](https://www.cve.org/CVERecord?id=CVE-2024-56606), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-56606](https://nvd.nist.gov/vuln/detail/CVE-2024-56606), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-56606 · Whole record: https://cve.day/CVE-2024-56606.json · Rebuilt by cve.day 2026-11-25T22:58:50.476Z
