In the Linux kernel, the following vulnerability has been resolved:
siox: fix possible memory leak in sioxdeviceadd()
If deviceregister() returns error in sioxdeviceadd(), the name allocated by devsetname() need be freed. As comment of deviceregister() says, it should use putdevice() to give up the reference in the error path. So fix this by calling putdevice(), then the name can be freed in kobjectcleanup(), and sdevice is freed in sioxdevice_release(), set it to null in error path.
{ "vanir_signatures": [ { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5d03c2911c529ea4d6ebfec53425f1091e8d402b", "signature_type": "Line", "target": { "file": "drivers/siox/siox-core.c" }, "deprecated": false, "digest": { "line_hashes": [ "102470936810851635079963982596847180161", "171061357786147363637327452746900726466", "22800589495386719310368604817679152887" ], "threshold": 0.9 }, "id": "CVE-2022-49836-136539ba" }, { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6e63153db50059fb78b8a8447b132664887d24e3", "signature_type": "Line", "target": { "file": "drivers/siox/siox-core.c" }, "deprecated": false, "digest": { "line_hashes": [ "102470936810851635079963982596847180161", "171061357786147363637327452746900726466", "22800589495386719310368604817679152887" ], "threshold": 0.9 }, "id": "CVE-2022-49836-2e34690c" }, { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5d03c2911c529ea4d6ebfec53425f1091e8d402b", "signature_type": "Function", "target": { "function": "siox_device_add", "file": "drivers/siox/siox-core.c" }, "deprecated": false, "digest": { "length": 1659.0, "function_hash": "1744560854748402897727612195169197284" }, "id": "CVE-2022-49836-4375091f" }, { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a4b5423f88a17a36550ae8c16c46779b1ee42f4b", "signature_type": "Line", "target": { "file": "drivers/siox/siox-core.c" }, "deprecated": false, "digest": { "line_hashes": [ "102470936810851635079963982596847180161", "171061357786147363637327452746900726466", "22800589495386719310368604817679152887" ], "threshold": 0.9 }, "id": "CVE-2022-49836-453f0eef" }, { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0a5da069603ecc3d7aa09167450235462adaa295", "signature_type": "Function", "target": { "function": "siox_device_add", "file": "drivers/siox/siox-core.c" }, "deprecated": false, "digest": { "length": 1659.0, "function_hash": "1744560854748402897727612195169197284" }, "id": "CVE-2022-49836-628bc8a3" }, { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f9fe7ba4ea5b24ffdf8e125f660aca3ba4a147fb", "signature_type": "Line", "target": { "file": "drivers/siox/siox-core.c" }, "deprecated": false, "digest": { "line_hashes": [ "102470936810851635079963982596847180161", "171061357786147363637327452746900726466", "22800589495386719310368604817679152887" ], "threshold": 0.9 }, "id": "CVE-2022-49836-a850db31" }, { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f9fe7ba4ea5b24ffdf8e125f660aca3ba4a147fb", "signature_type": "Function", "target": { "function": "siox_device_add", "file": "drivers/siox/siox-core.c" }, "deprecated": false, "digest": { "length": 1659.0, "function_hash": "1744560854748402897727612195169197284" }, "id": "CVE-2022-49836-baeb2455" }, { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a4b5423f88a17a36550ae8c16c46779b1ee42f4b", "signature_type": "Function", "target": { "function": "siox_device_add", "file": "drivers/siox/siox-core.c" }, "deprecated": false, "digest": { "length": 1659.0, "function_hash": "1744560854748402897727612195169197284" }, "id": "CVE-2022-49836-bb97dd59" }, { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0a5da069603ecc3d7aa09167450235462adaa295", "signature_type": "Line", "target": { "file": "drivers/siox/siox-core.c" }, "deprecated": false, "digest": { "line_hashes": [ "102470936810851635079963982596847180161", "171061357786147363637327452746900726466", "22800589495386719310368604817679152887" ], "threshold": 0.9 }, "id": "CVE-2022-49836-c5c495a7" }, { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d9c31e728843259209fb530c59995e4fe262699f", "signature_type": "Line", "target": { "file": "drivers/siox/siox-core.c" }, "deprecated": false, "digest": { "line_hashes": [ "102470936810851635079963982596847180161", "171061357786147363637327452746900726466", "22800589495386719310368604817679152887" ], "threshold": 0.9 }, "id": "CVE-2022-49836-d349e40b" }, { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6e63153db50059fb78b8a8447b132664887d24e3", "signature_type": "Function", "target": { "function": "siox_device_add", "file": "drivers/siox/siox-core.c" }, "deprecated": false, "digest": { "length": 1659.0, "function_hash": "1744560854748402897727612195169197284" }, "id": "CVE-2022-49836-dfff6fa0" }, { "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d9c31e728843259209fb530c59995e4fe262699f", "signature_type": "Function", "target": { "function": "siox_device_add", "file": "drivers/siox/siox-core.c" }, "deprecated": false, "digest": { "length": 1659.0, "function_hash": "1744560854748402897727612195169197284" }, "id": "CVE-2022-49836-e5b5c80a" } ] }