CVE-2022-50474
MEDIUMLinux Kernel - Use-After-Free in macio_add_one_device()
Title source: llmDescription
In the Linux kernel, the following vulnerability has been resolved: macintosh: fix possible memory leak in macio_add_one_device() Afer commit 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array"), the name of device is allocated dynamically. It needs to be freed when of_device_register() fails. Call put_device() to give up the reference that's taken in device_initialize(), so that it can be freed in kobject_cleanup() when the refcount hits 0. macio device is freed in macio_release_dev(), so the kfree() can be removed.
References (9)
Core 9
Core References
Scores
CVSS v3
5.5
EPSS
0.0015
EPSS Percentile
4.4%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Details
CWE
CWE-401
Status
published
Products (29)
linux/Kernel
2.6.30 - 4.9.337linux
linux/Kernel
4.10.0 - 4.14.303linux
linux/Kernel
4.15.0 - 4.19.270linux
linux/Kernel
4.20.0 - 5.4.229linux
linux/Kernel
5.11.0 - 5.15.86linux
linux/Kernel
5.16.0 - 6.0.16linux
linux/Kernel
5.5.0 - 5.10.163linux
linux/Kernel
6.1.0 - 6.1.2linux
Linux/Linux
< 2.6.30
Linux/Linux
1fa5ae857bb14f6046205171d98506d8112dd74e - 19ded60b40e86b0903c8d5bd0161437ed5107a8b
... and 19 more
Published
Oct 04, 2025
Tracked Since
Feb 18, 2026