{"id":"CVE-2024-56606","summary":"af_packet: avoid erroring out after sock_init_data() in packet_create()","details":"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.","modified":"2026-04-02T12:24:57.020788Z","published":"2024-12-27T14:51:11.327Z","related":["MGASA-2025-0030","MGASA-2025-0032","SUSE-SU-2025:0236-1","SUSE-SU-2025:0289-1","SUSE-SU-2025:0428-1","SUSE-SU-2025:0499-1","SUSE-SU-2025:0557-1","SUSE-SU-2025:20165-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20248-1","SUSE-SU-2025:20249-1","USN-7379-2","USN-7380-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56606.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/132e615bb1d7cdec2d3cfbdec2efa630e923fd21"},{"type":"WEB","url":"https://git.kernel.org/stable/c/157f08db94123e2ba56877dd0ac88908b13a5dd0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1dc1e1db927056cb323296e2294a855cd003dfe7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/46f2a11cb82b657fd15bab1c47821b635e03838b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/71b22837a5e55ac27d6a14b9cdf2326587405c4f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a6cf750b737374454a4e03a5ed449a3eb0c96414"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fd09880b16d33aa5a7420578e01cd79148fa9829"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56606.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56606"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b013840810c221f2b0cf641d01531526052dc1fb"},{"fixed":"71b22837a5e55ac27d6a14b9cdf2326587405c4f"},{"fixed":"1dc1e1db927056cb323296e2294a855cd003dfe7"},{"fixed":"132e615bb1d7cdec2d3cfbdec2efa630e923fd21"},{"fixed":"a6cf750b737374454a4e03a5ed449a3eb0c96414"},{"fixed":"157f08db94123e2ba56877dd0ac88908b13a5dd0"},{"fixed":"fd09880b16d33aa5a7420578e01cd79148fa9829"},{"fixed":"46f2a11cb82b657fd15bab1c47821b635e03838b"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56606.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}