CVE-2022-50672

Source
https://cve.org/CVERecord?id=CVE-2022-50672
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50672.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50672
Downstream
Related
Published
2025-12-09T01:29:24.072Z
Modified
2026-03-20T11:00:40.131884Z
Summary
mailbox: zynq-ipi: fix error handling while device_register() fails
Details

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

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

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

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50672.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4981b82ba2ff87df6a711fcd7a233c615df5fc79
Fixed
b3a5c76f61e2b380e29dfc6705854ca1ee85501d
Fixed
a39b4de0804f9fe0ae911b359ffd4afe7d9d933b
Fixed
4f05d8e2fb3ab702c2633a74571e1b31cb579985
Fixed
f2d63cefc012cafe1b7651bbf3302f8bcd8bea4a
Fixed
3fcf079958c00d83c51e4f250abf2c77fe9cc1b9
Fixed
a6792a0cdef0b1c2d77920246283a72537e60e94

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50672.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.1.0
Fixed
5.4.229
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.163
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.86
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.0.16
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50672.json"