# CVE-2022-50672: mailbox: zynq-ipi: fix error handling while device_register() fails

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-12-09T01:29:24.072Z
- Modified: 2026-11-10T12:10:00.177Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mailbox: zynq-ipi: fix error handling while device_register() fails

If device_register() fails, it has two issues:
1. The name allocated by dev_set_name() is leaked.
2. The parent of device is not NULL, device_unregister() is called
   in zynqmp_ipi_free_mboxes(), it will lead a kernel crash because
   of removing not added device.

Call put_device() to give up the reference, so the name is freed in
kobject_cleanup(). Add device registered check in zynqmp_ipi_free_mboxes()
to avoid null-ptr-deref.

(As written by CVE List.)

## Affected

- Linux Linux: from 4981b82ba2ff87df6a711fcd7a233c615df5fc79 before b3a5c76f61e2b380e29dfc6705854ca1ee85501d; from 4981b82ba2ff87df6a711fcd7a233c615df5fc79 before a39b4de0804f9fe0ae911b359ffd4afe7d9d933b; from 4981b82ba2ff87df6a711fcd7a233c615df5fc79 before 4f05d8e2fb3ab702c2633a74571e1b31cb579985; from 4981b82ba2ff87df6a711fcd7a233c615df5fc79 before f2d63cefc012cafe1b7651bbf3302f8bcd8bea4a; from 4981b82ba2ff87df6a711fcd7a233c615df5fc79 before 3fcf079958c00d83c51e4f250abf2c77fe9cc1b9; from 4981b82ba2ff87df6a711fcd7a233c615df5fc79 before a6792a0cdef0b1c2d77920246283a72537e60e94; 5.1 (not affected: before 5.1; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)

## References

- <https://git.kernel.org/stable/c/b3a5c76f61e2b380e29dfc6705854ca1ee85501d>
- <https://git.kernel.org/stable/c/a39b4de0804f9fe0ae911b359ffd4afe7d9d933b>
- <https://git.kernel.org/stable/c/4f05d8e2fb3ab702c2633a74571e1b31cb579985>
- <https://git.kernel.org/stable/c/f2d63cefc012cafe1b7651bbf3302f8bcd8bea4a>
- <https://git.kernel.org/stable/c/3fcf079958c00d83c51e4f250abf2c77fe9cc1b9>
- <https://git.kernel.org/stable/c/a6792a0cdef0b1c2d77920246283a72537e60e94>

## Sources

- CVE List: [CVE-2022-50672](https://www.cve.org/CVERecord?id=CVE-2022-50672), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50672](https://nvd.nist.gov/vuln/detail/CVE-2022-50672), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2022-50672 · Whole record: https://cve.day/CVE-2022-50672.json · Rebuilt by cve.day 2026-11-25T22:58:21.315Z
