{"id":"CVE-2026-98662","aliases":["CVE-2026-98662"],"related":[],"kind":"vulnerability","state":"published","title":"iio: light: gp2ap020a00f: drain irq_work after free_irq","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: light: gp2ap020a00f: drain irq_work after free_irq\n\nThe threaded IRQ handler queues data->work through irq_work_queue() so\nthe trigger is polled from a per-CPU context.  free_irq() does not flush\nan irq_work the handler already queued, so after gp2ap020a00f_remove()\nreturns that work may still run and call iio_trigger_poll() on data->trig,\nwhich the devm cleanup has already freed, causing a use-after-free.\n\nAdd irq_work_sync(&data->work) after free_irq() in remove() and in the\nprobe error path, mirroring commit 78601726d4a5 (\"iio: trigger: sysfs:\nfix use-after-free on remove\").\n\nFound by an in-house static analysis tool, confirmed by manual review.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: light: gp2ap020a00f: drain irq_work after free_irq\n\nThe threaded IRQ handler queues data->work through irq_work_queue() so\nthe trigger is polled from a per-CPU context.  free_irq() does not flush\nan irq_work the handler already queued, so after gp2ap020a00f_remove()\nreturns that work may still run and call iio_trigger_poll() on data->trig,\nwhich the devm cleanup has already freed, causing a use-after-free.\n\nAdd irq_work_sync(&data->work) after free_irq() in remove() and in the\nprobe error path, mirroring commit 78601726d4a5 (\"iio: trigger: sysfs:\nfix use-after-free on remove\").\n\nFound by an in-house static analysis tool, confirmed by manual review.","source":"cvelist"}],"published":"2026-10-18T15:44:24.421Z","modified":"2026-10-30T13:21:16.690Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"bf29fbeaa13d3350ca71df70c705d8b883c45692","fixed":"6f2bb000493c3b4f5715b3103657393672aea05b","status":"affected"},{"type":"git","introduced":"bf29fbeaa13d3350ca71df70c705d8b883c45692","fixed":"43fbbb9eaae5d6f45668e3c4d45508c498d6ba9c","status":"affected"},{"type":"git","introduced":"bf29fbeaa13d3350ca71df70c705d8b883c45692","fixed":"d029639b079b28a5334f934c848d895bef0653d1","status":"affected"},{"type":"git","introduced":"bf29fbeaa13d3350ca71df70c705d8b883c45692","fixed":"85c20d1cf3f01a506605a16c2f9ce23b9c8b114f","status":"affected"},{"type":"git","introduced":"bf29fbeaa13d3350ca71df70c705d8b883c45692","fixed":"a36814b9fe00970116d30c3143d81e7425c4d334","status":"affected"},{"type":"git","introduced":"bf29fbeaa13d3350ca71df70c705d8b883c45692","fixed":"cc71400bc965c0d3894a38ead3d71243400c2d5e","status":"affected"},{"type":"git","introduced":"bf29fbeaa13d3350ca71df70c705d8b883c45692","fixed":"a1769877ff52a4f1bfb9ca535d1b5113808bd602","status":"affected"},{"type":"git","introduced":"bf29fbeaa13d3350ca71df70c705d8b883c45692","fixed":"63213927b141085b6c8719b8037dab3074b7e0fe","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.13","status":"unaffected"},{"type":"semver","introduced":"5.10.273","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.113","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.56","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.10","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/6f2bb000493c3b4f5715b3103657393672aea05b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/43fbbb9eaae5d6f45668e3c4d45508c498d6ba9c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d029639b079b28a5334f934c848d895bef0653d1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/85c20d1cf3f01a506605a16c2f9ce23b9c8b114f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a36814b9fe00970116d30c3143d81e7425c4d334","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc71400bc965c0d3894a38ead3d71243400c2d5e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a1769877ff52a4f1bfb9ca535d1b5113808bd602","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/63213927b141085b6c8719b8037dab3074b7e0fe","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98662","url":"https://www.cve.org/CVERecord?id=CVE-2026-98662","licence":"CVE Terms of Use","modified":"2026-10-30T12:38:31.341Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98662","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98662","licence":"Public domain","modified":"2026-10-30T13:21:16.690Z"}],"updatedAt":"2026-11-25T22:59:45.260Z","epss":{"score":0.00176,"percentile":0.07491,"date":"2026-12-01T12:00:22.000Z"}}