Shellfeed logo Shellfeed

CVE-2026-98662 · UNKNOWN

Summary: iio: light: gp2ap020a00f: drain irq_work after free_irq

EPSS: 0.2% probability of exploitation in the next 30 days (percentile 7.2).

Details

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.

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [bf29fbeaa13d3350ca71df70c705d8b883c45692 – 6f2bb000493c3b4f5715b3103657393672aea05b]
  • Linux Kernel [3.13.0 – 5.10.273] [5.11.0 – 5.15.224] [5.16.0 – 6.1.191] [6.2.0 – 6.6.160] [6.7.0 – 6.12.113] [6.13.0 – 6.18.56] [6.19.0 – 7.2.10]

References