CVE-2024-56606

af_packet: avoid erroring out after sock_init_data() in packet_create()

HIGH
7.8
CVSS Score
Published: December 27, 2024 at 02:51 PM UTC
Updated: October 15, 2026 at 01:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versionsv < 5.4.2875.11 ≤ v < 5.15.1745.16 ≤ v < 6.1.1205.5 ≤ v < 5.10.2316.2 ≤ v < 6.6.666.7 ≤ v < 6.12.53.14b013840810c221f2b0cf641d01531526052dc1fb
Vendor states this is fixed in 132e615bb1d7cdec2d3cfbdec2efa630e923fd21 (fixed)
Vendor states this is fixed in 157f08db94123e2ba56877dd0ac88908b13a5dd0 (fixed)
Vendor states this is fixed in 1dc1e1db927056cb323296e2294a855cd003dfe7 (fixed)
Vendor states this is fixed in 46f2a11cb82b657fd15bab1c47821b635e03838b (fixed)
Vendor states this is fixed in 71b22837a5e55ac27d6a14b9cdf2326587405c4f (fixed)
Vendor states this is fixed in a6cf750b737374454a4e03a5ed449a3eb0c96414 (fixed)
Vendor states this is fixed in fd09880b16d33aa5a7420578e01cd79148fa9829 (fixed)
Vendor states this is fixed in 3.14 (unaffected)
Vendor states this is fixed in 5.10.231 (unaffected)
Vendor states this is fixed in 5.15.174 (unaffected)
Vendor states this is fixed in 5.4.287 (unaffected)
Vendor states this is fixed in 6.1.120 (unaffected)
Vendor states this is fixed in 6.12.5 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.6.66 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/132e615bb1d7cdec2d3cfbdec2efa630e923fd21
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/157f08db94123e2ba56877dd0ac88908b13a5dd0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1dc1e1db927056cb323296e2294a855cd003dfe7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/46f2a11cb82b657fd15bab1c47821b635e03838b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/71b22837a5e55ac27d6a14b9cdf2326587405c4f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a6cf750b737374454a4e03a5ed449a3eb0c96414
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fd09880b16d33aa5a7420578e01cd79148fa9829
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card