{"id":"CVE-2025-71199","aliases":["CVE-2025-71199"],"related":[],"kind":"vulnerability","state":"published","title":"iio: adc: at91-sama5d2_adc: Fix potential use-after-free in sama5d2_adc driver","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: adc: at91-sama5d2_adc: Fix potential use-after-free in sama5d2_adc driver\n\nat91_adc_interrupt can call at91_adc_touch_data_handler function\nto start the work by schedule_work(&st->touch_st.workq).\n\nIf we remove the module which will call at91_adc_remove to\nmake cleanup, it will free indio_dev through iio_device_unregister but\nquite a bit later. While the work mentioned above will be used. The\nsequence of operations that may lead to a UAF bug is as follows:\n\nCPU0                                      CPU1\n\n                                     | at91_adc_workq_handler\nat91_adc_remove                      |\niio_device_unregister(indio_dev)     |\n//free indio_dev a bit later         |\n                                     | iio_push_to_buffers(indio_dev)\n                                     | //use indio_dev\n\nFix it by ensuring that the work is canceled before proceeding with\nthe cleanup in at91_adc_remove.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: adc: at91-sama5d2_adc: Fix potential use-after-free in sama5d2_adc driver\n\nat91_adc_interrupt can call at91_adc_touch_data_handler function\nto start the work by schedule_work(&st->touch_st.workq).\n\nIf we remove the module which will call at91_adc_remove to\nmake cleanup, it will free indio_dev through iio_device_unregister but\nquite a bit later. While the work mentioned above will be used. The\nsequence of operations that may lead to a UAF bug is as follows:\n\nCPU0                                      CPU1\n\n                                     | at91_adc_workq_handler\nat91_adc_remove                      |\niio_device_unregister(indio_dev)     |\n//free indio_dev a bit later         |\n                                     | iio_push_to_buffers(indio_dev)\n                                     | //use indio_dev\n\nFix it by ensuring that the work is canceled before proceeding with\nthe cleanup in at91_adc_remove.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\niio: adc: at91-sama5d2_adc: Soluciona un potencial uso después de liberación en el controlador sama5d2_adc\n\nat91_adc_interrupt puede llamar a la función at91_adc_touch_data_handler para iniciar el trabajo mediante schedule_work(&amp;st-&gt;touch_st.workq).\n\nSi eliminamos el módulo que llamará a at91_adc_remove para realizar la limpieza, liberará indio_dev a través de iio_device_unregister pero bastante más tarde. Mientras que el trabajo mencionado anteriormente será utilizado. La secuencia de operaciones que puede llevar a un error UAF es la siguiente:\n\nCPU0 CPU1\n\n                                     | at91_adc_workq_handler\nat91_adc_remove                      |\niio_device_unregister(indio_dev)     |\n//liberar indio_dev un poco más tarde |\n                                     | iio_push_to_buffers(indio_dev)\n                                     | //usar indio_dev\n\nSe soluciona asegurando que el trabajo sea cancelado antes de proceder con la limpieza en at91_adc_remove.","source":"nvd"}],"published":"2026-02-04T16:07:34.062Z","modified":"2026-06-17T10:03:52.323Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"23ec2774f1cc168b1f32a2e0ed2709cb473bb94e","fixed":"4c83dd62595ee7b7c9298a4d19a256b6647e7240","status":"affected"},{"type":"git","introduced":"23ec2774f1cc168b1f32a2e0ed2709cb473bb94e","fixed":"fdc8c835c637a3473878d1e7438c77ab8928af63","status":"affected"},{"type":"git","introduced":"23ec2774f1cc168b1f32a2e0ed2709cb473bb94e","fixed":"919d176b05776c7ede79c36744c823a07d631617","status":"affected"},{"type":"git","introduced":"23ec2774f1cc168b1f32a2e0ed2709cb473bb94e","fixed":"9795fe80976f8c31cafda7d44edfc0f532d1f7c4","status":"affected"},{"type":"git","introduced":"23ec2774f1cc168b1f32a2e0ed2709cb473bb94e","fixed":"d7b6fc224c7f5d6d8adcb18037138d3cfe2bbdfe","status":"affected"},{"type":"git","introduced":"23ec2774f1cc168b1f32a2e0ed2709cb473bb94e","fixed":"d890234a91570542c228a20f132ce74f9fedd904","status":"affected"},{"type":"git","introduced":"23ec2774f1cc168b1f32a2e0ed2709cb473bb94e","fixed":"dbdb442218cd9d613adeab31a88ac973f22c4873","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"5.10.249","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.199","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.162","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.122","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.68","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.8","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/4c83dd62595ee7b7c9298a4d19a256b6647e7240","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fdc8c835c637a3473878d1e7438c77ab8928af63","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/919d176b05776c7ede79c36744c823a07d631617","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9795fe80976f8c31cafda7d44edfc0f532d1f7c4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d7b6fc224c7f5d6d8adcb18037138d3cfe2bbdfe","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d890234a91570542c228a20f132ce74f9fedd904","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dbdb442218cd9d613adeab31a88ac973f22c4873","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71199","url":"https://www.cve.org/CVERecord?id=CVE-2025-71199","licence":"CVE Terms of Use","modified":"2026-05-11T21:56:34.681Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71199","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71199","licence":"Public domain","modified":"2026-06-17T10:03:52.323Z"}],"updatedAt":"2026-11-25T22:59:11.048Z","epss":{"score":0.00207,"percentile":0.11462,"date":"2026-12-02T12:00:21.000Z"}}