CVE-2021-46979
JSON

5.5medium

iio: core: fix ioctl handlers removal

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 5.11 before 5.11.22, from 5.12 before 5.12.5, 5.13NVD

Classification

CWE-415

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iio: core: arreglar la eliminación de los controladores ioctl Actualmente, los controladores ioctl se eliminan dos veces. Por primera vez durante iio_device_unregister() y luego dentro de iio_device_unregister_eventset() y iio_buffers_free_sysfs_and_mask(). La doble liberación conduce al pánico en el kernel. Para solucionar este problema, no toque directamente la lista de controladores ioctl, sino que permita que el código responsable del registro llame a la rutina de limpieza coincidente.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-46979 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-46979 changed 2026-06-17Public domain