7.0high
net: ieee802154: do not leave a dangling sk pointer in ieee802154_create()
- Severity
- 7.0high CVSS:3.1 by Linux
- Exploit likelihood
- 0.31% (higher than 16% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net: ieee802154: do not leave a dangling sk pointer in ieee802154_create() sock_init_data() attaches the allocated sk object to the provided sock object. If ieee802154_create() fails later, the allocated sk object is freed, but the dangling pointer remains in the provided sock object, which may allow use-after-free. Clear the sk pointer in the sock object on error.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 9ec7671603573ede31207eb5b0b3e1aa211b2854 before 1d5fe782c0ff068d80933f9cfd0fd39d5434bbc9, from 9ec7671603573ede31207eb5b0b3e1aa211b2854 before 14959fd7538b3be6d7617d9e60e404d6a8d4fd1f, from 9ec7671603573ede31207eb5b0b3e1aa211b2854 before 2b46994a6e76c8cc5556772932b9b60d03a55cd8, from 9ec7671603573ede31207eb5b0b3e1aa211b2854 before e8bd6c5f5dc2234b4ea714380aedeea12a781754, from 9ec7671603573ede31207eb5b0b3e1aa211b2854 before b4982fbf13042e3bb33e04eddfea8b1506b5ea65, from 9ec7671603573ede31207eb5b0b3e1aa211b2854 before 03caa9bfb9fde97fb53d33decd7364514e6825cb, from 9ec7671603573ede31207eb5b0b3e1aa211b2854 before b4fcd63f6ef79c73cafae8cf4a114def5fc3d80d, 2.6.31 Not affected: before 2.6.31, 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.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/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: ieee802154: do not leave a dangling sk pointer in ieee802154_create() sock_init_data() attaches the allocated sk object to the provided sock object. If ieee802154_create() fails later, the allocated sk object is freed, but the dangling pointer remains in the provided sock object, which may allow use-after-free. Clear the sk pointer in the sock object on error.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: ieee802154: no deje un puntero sk colgando en ieee802154_create() sock_init_data() adjunta el objeto sk asignado al objeto sock proporcionado. Si ieee802154_create() falla más tarde, el objeto sk asignado se libera, pero el puntero colgando permanece en el objeto sock proporcionado, lo que puede permitir el use-after-free. Borre el puntero sk en el objeto sock en caso de error.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-56602 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-56602 changed 2026-08-04 | Public domain |