{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1cd53df733c21ae0d344a2dec941a3e2a06fefd9"
            },
            {
              "fixed": "54f463494eb5bf193ef7d904a493474c451734df"
            },
            {
              "fixed": "a645cc25904b0baf508b77a0402ce151212b9800"
            },
            {
              "fixed": "6766f59012301f1bf3f46c6e7149caca45d92309"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.17.0"
            },
            {
              "fixed": "6.18.16"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43181.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: sysfs: fix chip removal with GPIOs exported over sysfs\n\nCurrently if we export a GPIO over sysfs and unbind the parent GPIO\ncontroller, the exported attribute will remain under /sys/class/gpio\nbecause once we remove the parent device, we can no longer associate the\ndescriptor with it in gpiod_unexport() and never drop the final\nreference.\n\nRework the teardown code: provide an unlocked variant of\ngpiod_unexport() and remove all exported GPIOs with the sysfs_lock taken\nbefore unregistering the parent device itself. This is done to prevent\nany new exports happening before we unregister the device completely.",
  "id": "CVE-2026-43181",
  "modified": "2026-07-08T05:38:04.336277286Z",
  "published": "2026-05-06T11:27:53.626Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/54f463494eb5bf193ef7d904a493474c451734df"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6766f59012301f1bf3f46c6e7149caca45d92309"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a645cc25904b0baf508b77a0402ce151212b9800"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43181.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-43181"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "gpio: sysfs: fix chip removal with GPIOs exported over sysfs"
}