What’s Vulnerable › Vulnerabilities
CVE-2022-50561: iio: fix memory leak in iio_device_register_eventset()
- Severity: unknown
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-10-22 · updated 2026-06-17
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
Affected products
- Linux kernel: 5.13 — fixed in 6.2
How to fix
Upgrade to a fixed version: Linux kernel 6.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/5de3add7509c95685f1185683b817dd206c4b1f1
- https://git.kernel.org/stable/c/86fdd15e10e404e70ecb2a3bff24d70356d42b36
- https://git.kernel.org/stable/c/a154b1c139fbf6a49762159be81d425d41ceec87
- https://git.kernel.org/stable/c/dc6afd6070f3a5b086c8c5cfa6ded63ae44494da
Get alerted when CVE-2022-50561 or the next vulnerability affects your stack