CVE-2022-50672

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

State
Published
Severity
Not scored
Published
Dec 9, 2025
Updated
May 11, 2026
Reserved
Dec 9, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 4981b82ba2ff87df6a711fcd7a233c615df5fc79 to before b3a5c76f61e2b380e29dfc6705854ca1ee85501dAffected
  • 4981b82ba2ff87df6a711fcd7a233c615df5fc79 to before a39b4de0804f9fe0ae911b359ffd4afe7d9d933bAffected
  • 4981b82ba2ff87df6a711fcd7a233c615df5fc79 to before 4f05d8e2fb3ab702c2633a74571e1b31cb579985Affected
  • 4981b82ba2ff87df6a711fcd7a233c615df5fc79 to before f2d63cefc012cafe1b7651bbf3302f8bcd8bea4aAffected
  • 4981b82ba2ff87df6a711fcd7a233c615df5fc79 to before 3fcf079958c00d83c51e4f250abf2c77fe9cc1b9Affected
  • 4981b82ba2ff87df6a711fcd7a233c615df5fc79 to before a6792a0cdef0b1c2d77920246283a72537e60e94Affected
LinuxLinux
  • 5.1Affected
  • before 5.1Not affected
  • 5.4.229 through 5.4.*Not affected
  • 5.10.163 through 5.10.*Not affected
  • 5.15.86 through 5.15.*Not affected
  • 6.0.16 through 6.0.*Not affected
  • 6.1.2 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.