5.5medium
power: supply: ab8500: Fix memory leak in ab8500_fg_sysfs_init
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: power: supply: ab8500: Fix memory leak in ab8500_fg_sysfs_init kobject_init_and_add() takes reference even when it fails. According to the doc of kobject_init_and_add(): If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object. Fix memory leak by calling kobject_put().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 8c0984e5a75337df513047ec92a6c09d78e3e5cd before 31cdf7897dba1f096b74f69d840f0575b8cdb9ae, from 8c0984e5a75337df513047ec92a6c09d78e3e5cd before 19aa3c98ed7b2616e105946cec804f897837ab84, from 8c0984e5a75337df513047ec92a6c09d78e3e5cd before db3a61ef8e6aef3b888baa6a85926c2230c2cc56, from 8c0984e5a75337df513047ec92a6c09d78e3e5cd before 41ed61364285ff38bbbe9ca8a45c8372ba72921d, from 8c0984e5a75337df513047ec92a6c09d78e3e5cd before 879356a6a05559582b0a7895d86d2d4359745c08, from 8c0984e5a75337df513047ec92a6c09d78e3e5cd before ffb8e92b4cef92bd25563cf3d8b4489eb22bc61f, from 8c0984e5a75337df513047ec92a6c09d78e3e5cd before 261041097ab3470f1120b7733cbf472712304d1e, from 8c0984e5a75337df513047ec92a6c09d78e3e5cd before c32f6b6196b6efc1c68990dfeaac36fb8eb3b8e1 and 2 more Not affected: before 4.9, from 4.9.311 up to 4.9.*, from 4.14.276 up to 4.14.*, from 4.19.238 up to 4.19.*, from 5.4.189 up to 5.4.*, from 5.10.110 up to 5.10.* | CVE List |
| linux linux_kernel | from 4.9 before 4.9.311, from 4.10 before 4.14.276, from 4.15 before 4.19.238, from 4.20 before 5.4.189, from 5.5 before 5.10.110, from 5.11 before 5.15.33, from 5.16 before 5.16.19, from 5.17 before 5.17.2 | NVD |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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: power: supply: ab8500: Fix memory leak in ab8500_fg_sysfs_init kobject_init_and_add() takes reference even when it fails. According to the doc of kobject_init_and_add(): If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object. Fix memory leak by calling kobject_put().
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: power: supply: ab8500: Se corrige la pérdida de memoria en ab8500_fg_sysfs_init kobject_init_and_add() toma la referencia incluso cuando falla. Según la documentación de kobject_init_and_add(): Si esta función devuelve un error, se debe llamar a kobject_put() para limpiar correctamente la memoria asociada con el objeto. Corrija la pérdida de memoria llamando a kobject_put().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-49224 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-49224 changed 2026-06-17 | Public domain |