7.8high
net: mana: Fix possible double free in error handling path
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.23% (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: mana: Fix possible double free in error handling path When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function adev_release calls kfree(madev). We shouldn't call kfree(madev) again in the error handling path. Set 'madev' to NULL.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from a69839d4327d053b18d8e1b0e7ddeee78db78f4f before 3243e64eb4d897c3eeb48b2a7221ab5a95e1282a, from a69839d4327d053b18d8e1b0e7ddeee78db78f4f before ed45c0a0b662079d4c0e518014cc148c753979b4, from a69839d4327d053b18d8e1b0e7ddeee78db78f4f before 1864b8224195d0e43ddb92a8151f54f6562090cc, 6.2 Not affected: before 6.2, from 6.6.37 up to 6.6.*, from 6.9.8 up to 6.9.*, from 6.10 up to * | CVE List |
| linux linux_kernel | before 6.2, from 6.3 before 6.6.37, from 6.7 before 6.9.8 | 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 |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net: mana: Fix possible double free in error handling path When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function adev_release calls kfree(madev). We shouldn't call kfree(madev) again in the error handling path. Set 'madev' to NULL.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: mana: corrige posible double free en la ruta de manejo de errores Cuando auxiliar_device_add() devuelve un error y luego llama a auxiliar_device_uninit(), la función de devolución de llamada adev_release llama a kfree(madev). No deberíamos volver a llamar a kfree(madev) en la ruta de manejo de errores. Establezca 'madev' en NULL.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-42069 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-42069 changed 2026-08-04 | Public domain |