{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "d83cee3d2bb131c7fca7e19f1e33dc7530fd7083"
            },
            {
              "fixed": "8460ee5216ab9a38263b01dca4b0a27e083f70f3"
            },
            {
              "fixed": "cf3d043582e106a0e57002bec8a6de8929ba3e1c"
            },
            {
              "fixed": "60a466f231905cd96ae6f0f3c44a710c97873dac"
            },
            {
              "fixed": "1feb5d39b05afd902ed9fc902ec5b15be03a4bdb"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.9.0"
            },
            {
              "fixed": "6.12.112"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.55"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.2.9"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98528.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: cdev: fix kernel stack leak to user-space in error path\n\nIf we fail to acquire the GPIO chip guard in gpio_desc_to_lineinfo(), we\nreturn immediately before zeroing the info struct we'll end up passing\nto the user-space later in lineinfo_get_v1(). This may leak the kernel\nstack contents. Make gpio_desc_to_lineinfo() return int so that the\n-ENODEV returned on failure to acquire the guard can be propagated to\nthe callers.\n\nWhile not strictly necessary: move the memset() before trying to acquire\nthe SRCU read lock too for good measure.",
  "id": "CVE-2026-98528",
  "modified": "2026-10-19T02:30:26.822702870Z",
  "published": "2026-10-18T15:17:46.695Z",
  "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/1feb5d39b05afd902ed9fc902ec5b15be03a4bdb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/60a466f231905cd96ae6f0f3c44a710c97873dac"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8460ee5216ab9a38263b01dca4b0a27e083f70f3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cf3d043582e106a0e57002bec8a6de8929ba3e1c"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98528.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-98528"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "gpio: cdev: fix kernel stack leak to user-space in error path"
}