{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "079034073faf974973baa0256b029451f6e768ad"
            },
            {
              "fixed": "81e3e5ae4228f95414665877f5e487917fbef9c0"
            },
            {
              "fixed": "1b7b31f0d4bbfb9a87dd8acce1e001a3cf1c1623"
            },
            {
              "fixed": "f214e9fe86a0aba6deb4a0b31b9998fb2b6879b5"
            },
            {
              "fixed": "03f449b5de36a25fc5eba7dabf2b4494389bdb91"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.29"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.61"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99474.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nHID: hiddev: keep state alive through disconnect unlock\n\nmutex_unlock() clears the mutex owner before taking its wait lock. A\nthread spinning in the final hiddev file release can acquire\nexistancelock after hiddev_disconnect() clears the owner, then free\nhiddev before the disconnecting thread reaches the mutex wait lock. This\ncauses a use-after-free in the mutex slow unlock path.\n\nGive the connection and each open file an explicit reference. Drop each\nreference only after its existancelock critical section has completed,\nso neither unlock path can free the mutex while the other is still using\nit.",
  "id": "CVE-2026-99474",
  "modified": "2026-11-19T16:46:05.565987019Z",
  "published": "2026-11-19T14:43:05.043Z",
  "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/03f449b5de36a25fc5eba7dabf2b4494389bdb91"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1b7b31f0d4bbfb9a87dd8acce1e001a3cf1c1623"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/81e3e5ae4228f95414665877f5e487917fbef9c0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f214e9fe86a0aba6deb4a0b31b9998fb2b6879b5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99474.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99474"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "HID: hiddev: keep state alive through disconnect unlock"
}