{"id":"CVE-2021-46979","aliases":["CVE-2021-46979"],"related":[],"kind":"vulnerability","state":"published","title":"iio: core: fix ioctl handlers removal","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: core: fix ioctl handlers removal\n\nCurrently ioctl handlers are removed twice. For the first time during\niio_device_unregister() then later on inside\niio_device_unregister_eventset() and iio_buffers_free_sysfs_and_mask().\nDouble free leads to kernel panic.\n\nFix this by not touching ioctl handlers list directly but rather\nletting code responsible for registration call the matching cleanup\nroutine itself.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: core: fix ioctl handlers removal\n\nCurrently ioctl handlers are removed twice. For the first time during\niio_device_unregister() then later on inside\niio_device_unregister_eventset() and iio_buffers_free_sysfs_and_mask().\nDouble free leads to kernel panic.\n\nFix this by not touching ioctl handlers list directly but rather\nletting code responsible for registration call the matching cleanup\nroutine itself.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-02-28T08:13:09.736Z","modified":"2026-06-17T04:16:03.583Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"8dedcc3eee3aceb37832176f0a1b03d5687acda3","fixed":"11e1cae5da4096552f7c091476cbadbc0d1817da","status":"affected"},{"type":"git","introduced":"8dedcc3eee3aceb37832176f0a1b03d5687acda3","fixed":"ab6c935ba3a04317632f3b8b68675bdbaf395303","status":"affected"},{"type":"git","introduced":"8dedcc3eee3aceb37832176f0a1b03d5687acda3","fixed":"901f84de0e16bde10a72d7eb2f2eb73fcde8fa1a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"5.11.22","lastAffected":"5.11.*","status":"unaffected"},{"type":"semver","introduced":"5.12.5","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.11","fixed":"5.11.22"},{"status":"affected","introduced":"5.12","fixed":"5.12.5"},{"status":"affected","version":"5.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/11e1cae5da4096552f7c091476cbadbc0d1817da","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab6c935ba3a04317632f3b8b68675bdbaf395303","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/901f84de0e16bde10a72d7eb2f2eb73fcde8fa1a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-03-05T16:50:41.718Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-46979","url":"https://www.cve.org/CVERecord?id=CVE-2021-46979","licence":"CVE Terms of Use","modified":"2026-05-11T13:45:36.561Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-46979","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46979","licence":"Public domain","modified":"2026-06-17T04:16:03.583Z"}],"updatedAt":"2026-11-25T22:58:08.597Z","epss":{"score":0.00222,"percentile":0.13606,"date":"2026-12-01T12:00:22.000Z"}}