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().
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9bfb37d6ba7c376b0d53337a4c5f5ff324bd725",
"target": {
"function": "dmi_sysfs_register_handle",
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-18f6564d",
"signature_version": "v1",
"digest": {
"length": 991.0,
"function_hash": "98832652598282399740418297124298243356"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3ba359ebe914ac3f8c6c832b28007c14c39d3766",
"target": {
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-253eef61",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46786252863855472959350876014970247732",
"275526578313577951817812944274739567941",
"295354865281178669879048830021588184976",
"203580386867798495459167874159835187324"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a724634b2a49f6ff0177a9e19a5a92fc1545e1b7",
"target": {
"function": "dmi_sysfs_register_handle",
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-32c4c065",
"signature_version": "v1",
"digest": {
"length": 991.0,
"function_hash": "98832652598282399740418297124298243356"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c66cc3c62870a27ea8f060a7e4c1ad8d26dd3f0d",
"target": {
"function": "dmi_sysfs_register_handle",
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-46530210",
"signature_version": "v1",
"digest": {
"length": 991.0,
"function_hash": "98832652598282399740418297124298243356"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c66cc3c62870a27ea8f060a7e4c1ad8d26dd3f0d",
"target": {
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-4be45b00",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46786252863855472959350876014970247732",
"275526578313577951817812944274739567941",
"295354865281178669879048830021588184976",
"203580386867798495459167874159835187324"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fdffa4ad8f6bf1ece877edfb807f2b2c729d8578",
"target": {
"function": "dmi_sysfs_register_handle",
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-58d8de92",
"signature_version": "v1",
"digest": {
"length": 991.0,
"function_hash": "98832652598282399740418297124298243356"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@660ba678f9998aca6db74f2dd912fa5124f0fa31",
"target": {
"function": "dmi_sysfs_register_handle",
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-66b87ce7",
"signature_version": "v1",
"digest": {
"length": 991.0,
"function_hash": "98832652598282399740418297124298243356"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fdffa4ad8f6bf1ece877edfb807f2b2c729d8578",
"target": {
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-6a81b9f4",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46786252863855472959350876014970247732",
"275526578313577951817812944274739567941",
"295354865281178669879048830021588184976",
"203580386867798495459167874159835187324"
]
},
"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,
"id": "CVE-2022-49370-6f3aae94",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46786252863855472959350876014970247732",
"275526578313577951817812944274739567941",
"295354865281178669879048830021588184976",
"203580386867798495459167874159835187324"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@985706bd3bbeffc8737bc05965ca8d24837bc7db",
"target": {
"function": "dmi_sysfs_register_handle",
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-79d665a0",
"signature_version": "v1",
"digest": {
"length": 991.0,
"function_hash": "98832652598282399740418297124298243356"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3ba359ebe914ac3f8c6c832b28007c14c39d3766",
"target": {
"function": "dmi_sysfs_register_handle",
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-7ee98075",
"signature_version": "v1",
"digest": {
"length": 991.0,
"function_hash": "98832652598282399740418297124298243356"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ed38d04342dfbe9e5aca745c8b5eb4188a74f0ef",
"target": {
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-9db9068e",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46786252863855472959350876014970247732",
"275526578313577951817812944274739567941",
"295354865281178669879048830021588184976",
"203580386867798495459167874159835187324"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a724634b2a49f6ff0177a9e19a5a92fc1545e1b7",
"target": {
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-a07b7275",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46786252863855472959350876014970247732",
"275526578313577951817812944274739567941",
"295354865281178669879048830021588184976",
"203580386867798495459167874159835187324"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@985706bd3bbeffc8737bc05965ca8d24837bc7db",
"target": {
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-ae7ed60f",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46786252863855472959350876014970247732",
"275526578313577951817812944274739567941",
"295354865281178669879048830021588184976",
"203580386867798495459167874159835187324"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec752973aa721ee281d5441e497364637c626c7b",
"target": {
"function": "dmi_sysfs_register_handle",
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-c0c2e6b6",
"signature_version": "v1",
"digest": {
"length": 991.0,
"function_hash": "98832652598282399740418297124298243356"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ed38d04342dfbe9e5aca745c8b5eb4188a74f0ef",
"target": {
"function": "dmi_sysfs_register_handle",
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-ea1b8f15",
"signature_version": "v1",
"digest": {
"length": 991.0,
"function_hash": "98832652598282399740418297124298243356"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9bfb37d6ba7c376b0d53337a4c5f5ff324bd725",
"target": {
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-f36204a1",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46786252863855472959350876014970247732",
"275526578313577951817812944274739567941",
"295354865281178669879048830021588184976",
"203580386867798495459167874159835187324"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec752973aa721ee281d5441e497364637c626c7b",
"target": {
"file": "drivers/firmware/dmi-sysfs.c"
},
"deprecated": false,
"id": "CVE-2022-49370-fce5dbb5",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46786252863855472959350876014970247732",
"275526578313577951817812944274739567941",
"295354865281178669879048830021588184976",
"203580386867798495459167874159835187324"
]
},
"signature_type": "Line"
}
]