{"id":"CVE-2026-98662","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 con…","severity":"medium","cvss":4.7,"cvssVector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","cvssSource":"vendor","cwe":["CWE-416"],"vendor":"Linux","product":"Linux","affected":["Linux >= bf29fbeaa13d3350ca71df70c705d8b883c45692 < 85c20d1cf3f01a506605a16c2f9ce23b9c8b114f","Linux >= bf29fbeaa13d3350ca71df70c705d8b883c45692 < a36814b9fe00970116d30c3143d81e7425c4d334","Linux >= bf29fbeaa13d3350ca71df70c705d8b883c45692 < cc71400bc965c0d3894a38ead3d71243400c2d5e","Linux >= bf29fbeaa13d3350ca71df70c705d8b883c45692 < a1769877ff52a4f1bfb9ca535d1b5113808bd602","Linux >= bf29fbeaa13d3350ca71df70c705d8b883c45692 < 63213927b141085b6c8719b8037dab3074b7e0fe","Linux 3.13"],"published":"2026-10-18","updated":"2026-10-21","sourceUpdated":"2026-10-21T12:55:27.142Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98662","references":[{"url":"https://git.kernel.org/stable/c/85c20d1cf3f01a506605a16c2f9ce23b9c8b114f"},{"url":"https://git.kernel.org/stable/c/a36814b9fe00970116d30c3143d81e7425c4d334"},{"url":"https://git.kernel.org/stable/c/cc71400bc965c0d3894a38ead3d71243400c2d5e"},{"url":"https://git.kernel.org/stable/c/a1769877ff52a4f1bfb9ca535d1b5113808bd602"},{"url":"https://git.kernel.org/stable/c/63213927b141085b6c8719b8037dab3074b7e0fe"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98662.json"},{"url":"https://access.redhat.com/security/cve/CVE-2026-98662"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2555177"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-98662"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98662"}],"tags":["cve.org","csaf","vex","red-hat"],"epss":0.00168,"epssPercentile":0.0597,"ingestedAt":"2026-10-18T16:47:32.535Z","slug":"CVE-2026-98662","body":"## Overview\n\nIn 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.\n\n## Affected\n\n- `Linux >= bf29fbeaa13d3350ca71df70c705d8b883c45692 < 85c20d1cf3f01a506605a16c2f9ce23b9c8b114f`\n- `Linux >= bf29fbeaa13d3350ca71df70c705d8b883c45692 < a36814b9fe00970116d30c3143d81e7425c4d334`\n- `Linux >= bf29fbeaa13d3350ca71df70c705d8b883c45692 < cc71400bc965c0d3894a38ead3d71243400c2d5e`\n- `Linux >= bf29fbeaa13d3350ca71df70c705d8b883c45692 < a1769877ff52a4f1bfb9ca535d1b5113808bd602`\n- `Linux >= bf29fbeaa13d3350ca71df70c705d8b883c45692 < 63213927b141085b6c8719b8037dab3074b7e0fe`\n- `Linux 3.13`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Vendor advisories\n\n- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10 · no fix planned: Red Hat Enterprise Linux 10 · updated 2026-10-20 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98662.json)","depth":"sunlit","depthScore":26,"depthScoreParts":{"impact":25.9,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[{"seq":225696,"id":"CVE-2026-98662","ts":1792498362079,"field":"cvss","old":null,"new":"4.7"},{"seq":225695,"id":"CVE-2026-98662","ts":1792498362079,"field":"severity","old":"none","new":"medium"}]}