CVE-2024-56603
published high CVSS 3.1 · 7.8net: af_can: do not leave a dangling sk pointer in can_create()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0d66548a10cbbe0ef256852d63d30603f0f73f9b to < 884ae8bcee749be43a071d6ed2d89058dbd2425c · 0d66548a10cbbe0ef256852d63d30603f0f73f9b to < ce39b5576785bb3e66591145aad03d66bc3e778d · 0d66548a10cbbe0ef256852d63d30603f0f73f9b to < 1fe625f12d090d69f3f084990c7e4c1ff94bfe5f · 0d66548a10cbbe0ef256852d63d30603f0f73f9b to < 5947c9ac08f0771ea8ed64186b0d52e9029cb6c0 · 0d66548a10cbbe0ef256852d63d30603f0f73f9b to < db207d19adbac96058685f6257720906ad41d215 · 0d66548a10cbbe0ef256852d63d30603f0f73f9b to < 8df832e6b945e1ba61467d7f1c9305e314ae92fe · 0d66548a10cbbe0ef256852d63d30603f0f73f9b to < 811a7ca7320c062e15d0f5b171fe6ad8592d1434 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.25 (affected) · 0 to < 2.6.25 (unaffected · semver) · 5.4.287 through 5.4.* (unaffected · semver) · 5.10.231 through 5.10.* (unaffected · semver) · 5.15.174 through 5.15.* (unaffected · semver) · 6.1.120 through 6.1.* (unaffected · semver) · 6.6.66 through 6.6.* (unaffected · semver) · 6.12.5 through 6.12.* (unaffected · semver) · 6.13 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2025-079 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2025-061 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2025-091 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-211.16.1.el10_2 | ALSA-2026:19569 |
| Debian | bullseye | linux | Advisory build | 5.10.234-1 | DLA-4075-1 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-809 | Fixed | Not stated | Amazon Linux assessment |
| Oracle Linux | 10 | kernelx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-211.16.1.el10_2 | ALSA-2026:19569 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-64k | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-64k-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-64k-debug | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-64k-debug-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-64k-debug-devel | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-extra | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-64k-devel | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-64k-modules | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-64k-modules-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-64k-modules-extra | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-uki-virt-addons | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-core | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | libperf | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | rtla | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| AlmaLinux | 9 | rv | Advisory build | 5.14.0-611.5.1.el9_7 | ALSA-2025:20518 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.128-1~deb11u1 | DLA-4076-1 |
| Oracle Linux | 10 | kernel-abi-stablelistsx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-corex86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-cross-headersaarch64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-cross-headersx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-debugx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-debug-corex86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-debug-develx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-debug-modulesx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-debug-modules-corex86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-debug-uki-virtx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-develx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-devel-matchedx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-docx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-headersaarch64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-headersx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-modulesx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-modules-corex86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-modules-extrax86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
| Oracle Linux | 10 | kernel-modules-extra-matchedx86_64 | Advisory build | 0:6.12.0-211.34.1.el10_2 | ELSA-2026-19569 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: net: af_can: do not leave a dangling sk pointer in can_create() On error can_create() frees the allocated sk object, but sock_init_data() has already attached it to the provided sock object. This will leave a dangling sk pointer in the sock object and may cause use-after-free later.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The defect lives in the `socket(AF_CAN, SOCK_RAW, CAN_RAW)` creation path, reached only through a local syscall via `__sock_create()`; no CAN-bus frame or network data reaches `can_create()`. Consistent with the Bluetooth and af_packet siblings in the same series, which were also scored AV:L because the flaw is in socket setup rather than frame processing. AC:L - The only failing `->init` is `raw_init()`'s `alloc_percpu(struct uniqframe)` returning `-ENOMEM`, and an unprivileged local attacker can drive the percpu allocator into failure by spraying percpu-consuming objects (including CAN raw sockets themselves) before retrying `socket()` in a tight loop. This is the same attacker-induced-ENOMEM shape as the af_packet sibling CVE-2024-56606, which was scored AC:L. PR:L - `can_create()` performs no `capable()` check at all — unlike af_packet there is no `CAP_NET_RAW` gate — and there is no `net_eq(net, &init_net)` restriction, so any unprivileged local user, including inside an unprivileged user namespace, can reach it. Where `CONFIG_CAN` is modular, `MODULE_ALIAS_NETPROTO(PF_CAN)` lets the unprivileged `socket()` call autoload the module itself. UI:N - The attacker performs the entire sequence — memory pressure plus repeated `socket()` calls — from its own process. No victim action, mount, or file open is involved. S:U - The freed `struct raw_sock`/`struct sock` and the stale `sock->sk` reference both live entirely within the kernel's own security authority. No VM, IOMMU, or sandbox boundary is crossed. C:H - Per the use-after-free rubric, the stale `sock->sk` pointing at a freed `raw_sock` in the general kmalloc caches lets an attacker reclaim the slab and read back attacker-shaped or leftover kernel data; the demonstrated consumer for this exact bug class (CVE-2024-40954) is a KASAN-confirmed slab-use-after-free *read* of the freed sock via `__sock_gen_cookie()`. I:H - The same dangling reference permits heap spraying of the reclaimed slot, giving control over function-pointer-bearing fields of `struct sock` (`sk_prot`, `sk_destruct`, `sk_wq`) and therefore a control-flow-hijack primitive rather than mere data corruption. A:H - Any dereference of the freed `sock->sk` before `iput()` faults or corrupts kernel state, producing an oops or panic; the rubric treats all use-after-free conditions as high availability impact even when only partially exploited.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0d66548a10cbbe0ef256852d63d30603f0f73f9b to < 884ae8bcee749be43a071d6ed2d89058dbd2425c (affected · git)0d66548a10cbbe0ef256852d63d30603f0f73f9b to < ce39b5576785bb3e66591145aad03d66bc3e778d (affected · git)0d66548a10cbbe0ef256852d63d30603f0f73f9b to < 1fe625f12d090d69f3f084990c7e4c1ff94bfe5f (affected · git)0d66548a10cbbe0ef256852d63d30603f0f73f9b to < 5947c9ac08f0771ea8ed64186b0d52e9029cb6c0 (affected · git)0d66548a10cbbe0ef256852d63d30603f0f73f9b to < db207d19adbac96058685f6257720906ad41d215 (affected · git)0d66548a10cbbe0ef256852d63d30603f0f73f9b to < 8df832e6b945e1ba61467d7f1c9305e314ae92fe (affected · git)0d66548a10cbbe0ef256852d63d30603f0f73f9b to < 811a7ca7320c062e15d0f5b171fe6ad8592d1434 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.25 (affected)0 to < 2.6.25 (unaffected · semver)5.4.287 through 5.4.* (unaffected · semver)5.10.231 through 5.10.* (unaffected · semver)5.15.174 through 5.15.* (unaffected · semver)6.1.120 through 6.1.* (unaffected · semver)6.6.66 through 6.6.* (unaffected · semver)6.12.5 through 6.12.* (unaffected · semver)6.13 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
9- https://git.kernel.org/stable/c/1fe625f12d090d69f3f084990c7e4c1ff94bfe5f
- https://git.kernel.org/stable/c/5947c9ac08f0771ea8ed64186b0d52e9029cb6c0
- https://git.kernel.org/stable/c/811a7ca7320c062e15d0f5b171fe6ad8592d1434
- https://git.kernel.org/stable/c/884ae8bcee749be43a071d6ed2d89058dbd2425c
- https://git.kernel.org/stable/c/8df832e6b945e1ba61467d7f1c9305e314ae92fe
- https://git.kernel.org/stable/c/ce39b5576785bb3e66591145aad03d66bc3e778d
- https://git.kernel.org/stable/c/db207d19adbac96058685f6257720906ad41d215
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html
Provider assertions
3Linux · cna
net: af_can: do not leave a dangling sk pointer in can_create()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 72a709543f12ffe66b703df5d12a5fba394e48dc44481a5125a30865c7b57024
- Ingested
- 23 Sep 2026, 08:31:59 UTC
- Source record
- Official CVE record