{
  "id": "CVE-2026-46215",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-46215",
  "published_at": "2026-05-28T09:40:32.05Z",
  "title": "drm: Set old handle to NULL before prime swap in change_handle",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-06-18T14:39:11Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 21.2,
    "repo": "0xCyberstan/CVE-2026-46215-POC",
    "source": "github"
  },
  "poc_repo_count": 3,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm: Set old handle to NULL before prime swap in change_handle\n\nThere was a potential race condition in change_handle. The ioctl\nbriefly had a single object with two idr entries; a concurrent\ngem_close could delete the object and remove one of the handles\nwhile leaving the other one dangling, which could subsequently\nbe dereferenced for a use-after-free.\n\nTo fix this, do the same dance that gem_close itself does.\n(f6cd7daecff5 drm: Release driver references to handle before making it available again)\nFirst idr_replace the old handle to NULL. Later, if the prime\noperations are successful, actually close it.\n\ncreate_tail required a similar dance to avoid a similar problem.\n(bd46cece51a3 drm/gem: Fix race in drm_gem_handle_create_tail())\nIt idr_allocs the new handle with NULL, then swaps in the correct\nobject later to avoid races. We don't need to do that here, since\nthe only operations that could race are drm_prime, and\nchange_handle holds the prime lock for the entire duration.\n\nv2: cleanups of error paths",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [
    {
      "repo": "bluedragonsecurity/exploits",
      "url": "https://github.com/bluedragonsecurity/exploits",
      "created_at": "2026-05-13T14:43:34Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "no",
      "kind": "list",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-09-07T10:51:54Z"
    },
    {
      "repo": "0xCyberstan/CVE-2026-46215-POC",
      "url": "https://github.com/0xCyberstan/CVE-2026-46215-POC",
      "created_at": "2026-06-18T14:39:11Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 11,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-01-12T20:55:36Z"
    },
    {
      "repo": "bluedragonsecurity/sheaf_uaf",
      "url": "https://github.com/bluedragonsecurity/sheaf_uaf",
      "created_at": "2026-06-28T11:59:11Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "unknown",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2023-09-07T10:51:54Z"
    },
    {
      "repo": "bluedragonsecurity/CVE-2026-46215-EXPLOIT",
      "url": "https://github.com/bluedragonsecurity/CVE-2026-46215-EXPLOIT",
      "created_at": "2026-07-11T16:16:51Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-09-07T10:51:54Z"
    },
    {
      "repo": "bluedragonsecurity/CVE-2026-46215-exploit-linux-7.0-uaf-stable",
      "url": "https://github.com/bluedragonsecurity/CVE-2026-46215-exploit-linux-7.0-uaf-stable",
      "created_at": "2026-07-19T05:37:45Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 5,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-09-07T10:51:54Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 53096728b8910c6916ecc6c46a5abc5c678b58d9, \u003c 672464dd53231509c9c771110798c56d4660e19e",
          "\u003e= 53096728b8910c6916ecc6c46a5abc5c678b58d9, \u003c 61bd96d3e5472c253f9c1ab77608f0c8aaa9d025",
          "\u003e= 53096728b8910c6916ecc6c46a5abc5c678b58d9, \u003c 5e28b7b94408897e41c63477aabc9e1db439bc8c"
        ],
        "fixed_in": [
          "672464dd53231509c9c771110798c56d4660e19e",
          "61bd96d3e5472c253f9c1ab77608f0c8aaa9d025",
          "5e28b7b94408897e41c63477aabc9e1db439bc8c"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.18"
        ],
        "fixed_in": [
          "0",
          "6.18.32",
          "7.0.9",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 672464dd53231509c9c771110798c56d4660e19e or 61bd96d3e5472c253f9c1ab77608f0c8aaa9d025 or 5e28b7b94408897e41c63477aabc9e1db439bc8c or later.",
      "Upgrade Linux to 0 or 6.18.32 or 7.0.9 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
