In the Linux kernel, the following vulnerability has been resolved:
firmware: dmi-sysfs: Fix memory leak in dmisysfsregister_handle
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 this issue by calling kobject_put().
[
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "98832652598282399740418297124298243356",
"length": 991.0
},
"id": "CVE-2022-49370-66b87ce7",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@660ba678f9998aca6db74f2dd912fa5124f0fa31",
"target": {
"file": "drivers/firmware/dmi-sysfs.c",
"function": "dmi_sysfs_register_handle"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46786252863855472959350876014970247732",
"275526578313577951817812944274739567941",
"295354865281178669879048830021588184976",
"203580386867798495459167874159835187324"
]
},
"id": "CVE-2022-49370-6f3aae94",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@660ba678f9998aca6db74f2dd912fa5124f0fa31",
"target": {
"file": "drivers/firmware/dmi-sysfs.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "98832652598282399740418297124298243356",
"length": 991.0
},
"id": "CVE-2022-49370-c0c2e6b6",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec752973aa721ee281d5441e497364637c626c7b",
"target": {
"file": "drivers/firmware/dmi-sysfs.c",
"function": "dmi_sysfs_register_handle"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46786252863855472959350876014970247732",
"275526578313577951817812944274739567941",
"295354865281178669879048830021588184976",
"203580386867798495459167874159835187324"
]
},
"id": "CVE-2022-49370-fce5dbb5",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec752973aa721ee281d5441e497364637c626c7b",
"target": {
"file": "drivers/firmware/dmi-sysfs.c"
}
}
]