{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "bf29fbeaa13d3350ca71df70c705d8b883c45692"
            },
            {
              "fixed": "a36814b9fe00970116d30c3143d81e7425c4d334"
            },
            {
              "fixed": "cc71400bc965c0d3894a38ead3d71243400c2d5e"
            },
            {
              "fixed": "a1769877ff52a4f1bfb9ca535d1b5113808bd602"
            },
            {
              "fixed": "63213927b141085b6c8719b8037dab3074b7e0fe"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.13.0"
            },
            {
              "fixed": "6.12.113"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.56"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.2.10"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98662.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\niio: light: gp2ap020a00f: drain irq_work after free_irq\n\nThe threaded IRQ handler queues data-\u003ework through irq_work_queue() so\nthe trigger is polled from a per-CPU context.  free_irq() does not flush\nan irq_work the handler already queued, so after gp2ap020a00f_remove()\nreturns that work may still run and call iio_trigger_poll() on data-\u003etrig,\nwhich the devm cleanup has already freed, causing a use-after-free.\n\nAdd irq_work_sync(\u0026data-\u003ework) after free_irq() in remove() and in the\nprobe error path, mirroring commit 78601726d4a5 (\"iio: trigger: sysfs:\nfix use-after-free on remove\").\n\nFound by an in-house static analysis tool, confirmed by manual review.",
  "id": "CVE-2026-98662",
  "modified": "2026-10-20T02:30:34.897746283Z",
  "published": "2026-10-18T15:44:24.421Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/63213927b141085b6c8719b8037dab3074b7e0fe"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a1769877ff52a4f1bfb9ca535d1b5113808bd602"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a36814b9fe00970116d30c3143d81e7425c4d334"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cc71400bc965c0d3894a38ead3d71243400c2d5e"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98662.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-98662"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "iio: light: gp2ap020a00f: drain irq_work after free_irq"
}