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().
[
{
"id": "CVE-2022-48775-6fc483e5",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8bc69f86328e87a0ffa79438430cc82f3aa6a194",
"digest": {
"threshold": 0.9,
"line_hashes": [
"170403840385752145850313064213624476210",
"9831637805937295662325369158720161811",
"121078219030254797080515138253832914546",
"236040301763549550570574921918812952182",
"153632246306760077515169417386217231626",
"8647859294697073444727229826010467956",
"169366163645787963113085580207344967130"
]
},
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/hv/vmbus_drv.c"
}
},
{
"id": "CVE-2022-48775-e149da9a",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8bc69f86328e87a0ffa79438430cc82f3aa6a194",
"digest": {
"function_hash": "187529150513728740937218606883745879431",
"length": 484.0
},
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/hv/vmbus_drv.c",
"function": "vmbus_add_channel_kobj"
}
}
]