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().
[
{
"id": "CVE-2022-49224-108a0c6d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@31cdf7897dba1f096b74f69d840f0575b8cdb9ae",
"digest": {
"line_hashes": [
"211469900236057843705672907394813140918",
"192723905835886016104858378361701607944",
"66752670352589531373394591235758413189",
"207534171241629206102262434169911175023",
"3767144803946557306501546865481887979"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Line",
"deprecated": false
},
{
"id": "CVE-2022-49224-35060d70",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@261041097ab3470f1120b7733cbf472712304d1e",
"digest": {
"line_hashes": [
"211469900236057843705672907394813140918",
"192723905835886016104858378361701607944",
"66752670352589531373394591235758413189",
"207534171241629206102262434169911175023",
"3767144803946557306501546865481887979"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Line",
"deprecated": false
},
{
"id": "CVE-2022-49224-39eb7a3c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@31cdf7897dba1f096b74f69d840f0575b8cdb9ae",
"digest": {
"length": 232.0,
"function_hash": "239682160544595965101749559785663698098"
},
"signature_version": "v1",
"target": {
"function": "ab8500_fg_sysfs_init",
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Function",
"deprecated": false
},
{
"id": "CVE-2022-49224-441c7dc5",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6a4760463dbc6b603690938c468839985189ce0a",
"digest": {
"length": 232.0,
"function_hash": "239682160544595965101749559785663698098"
},
"signature_version": "v1",
"target": {
"function": "ab8500_fg_sysfs_init",
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Function",
"deprecated": false
},
{
"id": "CVE-2022-49224-50989881",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@19aa3c98ed7b2616e105946cec804f897837ab84",
"digest": {
"length": 232.0,
"function_hash": "239682160544595965101749559785663698098"
},
"signature_version": "v1",
"target": {
"function": "ab8500_fg_sysfs_init",
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Function",
"deprecated": false
},
{
"id": "CVE-2022-49224-593056e5",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@879356a6a05559582b0a7895d86d2d4359745c08",
"digest": {
"length": 232.0,
"function_hash": "239682160544595965101749559785663698098"
},
"signature_version": "v1",
"target": {
"function": "ab8500_fg_sysfs_init",
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Function",
"deprecated": false
},
{
"id": "CVE-2022-49224-5fcbde48",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c32f6b6196b6efc1c68990dfeaac36fb8eb3b8e1",
"digest": {
"length": 232.0,
"function_hash": "239682160544595965101749559785663698098"
},
"signature_version": "v1",
"target": {
"function": "ab8500_fg_sysfs_init",
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Function",
"deprecated": false
},
{
"id": "CVE-2022-49224-6396813c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@41ed61364285ff38bbbe9ca8a45c8372ba72921d",
"digest": {
"length": 232.0,
"function_hash": "239682160544595965101749559785663698098"
},
"signature_version": "v1",
"target": {
"function": "ab8500_fg_sysfs_init",
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Function",
"deprecated": false
},
{
"id": "CVE-2022-49224-6e4a441d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@19aa3c98ed7b2616e105946cec804f897837ab84",
"digest": {
"line_hashes": [
"211469900236057843705672907394813140918",
"192723905835886016104858378361701607944",
"66752670352589531373394591235758413189",
"207534171241629206102262434169911175023",
"3767144803946557306501546865481887979"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Line",
"deprecated": false
},
{
"id": "CVE-2022-49224-8f43319c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@db3a61ef8e6aef3b888baa6a85926c2230c2cc56",
"digest": {
"line_hashes": [
"211469900236057843705672907394813140918",
"192723905835886016104858378361701607944",
"66752670352589531373394591235758413189",
"207534171241629206102262434169911175023",
"3767144803946557306501546865481887979"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Line",
"deprecated": false
},
{
"id": "CVE-2022-49224-8fbfb9d5",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@261041097ab3470f1120b7733cbf472712304d1e",
"digest": {
"length": 232.0,
"function_hash": "239682160544595965101749559785663698098"
},
"signature_version": "v1",
"target": {
"function": "ab8500_fg_sysfs_init",
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Function",
"deprecated": false
},
{
"id": "CVE-2022-49224-9fde547c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ffb8e92b4cef92bd25563cf3d8b4489eb22bc61f",
"digest": {
"line_hashes": [
"211469900236057843705672907394813140918",
"192723905835886016104858378361701607944",
"66752670352589531373394591235758413189",
"207534171241629206102262434169911175023",
"3767144803946557306501546865481887979"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Line",
"deprecated": false
},
{
"id": "CVE-2022-49224-b3b11521",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c32f6b6196b6efc1c68990dfeaac36fb8eb3b8e1",
"digest": {
"line_hashes": [
"211469900236057843705672907394813140918",
"192723905835886016104858378361701607944",
"66752670352589531373394591235758413189",
"207534171241629206102262434169911175023",
"3767144803946557306501546865481887979"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Line",
"deprecated": false
},
{
"id": "CVE-2022-49224-b91f204b",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@879356a6a05559582b0a7895d86d2d4359745c08",
"digest": {
"line_hashes": [
"211469900236057843705672907394813140918",
"192723905835886016104858378361701607944",
"66752670352589531373394591235758413189",
"207534171241629206102262434169911175023",
"3767144803946557306501546865481887979"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Line",
"deprecated": false
},
{
"id": "CVE-2022-49224-bda5e7a3",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6a4760463dbc6b603690938c468839985189ce0a",
"digest": {
"line_hashes": [
"211469900236057843705672907394813140918",
"192723905835886016104858378361701607944",
"66752670352589531373394591235758413189",
"207534171241629206102262434169911175023",
"3767144803946557306501546865481887979"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Line",
"deprecated": false
},
{
"id": "CVE-2022-49224-d16ca0a3",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@41ed61364285ff38bbbe9ca8a45c8372ba72921d",
"digest": {
"line_hashes": [
"211469900236057843705672907394813140918",
"192723905835886016104858378361701607944",
"66752670352589531373394591235758413189",
"207534171241629206102262434169911175023",
"3767144803946557306501546865481887979"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Line",
"deprecated": false
},
{
"id": "CVE-2022-49224-e606864a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ffb8e92b4cef92bd25563cf3d8b4489eb22bc61f",
"digest": {
"length": 232.0,
"function_hash": "239682160544595965101749559785663698098"
},
"signature_version": "v1",
"target": {
"function": "ab8500_fg_sysfs_init",
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Function",
"deprecated": false
},
{
"id": "CVE-2022-49224-fb8ad6e3",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@db3a61ef8e6aef3b888baa6a85926c2230c2cc56",
"digest": {
"length": 232.0,
"function_hash": "239682160544595965101749559785663698098"
},
"signature_version": "v1",
"target": {
"function": "ab8500_fg_sysfs_init",
"file": "drivers/power/supply/ab8500_fg.c"
},
"signature_type": "Function",
"deprecated": false
}
]