iio: light: gp2ap020a00f: drain irq_work after free_irq
Summary
| CVE | CVE-2026-98662 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-18 16:17:19 UTC |
| Updated | 2026-10-21 13:21:35 UTC |
| 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. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected bf29fbeaa13d3350ca71df70c705d8b883c45692 85c20d1cf3f01a506605a16c2f9ce23b9c8b114f git |
Not specified |
| CNA |
Linux |
Linux |
affected bf29fbeaa13d3350ca71df70c705d8b883c45692 a36814b9fe00970116d30c3143d81e7425c4d334 git |
Not specified |
| CNA |
Linux |
Linux |
affected bf29fbeaa13d3350ca71df70c705d8b883c45692 cc71400bc965c0d3894a38ead3d71243400c2d5e git |
Not specified |
| CNA |
Linux |
Linux |
affected bf29fbeaa13d3350ca71df70c705d8b883c45692 a1769877ff52a4f1bfb9ca535d1b5113808bd602 git |
Not specified |
| CNA |
Linux |
Linux |
affected bf29fbeaa13d3350ca71df70c705d8b883c45692 63213927b141085b6c8719b8037dab3074b7e0fe git |
Not specified |
| CNA |
Linux |
Linux |
affected 3.13 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 3.13 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.6.160 6.6.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.113 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.56 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.2.10 7.2.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.3 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/63213927b141085b6c8719b8037dab3074b7e0fe |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/85c20d1cf3f01a506605a16c2f9ce23b9c8b114f |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/a1769877ff52a4f1bfb9ca535d1b5113808bd602 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/cc71400bc965c0d3894a38ead3d71243400c2d5e |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/a36814b9fe00970116d30c3143d81e7425c4d334 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.