{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "38fc8beaba55e06c8831f21a96ec5e33e2f1978f"
            },
            {
              "fixed": "3ce4c550872276fa0b2a34fb26a35162fb058345"
            },
            {
              "fixed": "da146dab51d1470262a148a0b31762bf8f32f76f"
            },
            {
              "fixed": "af5f7df6c8b33bed714ec0aea15a0a2f48900c0a"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.15.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139585.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: iris: reference count video instances\n\niris_get_instance() looks up an instance on core-\u003einstances and returns\nit after dropping core-\u003elock, without taking any reference. The threaded\ninterrupt handler uses this to find the instance a firmware response\nbelongs to and then takes inst-\u003elock. Meanwhile userspace may close the\nsame file descriptor: iris_close() removes the instance from the list,\ndestroys inst-\u003elock and frees the instance. The interrupt handler then\noperates on freed memory and a destroyed mutex, a use-after-free.\n\nAdd a kref to struct iris_inst. iris_get_instance() takes a reference\nunder core-\u003elock, so an instance it returns cannot be freed until the\ncaller drops that reference with iris_inst_put(). The instance is\nreleased (mutexes destroyed, memory freed) only when the last reference\ngoes away, whether that is held by the closing thread or the interrupt\nhandler.",
  "id": "CVE-2026-139585",
  "modified": "2026-11-30T14:45:26.437609738Z",
  "published": "2026-11-30T13:36:06.956Z",
  "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/3ce4c550872276fa0b2a34fb26a35162fb058345"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/af5f7df6c8b33bed714ec0aea15a0a2f48900c0a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/da146dab51d1470262a148a0b31762bf8f32f76f"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139585.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139585"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "media: iris: reference count video instances"
}