{"id":"CVE-2024-56603","summary":"net: af_can: do not leave a dangling sk pointer in can_create()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: af_can: do not leave a dangling sk pointer in can_create()\n\nOn error can_create() frees the allocated sk object, but sock_init_data()\nhas already attached it to the provided sock object. This will leave a\ndangling sk pointer in the sock object and may cause use-after-free later.","modified":"2026-04-16T04:39:05.580013500Z","published":"2024-12-27T14:51:08.923Z","related":["ALSA-2025:20518","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":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56603.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1fe625f12d090d69f3f084990c7e4c1ff94bfe5f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5947c9ac08f0771ea8ed64186b0d52e9029cb6c0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/811a7ca7320c062e15d0f5b171fe6ad8592d1434"},{"type":"WEB","url":"https://git.kernel.org/stable/c/884ae8bcee749be43a071d6ed2d89058dbd2425c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8df832e6b945e1ba61467d7f1c9305e314ae92fe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ce39b5576785bb3e66591145aad03d66bc3e778d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/db207d19adbac96058685f6257720906ad41d215"},{"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-56603.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56603"},{"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":"0d66548a10cbbe0ef256852d63d30603f0f73f9b"},{"fixed":"884ae8bcee749be43a071d6ed2d89058dbd2425c"},{"fixed":"ce39b5576785bb3e66591145aad03d66bc3e778d"},{"fixed":"1fe625f12d090d69f3f084990c7e4c1ff94bfe5f"},{"fixed":"5947c9ac08f0771ea8ed64186b0d52e9029cb6c0"},{"fixed":"db207d19adbac96058685f6257720906ad41d215"},{"fixed":"8df832e6b945e1ba61467d7f1c9305e314ae92fe"},{"fixed":"811a7ca7320c062e15d0f5b171fe6ad8592d1434"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56603.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"}]}