CVE-2021-46979

iio: core: fix ioctl handlers removal

State
Published
Severity
Not scored
Published
Feb 28, 2024
Updated
May 11, 2026
Reserved
Feb 27, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 8dedcc3eee3aceb37832176f0a1b03d5687acda3 to before 11e1cae5da4096552f7c091476cbadbc0d1817daAffected
  • 8dedcc3eee3aceb37832176f0a1b03d5687acda3 to before ab6c935ba3a04317632f3b8b68675bdbaf395303Affected
  • 8dedcc3eee3aceb37832176f0a1b03d5687acda3 to before 901f84de0e16bde10a72d7eb2f2eb73fcde8fa1aAffected
LinuxLinux
  • 5.11Affected
  • before 5.11Not affected
  • 5.11.22 through 5.11.*Not affected
  • 5.12.5 through 5.12.*Not affected
  • 5.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.