7.8high
net: af_can: do not leave a dangling sk pointer in can_create()
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.24% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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.* | CVE List |
| 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 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: af_can: no deje un puntero sk colgando en can_create() En caso de error, can_create() libera el objeto sk asignado, pero sock_init_data() ya lo ha adjuntado al objeto sock proporcionado. Esto dejará un puntero sk colgando en el objeto sock y puede provocar un uso posterior a la liberación más adelante.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-56603 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-56603 changed 2026-06-17 | Public domain |