CVE-2022-50561 Details
Description
In the Linux kernel, the following vulnerability has been resolved: iio: fix memory leak in iio_device_register_eventset() When iio_device_register_sysfs_group() returns failed, iio_device_register_eventset() needs to free attrs array. Otherwise, kmemleak would scan & report memory leak as below: unreferenced object 0xffff88810a1cc3c0 (size 32): comm "100-i2c-vcnl302", pid 728, jiffies 4295052307 (age 156.027s) backtrace: __kmalloc+0x46/0x1b0 iio_device_register_eventset at drivers/iio/industrialio-event.c:541 __iio_device_register at drivers/iio/industrialio-core.c:1959 __devm_iio_device_register at drivers/iio/industrialio-core.c:2040
A memory leak vulnerability has been identified in the Linux kernel's Industrial I/O (IIO) subsystem. The issue arises in the function 'iio_device_register_eventset()'. When 'iio_device_register_sysfs_group()' fails, the 'iio_device_register_eventset()' function does not properly free the 'attrs' array, leading to a memory leak. This leak is detected by 'kmemleak', which reports the unreferenced object as a memory leak. The vulnerability affects the Linux kernel stable tree.
The vulnerability has been addressed in the Linux kernel. Users should upgrade to the latest version where this issue has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/5de3add7509c95685f1185683b817dd206c4b1f1 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/86fdd15e10e404e70ecb2a3bff24d70356d42b36 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a154b1c139fbf6a49762159be81d425d41ceec87 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/dc6afd6070f3a5b086c8c5cfa6ded63ae44494da | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 22, 2025 | New CVE Received | kernel.org |
Volerion