In the Linux kernel, the following vulnerability has been resolved:
Drivers: hv: vmbus: Fix memory leak in vmbus_add_channel_kobj
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().
[
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/hv/vmbus_drv.c"
],
"versions": [
{
"version": "c2e5df616e1a",
"lessThan": "417947891bd5",
"status": "affected",
"versionType": "git"
},
{
"version": "c2e5df616e1a",
"lessThan": "fe595759c2a4",
"status": "affected",
"versionType": "git"
},
{
"version": "c2e5df616e1a",
"lessThan": "91d8866ca552",
"status": "affected",
"versionType": "git"
},
{
"version": "c2e5df616e1a",
"lessThan": "c377e2ba78d3",
"status": "affected",
"versionType": "git"
},
{
"version": "c2e5df616e1a",
"lessThan": "92e25b637cd4",
"status": "affected",
"versionType": "git"
},
{
"version": "c2e5df616e1a",
"lessThan": "8bc69f86328e",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/hv/vmbus_drv.c"
],
"versions": [
{
"version": "4.15",
"status": "affected"
},
{
"version": "0",
"lessThan": "4.15",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "4.19.231",
"lessThanOrEqual": "4.19.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.4.181",
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.10.102",
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.15.25",
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.16.11",
"lessThanOrEqual": "5.16.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.17",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
]
git.kernel.org/stable/c/417947891bd5ae327f15efed1a0da2b12ef24962
git.kernel.org/stable/c/8bc69f86328e87a0ffa79438430cc82f3aa6a194
git.kernel.org/stable/c/91d8866ca55232d21995a3d54fac96de33c9e20c
git.kernel.org/stable/c/92e25b637cd4e010f776c86e4810300e773eac5c
git.kernel.org/stable/c/c377e2ba78d3fe9a1f0b4ec424e75f81da7e81e9
git.kernel.org/stable/c/fe595759c2a4a5bb41c438474f15947d8ae32f5c