iio: light: gp2ap020a00f: drain irq_work after free_irq

Summary

CVECVE-2026-98662
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-10-18 16:17:19 UTC
Updated2026-10-21 13:21:35 UTC
DescriptionIn 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

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report