{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-56606",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-12-27T14:03:06.013Z",
        "datePublished": "2024-12-27T14:51:11.327Z",
        "dateUpdated": "2026-08-05T11:45:27.108Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:45:27.108Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\naf_packet: avoid erroring out after sock_init_data() in packet_create()\n\nAfter sock_init_data() the allocated sk object is attached to the provided\nsock object. On error, packet_create() frees the sk object leaving the\ndangling pointer in the sock object on return. Some other code may try\nto use this pointer and cause use-after-free."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The vulnerability is reached purely through the local `socket(AF_PACKET, ...)` syscall path (`__sys_socket` → `__sock_create` → `packet_create`); no network packet or remote peer is involved in triggering it.\nAC:L - The attacker controls both preconditions — they can exhaust percpu/slab memory themselves (mass socket and BPF-map allocation, netns churn) and retry the cheap `socket()` call in an unbounded loop until `alloc_percpu()` fails, and can heap-spray the generic kmalloc cache to reclaim the freed `packet_sock`.\nPR:L - The only gate is `ns_capable(net->user_ns, CAP_NET_RAW)` at af_packet.c:3394, which any unprivileged user satisfies inside a user+network namespace (`unshare -Urn`), and which containers hold by default.\nUI:N - The attacker triggers the entire sequence from their own process via repeated `socket()` calls; no action by any other user or administrator is required.\nS:U - The dangling pointer, the freed object, and the resulting corruption are all within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The use-after-free reads freed slab memory (`atomic64_read(&sk->sk_cookie)` in `__sock_gen_cookie()`), and since `packet_sock` comes from a generic kmalloc cache the attacker can reclaim the object with sprayed content, turning this into a controllable kernel memory disclosure primitive.\nI:H - `__sock_gen_cookie()` performs an `atomic64_cmpxchg()` on the freed object — an 8-byte write into attacker-reclaimed slab memory at a controlled offset, which is a classic stepping stone to control-flow hijack and privilege escalation.\nA:H - Dereferencing the dangling `sock->sk` after `sk_free()` corrupts freed slab memory and reliably produces a KASAN splat, oops, or panic, as shown in the reference report for this bug class."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/packet/af_packet.c"
                    ],
                    "versions": [
                        {
                            "version": "b013840810c221f2b0cf641d01531526052dc1fb",
                            "lessThan": "71b22837a5e55ac27d6a14b9cdf2326587405c4f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b013840810c221f2b0cf641d01531526052dc1fb",
                            "lessThan": "1dc1e1db927056cb323296e2294a855cd003dfe7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b013840810c221f2b0cf641d01531526052dc1fb",
                            "lessThan": "132e615bb1d7cdec2d3cfbdec2efa630e923fd21",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b013840810c221f2b0cf641d01531526052dc1fb",
                            "lessThan": "a6cf750b737374454a4e03a5ed449a3eb0c96414",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b013840810c221f2b0cf641d01531526052dc1fb",
                            "lessThan": "157f08db94123e2ba56877dd0ac88908b13a5dd0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b013840810c221f2b0cf641d01531526052dc1fb",
                            "lessThan": "fd09880b16d33aa5a7420578e01cd79148fa9829",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b013840810c221f2b0cf641d01531526052dc1fb",
                            "lessThan": "46f2a11cb82b657fd15bab1c47821b635e03838b",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/packet/af_packet.c"
                    ],
                    "versions": [
                        {
                            "version": "3.14",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.14",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.287",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.231",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.174",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.120",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.66",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.5",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.13",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.14",
                                    "versionEndExcluding": "5.4.287"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.14",
                                    "versionEndExcluding": "5.10.231"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.14",
                                    "versionEndExcluding": "5.15.174"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.14",
                                    "versionEndExcluding": "6.1.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.14",
                                    "versionEndExcluding": "6.6.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.14",
                                    "versionEndExcluding": "6.12.5"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.14",
                                    "versionEndExcluding": "6.13"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/71b22837a5e55ac27d6a14b9cdf2326587405c4f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1dc1e1db927056cb323296e2294a855cd003dfe7"
                },
                {
                    "url": "https://git.kernel.org/stable/c/132e615bb1d7cdec2d3cfbdec2efa630e923fd21"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a6cf750b737374454a4e03a5ed449a3eb0c96414"
                },
                {
                    "url": "https://git.kernel.org/stable/c/157f08db94123e2ba56877dd0ac88908b13a5dd0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/fd09880b16d33aa5a7420578e01cd79148fa9829"
                },
                {
                    "url": "https://git.kernel.org/stable/c/46f2a11cb82b657fd15bab1c47821b635e03838b"
                }
            ],
            "title": "af_packet: avoid erroring out after sock_init_data() in packet_create()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "cvssV3_1": {
                            "scope": "UNCHANGED",
                            "version": "3.1",
                            "baseScore": 7.8,
                            "attackVector": "LOCAL",
                            "baseSeverity": "HIGH",
                            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                            "integrityImpact": "HIGH",
                            "userInteraction": "NONE",
                            "attackComplexity": "LOW",
                            "availabilityImpact": "HIGH",
                            "privilegesRequired": "LOW",
                            "confidentialityImpact": "HIGH"
                        }
                    },
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-56606",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2025-02-11T15:42:04.007778Z"
                            }
                        }
                    }
                ],
                "problemTypes": [
                    {
                        "descriptions": [
                            {
                                "lang": "en",
                                "type": "CWE",
                                "cweId": "CWE-416",
                                "description": "CWE-416 Use After Free"
                            }
                        ]
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-02-11T15:45:22.662Z"
                }
            },
            {
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"
                    },
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"
                    }
                ],
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2025-11-03T20:50:53.934Z"
                }
            }
        ]
    }
}