CVE-2026-64447 (GCVE-0-2026-64447)

Vulnerability from cvelistv5 – Published: 2026-07-25 08:51 – Updated: 2026-08-05 12:42
VLAI
Title
staging: media: ipu7: fix double-free and use-after-free in error paths
Summary
In the Linux kernel, the following vulnerability has been resolved: staging: media: ipu7: fix double-free and use-after-free in error paths In both ipu7_isys_init() and ipu7_psys_init(), pdata is allocated and then passed to ipu7_bus_initialize_device(), which stores it in adev->pdata. The ipu7_bus_release() function frees adev->pdata when the device's reference count drops to zero. Two error paths incorrectly call kfree(pdata) after the device teardown has already freed it: 1. When ipu7_mmu_init() fails: put_device() is called, which drops the reference count to zero and triggers ipu7_bus_release() -> kfree(pdata). The subsequent kfree(pdata) is a double-free. 2. When ipu7_bus_add_device() fails: it calls auxiliary_device_uninit() internally, which calls put_device() -> ipu7_bus_release() -> kfree(pdata). The subsequent kfree(pdata) is again a double-free. Note that the kfree(pdata) when ipu7_bus_initialize_device() itself fails is correct, because in that case auxiliary_device_init() failed and the release function was never set up, so pdata must be freed manually. Additionally, the error code was not saved before calling put_device(), causing ERR_CAST() to dereference the already-freed adev pointer when constructing the return value. Fix this by saving the error from dev_err_probe() before put_device() and returning ERR_PTR() instead. Remove the redundant kfree(pdata) calls and fix the use-after-free in the return values of the two affected error paths.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: b7fe4c0019b12d60ece3e99eeb0ccfd5a1d103e5 , < b5ddc7257bee71f5b8cf9083e2b0ac0427e9fbb3 (git)
Affected: b7fe4c0019b12d60ece3e99eeb0ccfd5a1d103e5 , < 837c1f9655421055f751ed34745e820a54a27642 (git)
Affected: b7fe4c0019b12d60ece3e99eeb0ccfd5a1d103e5 , < d3a9a8cf2d7fd61a2f63df61f6cbc0a9bb007cc0 (git)
Create a notification for this product.
Linux Linux Affected: 6.17
Unaffected: 0 , < 6.17 (semver)
Unaffected: 6.18.39 , ≤ 6.18.* (semver)
Unaffected: 7.1.4 , ≤ 7.1.* (semver)
Unaffected: 7.2-rc1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/staging/media/ipu7/ipu7.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "b5ddc7257bee71f5b8cf9083e2b0ac0427e9fbb3",
              "status": "affected",
              "version": "b7fe4c0019b12d60ece3e99eeb0ccfd5a1d103e5",
              "versionType": "git"
            },
            {
              "lessThan": "837c1f9655421055f751ed34745e820a54a27642",
              "status": "affected",
              "version": "b7fe4c0019b12d60ece3e99eeb0ccfd5a1d103e5",
              "versionType": "git"
            },
            {
              "lessThan": "d3a9a8cf2d7fd61a2f63df61f6cbc0a9bb007cc0",
              "status": "affected",
              "version": "b7fe4c0019b12d60ece3e99eeb0ccfd5a1d103e5",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/staging/media/ipu7/ipu7.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.17"
            },
            {
              "lessThan": "6.17",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.39",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.39",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.4",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2-rc1",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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\u0027s 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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The affected functions are reached from the Intel IPU7/IPU7.5 PCI driver probe, not network traffic or V4L2 ioctls. Exploitation therefore requires local execution to influence the probe-time failure and heap state.\nAC:L - Once ipu7_mmu_init() or auxiliary_device_add() fails, the double-free and use-after-free execute deterministically without a race. Allocation pressure and heap grooming are attacker-controlled in the highest reasonable scenario.\nPR:L - Direct module loading and sysfs reprobe operations require initial-namespace administration and are not enabled by user namespaces. However, an ordinary local user can sustain allocation pressure during an automatic probe, making basic local access sufficient in the highest reasonable scenario.\nUI:N - PCI probing and error unwinding are kernel-driven; no separate victim action is required once the triggering conditions are established.\nS:U - The corruption occurs within the host kernel and affects resources governed by that same security authority, without crossing a VM, IOMMU, or other scope boundary.\nC:H - The double-free can produce overlapping kernel allocations, while the companion use-after-free accesses a freed container. Attacker-controlled reuse can expose arbitrary kernel memory.\nI:H - The duplicated allocator entry can yield two live users of one kernel object, enabling corruption of security-sensitive objects and potentially arbitrary writes or control-flow hijacking.\nA:H - The double-free can trip allocator hardening or corrupt SLUB state, while the use-after-free can cause invalid-pointer accesses, resulting in a kernel oops or panic."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T12:42:10.786Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/b5ddc7257bee71f5b8cf9083e2b0ac0427e9fbb3"
        },
        {
          "url": "https://git.kernel.org/stable/c/837c1f9655421055f751ed34745e820a54a27642"
        },
        {
          "url": "https://git.kernel.org/stable/c/d3a9a8cf2d7fd61a2f63df61f6cbc0a9bb007cc0"
        }
      ],
      "title": "staging: media: ipu7: fix double-free and use-after-free in error paths",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-64447",
    "datePublished": "2026-07-25T08:51:18.096Z",
    "dateReserved": "2026-07-19T15:36:31.788Z",
    "dateUpdated": "2026-08-05T12:42:10.786Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-64447",
      "date": "2026-08-10",
      "epss": "0.00133",
      "percentile": "0.03197"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-64447\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-07-25T10:17:29.437\",\"lastModified\":\"2026-07-27T05:16:51.487\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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\u0027s 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.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/staging/media/ipu7/ipu7.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"b7fe4c0019b12d60ece3e99eeb0ccfd5a1d103e5\",\"lessThan\":\"b5ddc7257bee71f5b8cf9083e2b0ac0427e9fbb3\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"b7fe4c0019b12d60ece3e99eeb0ccfd5a1d103e5\",\"lessThan\":\"837c1f9655421055f751ed34745e820a54a27642\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"b7fe4c0019b12d60ece3e99eeb0ccfd5a1d103e5\",\"lessThan\":\"d3a9a8cf2d7fd61a2f63df61f6cbc0a9bb007cc0\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/staging/media/ipu7/ipu7.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.17\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.17\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.39\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.4\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2-rc1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/837c1f9655421055f751ed34745e820a54a27642\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b5ddc7257bee71f5b8cf9083e2b0ac0427e9fbb3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d3a9a8cf2d7fd61a2f63df61f6cbc0a9bb007cc0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-07-30T09:47:08+00:00",
      "cve": "CVE-2026-64447",
      "id": "CVE-2026-64447",
      "initial_release_date": "2026-07-25T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: staging: media: ipu7: fix double-free and use-after-free in error paths",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-64447.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…