# CVE-2021-46979: iio: core: fix ioctl handlers removal

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-02-28T08:13:09.736Z
- Modified: 2026-06-17T04:16:03.583Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

iio: core: fix ioctl handlers removal

Currently ioctl handlers are removed twice. For the first time during
iio_device_unregister() then later on inside
iio_device_unregister_eventset() and iio_buffers_free_sysfs_and_mask().
Double free leads to kernel panic.

Fix this by not touching ioctl handlers list directly but rather
letting code responsible for registration call the matching cleanup
routine itself.

(As written by CVE List.)

## Affected

- Linux Linux: from 8dedcc3eee3aceb37832176f0a1b03d5687acda3 before 11e1cae5da4096552f7c091476cbadbc0d1817da; from 8dedcc3eee3aceb37832176f0a1b03d5687acda3 before ab6c935ba3a04317632f3b8b68675bdbaf395303; from 8dedcc3eee3aceb37832176f0a1b03d5687acda3 before 901f84de0e16bde10a72d7eb2f2eb73fcde8fa1a; 5.11 (not affected: before 5.11; from 5.11.22 up to 5.11.*; from 5.12.5 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.11 before 5.11.22; from 5.12 before 5.12.5; 5.13

## References

- <https://git.kernel.org/stable/c/11e1cae5da4096552f7c091476cbadbc0d1817da> (patch)
- <https://git.kernel.org/stable/c/ab6c935ba3a04317632f3b8b68675bdbaf395303> (patch)
- <https://git.kernel.org/stable/c/901f84de0e16bde10a72d7eb2f2eb73fcde8fa1a> (patch)

## Sources

- CVE List: [CVE-2021-46979](https://www.cve.org/CVERecord?id=CVE-2021-46979), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-46979](https://nvd.nist.gov/vuln/detail/CVE-2021-46979), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-46979 · Whole record: https://cve.day/CVE-2021-46979.json · Rebuilt by cve.day 2026-11-25T22:58:08.597Z
