{"id":"CVE-2022-50672","published":"2025-12-09T01:29:24Z","modified":"2026-05-11T19:23:27Z","title":"mailbox: zynq-ipi: fix error handling while device_register() fails","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmailbox: zynq-ipi: fix error handling while device_register() fails\n\nIf device_register() fails, it has two issues:\n1. The name allocated by dev_set_name() is leaked.\n2. The parent of device is not NULL, device_unregister() is called\n   in zynqmp_ipi_free_mboxes(), it will lead a kernel crash because\n   of removing not added device.\n\nCall put_device() to give up the reference, so the name is freed in\nkobject_cleanup(). Add device registered check in zynqmp_ipi_free_mboxes()\nto avoid null-ptr-deref.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00262,"percentile":0.18095,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/b3a5c76f61e2b380e29dfc6705854ca1ee85501d","tags":[]},{"url":"https://git.kernel.org/stable/c/a39b4de0804f9fe0ae911b359ffd4afe7d9d933b","tags":[]},{"url":"https://git.kernel.org/stable/c/4f05d8e2fb3ab702c2633a74571e1b31cb579985","tags":[]},{"url":"https://git.kernel.org/stable/c/f2d63cefc012cafe1b7651bbf3302f8bcd8bea4a","tags":[]},{"url":"https://git.kernel.org/stable/c/3fcf079958c00d83c51e4f250abf2c77fe9cc1b9","tags":[]},{"url":"https://git.kernel.org/stable/c/a6792a0cdef0b1c2d77920246283a72537e60e94","tags":[]}],"priority":{"score":3.6,"factors":[{"name":"EPSS percentile","points":3.62}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 4981b82ba2ff87df6a711fcd7a233c615df5fc79, < b3a5c76f61e2b380e29dfc6705854ca1ee85501d",">= 4981b82ba2ff87df6a711fcd7a233c615df5fc79, < a39b4de0804f9fe0ae911b359ffd4afe7d9d933b",">= 4981b82ba2ff87df6a711fcd7a233c615df5fc79, < 4f05d8e2fb3ab702c2633a74571e1b31cb579985",">= 4981b82ba2ff87df6a711fcd7a233c615df5fc79, < f2d63cefc012cafe1b7651bbf3302f8bcd8bea4a",">= 4981b82ba2ff87df6a711fcd7a233c615df5fc79, < 3fcf079958c00d83c51e4f250abf2c77fe9cc1b9",">= 4981b82ba2ff87df6a711fcd7a233c615df5fc79, < a6792a0cdef0b1c2d77920246283a72537e60e94"]},{"vendor":"Linux","product":"Linux","versions":["5.1"]}],"euvd":{"id":"EUVD-2022-55733","exploited":false,"provenance":"source"}}