CVE-2022-50474Missing Release of Memory after Effective Lifetime in Linux

Severity
5.5MEDIUMNVD
EPSS
0.0%
top 97.44%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedOct 4

Description

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 ma

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitability: 1.8 | Impact: 3.6

Affected Packages4 packages

NVDlinux/linux_kernel2.6.304.9.337+7
Debianlinux/linux_kernel< 5.10.178-1+3
CVEListV5linux/linux1fa5ae857bb14f6046205171d98506d8112dd74e3a866ff6fc2232c8e393cdb55ffb8ce947349e03+9
debiandebian/linux< linux 6.1.4-1 (bookworm)

Patches

🔴Vulnerability Details

2
GHSA
GHSA-p3fv-p9hp-v9h2: In the Linux kernel, the following vulnerability has been resolved: macintosh: fix possible memory leak in macio_add_one_device() Afer commit 1fa5ae2025-10-04
OSV
CVE-2022-50474: In the Linux kernel, the following vulnerability has been resolved: macintosh: fix possible memory leak in macio_add_one_device() Afer commit 1fa5ae852025-10-04

📋Vendor Advisories

2
Red Hat
kernel: macintosh: fix possible memory leak in macio_add_one_device()2025-10-04
Debian
CVE-2022-50474: linux - In the Linux kernel, the following vulnerability has been resolved: macintosh: ...2022