{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "5fc4e4cf7a2268b5f73700fd1e8d02159f2417d8"
            },
            {
              "fixed": "1de465753220deb41569cf2add87bbb0673731db"
            },
            {
              "fixed": "fbffb8c7c7bb4d38e9f65e0bee446685011de5d8"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.12"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31745.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nreset: gpio: fix double free in reset_add_gpio_aux_device() error path\n\nWhen __auxiliary_device_add() fails, reset_add_gpio_aux_device()\ncalls auxiliary_device_uninit(adev).\n\nThe device release callback reset_gpio_aux_device_release() frees\nadev, but the current error path then calls kfree(adev) again,\ncausing a double free.\n\nKeep kfree(adev) for the auxiliary_device_init() failure path, but\navoid freeing adev after auxiliary_device_uninit().",
  "id": "CVE-2026-31745",
  "modified": "2026-07-08T05:38:30.936688629Z",
  "published": "2026-05-01T14:14:39.529Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1de465753220deb41569cf2add87bbb0673731db"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fbffb8c7c7bb4d38e9f65e0bee446685011de5d8"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31745.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31745"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "reset: gpio: fix double free in reset_add_gpio_aux_device() error path"
}