In the Linux kernel, the following vulnerability has been resolved:
Drivers: hv: vmbus: Fix memory leak in vmbusaddchannel_kobj
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().
[
{
"target": {
"file": "drivers/hv/vmbus_drv.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@417947891bd5ae327f15efed1a0da2b12ef24962",
"id": "CVE-2022-48775-01e37f9d",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"170403840385752145850313064213624476210",
"9831637805937295662325369158720161811",
"121078219030254797080515138253832914546",
"236040301763549550570574921918812952182",
"153632246306760077515169417386217231626",
"8647859294697073444727229826010467956",
"169366163645787963113085580207344967130"
]
}
},
{
"target": {
"file": "drivers/hv/vmbus_drv.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92e25b637cd4e010f776c86e4810300e773eac5c",
"id": "CVE-2022-48775-03f7f210",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"170403840385752145850313064213624476210",
"9831637805937295662325369158720161811",
"121078219030254797080515138253832914546",
"236040301763549550570574921918812952182",
"153632246306760077515169417386217231626",
"8647859294697073444727229826010467956",
"169366163645787963113085580207344967130"
]
}
},
{
"target": {
"function": "vmbus_add_channel_kobj",
"file": "drivers/hv/vmbus_drv.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c377e2ba78d3fe9a1f0b4ec424e75f81da7e81e9",
"id": "CVE-2022-48775-33f0f3b1",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 484.0,
"function_hash": "187529150513728740937218606883745879431"
}
},
{
"target": {
"file": "drivers/hv/vmbus_drv.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@91d8866ca55232d21995a3d54fac96de33c9e20c",
"id": "CVE-2022-48775-63be69ce",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"170403840385752145850313064213624476210",
"9831637805937295662325369158720161811",
"121078219030254797080515138253832914546",
"236040301763549550570574921918812952182",
"153632246306760077515169417386217231626",
"8647859294697073444727229826010467956",
"169366163645787963113085580207344967130"
]
}
},
{
"target": {
"file": "drivers/hv/vmbus_drv.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c377e2ba78d3fe9a1f0b4ec424e75f81da7e81e9",
"id": "CVE-2022-48775-6ecbe4a4",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"170403840385752145850313064213624476210",
"9831637805937295662325369158720161811",
"121078219030254797080515138253832914546",
"236040301763549550570574921918812952182",
"153632246306760077515169417386217231626",
"8647859294697073444727229826010467956",
"169366163645787963113085580207344967130"
]
}
},
{
"target": {
"file": "drivers/hv/vmbus_drv.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8bc69f86328e87a0ffa79438430cc82f3aa6a194",
"id": "CVE-2022-48775-6fc483e5",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"170403840385752145850313064213624476210",
"9831637805937295662325369158720161811",
"121078219030254797080515138253832914546",
"236040301763549550570574921918812952182",
"153632246306760077515169417386217231626",
"8647859294697073444727229826010467956",
"169366163645787963113085580207344967130"
]
}
},
{
"target": {
"function": "vmbus_add_channel_kobj",
"file": "drivers/hv/vmbus_drv.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@91d8866ca55232d21995a3d54fac96de33c9e20c",
"id": "CVE-2022-48775-91866bec",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 484.0,
"function_hash": "187529150513728740937218606883745879431"
}
},
{
"target": {
"function": "vmbus_add_channel_kobj",
"file": "drivers/hv/vmbus_drv.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@417947891bd5ae327f15efed1a0da2b12ef24962",
"id": "CVE-2022-48775-9d8a97ab",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 484.0,
"function_hash": "187529150513728740937218606883745879431"
}
},
{
"target": {
"function": "vmbus_add_channel_kobj",
"file": "drivers/hv/vmbus_drv.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92e25b637cd4e010f776c86e4810300e773eac5c",
"id": "CVE-2022-48775-a572077e",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 484.0,
"function_hash": "187529150513728740937218606883745879431"
}
},
{
"target": {
"function": "vmbus_add_channel_kobj",
"file": "drivers/hv/vmbus_drv.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe595759c2a4a5bb41c438474f15947d8ae32f5c",
"id": "CVE-2022-48775-dfb21c9c",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 484.0,
"function_hash": "187529150513728740937218606883745879431"
}
},
{
"target": {
"function": "vmbus_add_channel_kobj",
"file": "drivers/hv/vmbus_drv.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8bc69f86328e87a0ffa79438430cc82f3aa6a194",
"id": "CVE-2022-48775-e149da9a",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 484.0,
"function_hash": "187529150513728740937218606883745879431"
}
},
{
"target": {
"file": "drivers/hv/vmbus_drv.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe595759c2a4a5bb41c438474f15947d8ae32f5c",
"id": "CVE-2022-48775-e2235f28",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"170403840385752145850313064213624476210",
"9831637805937295662325369158720161811",
"121078219030254797080515138253832914546",
"236040301763549550570574921918812952182",
"153632246306760077515169417386217231626",
"8647859294697073444727229826010467956",
"169366163645787963113085580207344967130"
]
}
}
]