{
  "id": "CVE-2026-64447",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-64447",
  "published_at": "2026-07-25T08:51:18.096Z",
  "title": "staging: media: ipu7: fix double-free and use-after-free in error paths",
  "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": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: media: ipu7: fix double-free and use-after-free in error paths\n\nIn both ipu7_isys_init() and ipu7_psys_init(), pdata is allocated and\nthen passed to ipu7_bus_initialize_device(), which stores it in\nadev-\u003epdata. The ipu7_bus_release() function frees adev-\u003epdata when the\ndevice's reference count drops to zero.\n\nTwo error paths incorrectly call kfree(pdata) after the device teardown\nhas already freed it:\n\n1. When ipu7_mmu_init() fails: put_device() is called, which drops the\n   reference count to zero and triggers ipu7_bus_release() -\u003e\n   kfree(pdata). The subsequent kfree(pdata) is a double-free.\n\n2. When ipu7_bus_add_device() fails: it calls auxiliary_device_uninit()\n   internally, which calls put_device() -\u003e ipu7_bus_release() -\u003e\n   kfree(pdata). The subsequent kfree(pdata) is again a double-free.\n\nNote that the kfree(pdata) when ipu7_bus_initialize_device() itself\nfails is correct, because in that case auxiliary_device_init() failed\nand the release function was never set up, so pdata must be freed\nmanually.\n\nAdditionally, the error code was not saved before calling put_device(),\ncausing ERR_CAST() to dereference the already-freed adev pointer when\nconstructing the return value. Fix this by saving the error from\ndev_err_probe() before put_device() and returning ERR_PTR() instead.\n\nRemove the redundant kfree(pdata) calls and fix the use-after-free in\nthe return values of the two affected error paths.",
  "cwe": "CWE-415",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= b7fe4c0019b12d60ece3e99eeb0ccfd5a1d103e5, \u003c b5ddc7257bee71f5b8cf9083e2b0ac0427e9fbb3",
          "\u003e= b7fe4c0019b12d60ece3e99eeb0ccfd5a1d103e5, \u003c 837c1f9655421055f751ed34745e820a54a27642",
          "\u003e= b7fe4c0019b12d60ece3e99eeb0ccfd5a1d103e5, \u003c d3a9a8cf2d7fd61a2f63df61f6cbc0a9bb007cc0"
        ],
        "fixed_in": [
          "b5ddc7257bee71f5b8cf9083e2b0ac0427e9fbb3",
          "837c1f9655421055f751ed34745e820a54a27642",
          "d3a9a8cf2d7fd61a2f63df61f6cbc0a9bb007cc0"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.17"
        ],
        "fixed_in": [
          "0",
          "6.18.39",
          "7.1.4",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to b5ddc7257bee71f5b8cf9083e2b0ac0427e9fbb3 or 837c1f9655421055f751ed34745e820a54a27642 or d3a9a8cf2d7fd61a2f63df61f6cbc0a9bb007cc0 or later.",
      "Upgrade Linux to 0 or 6.18.39 or 7.1.4 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
