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

Published Oct 18, 2026
·
Updated

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

iio: light: gp2ap020a00f: drain irqwork after freeirq

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

Add irqworksync(&data->work) after freeirq() 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.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Add irq_work_sync(&data->work) immediately after free_irq() in both gp2ap020a00f_remove() and the probe error path, so queued irq_work is drained before cleanup frees the trigger.

    Linux kernel iio: light: gp2ap020a00f driver irq_work synchronization after free_irq() = irq_work_sync(&data->work)

Event History

Oct 18, 2026
CVE Published
via MITRE·03:44 PM
Data Sourced
via MITRE·03:44 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203