# CVE-2026-98662: iio: light: gp2ap020a00f: drain irq_work after free_irq

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-10-18T15:44:24.421Z
- Modified: 2026-10-30T13:21:16.690Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

iio: light: gp2ap020a00f: drain irq_work after free_irq

The threaded IRQ handler queues data->work through irq_work_queue() so
the trigger is polled from a per-CPU context.  free_irq() does not flush
an irq_work the handler already queued, so after gp2ap020a00f_remove()
returns that work may still run and call iio_trigger_poll() on data->trig,
which the devm cleanup has already freed, causing a use-after-free.

Add irq_work_sync(&data->work) after free_irq() in remove() and in the
probe error path, mirroring commit 78601726d4a5 ("iio: trigger: sysfs:
fix use-after-free on remove").

Found by an in-house static analysis tool, confirmed by manual review.

(As written by CVE List.)

## Affected

- Linux Linux: from bf29fbeaa13d3350ca71df70c705d8b883c45692 before 6f2bb000493c3b4f5715b3103657393672aea05b; from bf29fbeaa13d3350ca71df70c705d8b883c45692 before 43fbbb9eaae5d6f45668e3c4d45508c498d6ba9c; from bf29fbeaa13d3350ca71df70c705d8b883c45692 before d029639b079b28a5334f934c848d895bef0653d1; from bf29fbeaa13d3350ca71df70c705d8b883c45692 before 85c20d1cf3f01a506605a16c2f9ce23b9c8b114f; from bf29fbeaa13d3350ca71df70c705d8b883c45692 before a36814b9fe00970116d30c3143d81e7425c4d334; from bf29fbeaa13d3350ca71df70c705d8b883c45692 before cc71400bc965c0d3894a38ead3d71243400c2d5e; from bf29fbeaa13d3350ca71df70c705d8b883c45692 before a1769877ff52a4f1bfb9ca535d1b5113808bd602; from bf29fbeaa13d3350ca71df70c705d8b883c45692 before 63213927b141085b6c8719b8037dab3074b7e0fe; 3.13 (not affected: before 3.13; from 5.10.273 up to 5.10.*; from 5.15.224 up to 5.15.*; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.113 up to 6.12.*; from 6.18.56 up to 6.18.*; from 7.2.10 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/6f2bb000493c3b4f5715b3103657393672aea05b>
- <https://git.kernel.org/stable/c/43fbbb9eaae5d6f45668e3c4d45508c498d6ba9c>
- <https://git.kernel.org/stable/c/d029639b079b28a5334f934c848d895bef0653d1>
- <https://git.kernel.org/stable/c/85c20d1cf3f01a506605a16c2f9ce23b9c8b114f>
- <https://git.kernel.org/stable/c/a36814b9fe00970116d30c3143d81e7425c4d334>
- <https://git.kernel.org/stable/c/cc71400bc965c0d3894a38ead3d71243400c2d5e>
- <https://git.kernel.org/stable/c/a1769877ff52a4f1bfb9ca535d1b5113808bd602>
- <https://git.kernel.org/stable/c/63213927b141085b6c8719b8037dab3074b7e0fe>

## Sources

- CVE List: [CVE-2026-98662](https://www.cve.org/CVERecord?id=CVE-2026-98662), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-98662](https://nvd.nist.gov/vuln/detail/CVE-2026-98662), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-98662 · Whole record: https://cve.day/CVE-2026-98662.json · Rebuilt by cve.day 2026-11-25T22:59:45.260Z
