# CVE-2024-56603: net: af_can: do not leave a dangling sk pointer in can_create()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-12-27T14:51:08.923Z
- Modified: 2026-08-05T11:45:23.876Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 0d66548a10cbbe0ef256852d63d30603f0f73f9b before 884ae8bcee749be43a071d6ed2d89058dbd2425c; from 0d66548a10cbbe0ef256852d63d30603f0f73f9b before ce39b5576785bb3e66591145aad03d66bc3e778d; from 0d66548a10cbbe0ef256852d63d30603f0f73f9b before 1fe625f12d090d69f3f084990c7e4c1ff94bfe5f; from 0d66548a10cbbe0ef256852d63d30603f0f73f9b before 5947c9ac08f0771ea8ed64186b0d52e9029cb6c0; from 0d66548a10cbbe0ef256852d63d30603f0f73f9b before db207d19adbac96058685f6257720906ad41d215; from 0d66548a10cbbe0ef256852d63d30603f0f73f9b before 8df832e6b945e1ba61467d7f1c9305e314ae92fe; from 0d66548a10cbbe0ef256852d63d30603f0f73f9b before 811a7ca7320c062e15d0f5b171fe6ad8592d1434; 2.6.25 (not affected: before 2.6.25; from 5.4.287 up to 5.4.*; from 5.10.231 up to 5.10.*; from 5.15.174 up to 5.15.*; from 6.1.120 up to 6.1.*; from 6.6.66 up to 6.6.*; from 6.12.5 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: before 5.4.287; from 5.5 before 5.10.231; from 5.11 before 5.15.174; from 5.16 before 6.1.120; from 6.2 before 6.6.66; from 6.7 before 6.12.5

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/884ae8bcee749be43a071d6ed2d89058dbd2425c> (patch)
- <https://git.kernel.org/stable/c/ce39b5576785bb3e66591145aad03d66bc3e778d> (patch)
- <https://git.kernel.org/stable/c/1fe625f12d090d69f3f084990c7e4c1ff94bfe5f> (patch)
- <https://git.kernel.org/stable/c/5947c9ac08f0771ea8ed64186b0d52e9029cb6c0> (patch)
- <https://git.kernel.org/stable/c/db207d19adbac96058685f6257720906ad41d215> (patch)
- <https://git.kernel.org/stable/c/8df832e6b945e1ba61467d7f1c9305e314ae92fe> (patch)
- <https://git.kernel.org/stable/c/811a7ca7320c062e15d0f5b171fe6ad8592d1434> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Sources

- CVE List: [CVE-2024-56603](https://www.cve.org/CVERecord?id=CVE-2024-56603), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-56603](https://nvd.nist.gov/vuln/detail/CVE-2024-56603), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56603 · Whole record: https://cve.day/CVE-2024-56603.json · Rebuilt by cve.day 2026-11-25T22:58:50.475Z
