CVE-2022-50561
iio: fix memory leak in iio_device_register_eventset()
- Published
- Updated
- Reserved
- Assigned by
- Linux
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
Timeline
ID reserved
By Linux
Published
- 7 months later
· 7 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
No CVSS score yet: neither the CNA, CISA nor NVD has scored this CVE. NVD status: Deferred.
- EPSS (exploitation in 30 days)
- 0.21% · top 88% of all CVEs (7 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Not scored.
Affected products
- affected 32f171724e5cbecc80594fb6eced057cfdd6eb6f – < dc6afd6070f3a5b086c8c5cfa6ded63ae44494da
- affected 32f171724e5cbecc80594fb6eced057cfdd6eb6f – < 5de3add7509c95685f1185683b817dd206c4b1f1
- affected 32f171724e5cbecc80594fb6eced057cfdd6eb6f – < a154b1c139fbf6a49762159be81d425d41ceec87
- affected 32f171724e5cbecc80594fb6eced057cfdd6eb6f – < 86fdd15e10e404e70ecb2a3bff24d70356d42b36
- affected 5.13
- unaffected < 5.13
- unaffected 5.15.86 – ≤ 5.15.*
- unaffected 6.0.16 – ≤ 6.0.*
- unaffected 6.1.2 – ≤ 6.1.*
- unaffected 6.2 – ≤ *
References (4)
- https://git.kernel.org/stable/c/dc6afd6070f3a5b086c8c5cfa6ded63ae44494da (opens in a new tab)
- https://git.kernel.org/stable/c/5de3add7509c95685f1185683b817dd206c4b1f1 (opens in a new tab)
- https://git.kernel.org/stable/c/a154b1c139fbf6a49762159be81d425d41ceec87 (opens in a new tab)
- https://git.kernel.org/stable/c/86fdd15e10e404e70ecb2a3bff24d70356d42b36 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-50561)Record last updated .