In the Linux kernel, the following vulnerability has been resolved:
power: supply: ab8500: Fix memory leak in ab8500fgsysfs_init
kobjectinitandadd() takes reference even when it fails. According to the doc of kobjectinitandadd():
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().
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49224.json"
}[
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49224-50989881",
"target": {
"file": "drivers/power/supply/ab8500_fg.c",
"function": "ab8500_fg_sysfs_init"
},
"digest": {
"length": 232.0,
"function_hash": "239682160544595965101749559785663698098"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@19aa3c98ed7b2616e105946cec804f897837ab84"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49224-593056e5",
"target": {
"file": "drivers/power/supply/ab8500_fg.c",
"function": "ab8500_fg_sysfs_init"
},
"digest": {
"length": 232.0,
"function_hash": "239682160544595965101749559785663698098"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@879356a6a05559582b0a7895d86d2d4359745c08"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49224-6e4a441d",
"target": {
"file": "drivers/power/supply/ab8500_fg.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"211469900236057843705672907394813140918",
"192723905835886016104858378361701607944",
"66752670352589531373394591235758413189",
"207534171241629206102262434169911175023",
"3767144803946557306501546865481887979"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@19aa3c98ed7b2616e105946cec804f897837ab84"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49224-8f43319c",
"target": {
"file": "drivers/power/supply/ab8500_fg.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"211469900236057843705672907394813140918",
"192723905835886016104858378361701607944",
"66752670352589531373394591235758413189",
"207534171241629206102262434169911175023",
"3767144803946557306501546865481887979"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@db3a61ef8e6aef3b888baa6a85926c2230c2cc56"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49224-b91f204b",
"target": {
"file": "drivers/power/supply/ab8500_fg.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"211469900236057843705672907394813140918",
"192723905835886016104858378361701607944",
"66752670352589531373394591235758413189",
"207534171241629206102262434169911175023",
"3767144803946557306501546865481887979"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@879356a6a05559582b0a7895d86d2d4359745c08"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49224-fb8ad6e3",
"target": {
"file": "drivers/power/supply/ab8500_fg.c",
"function": "ab8500_fg_sysfs_init"
},
"digest": {
"length": 232.0,
"function_hash": "239682160544595965101749559785663698098"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@db3a61ef8e6aef3b888baa6a85926c2230c2cc56"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49224.json"