CVE-2025-40069 (GCVE-0-2025-40069)

Vulnerability from cvelistv5 – Published: 2025-10-28 11:48 – Updated: 2026-08-05 12:07
VLAI
Title
drm/msm: Fix obj leak in VM_BIND error path
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/msm: Fix obj leak in VM_BIND error path If we fail a handle-lookup part way thru, we need to drop the already obtained obj references. Patchwork: https://patchwork.freedesktop.org/patch/669784/
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 2e6a8a1fe2b262a6dfd0a65041fcd830ee1e7143 , < 2b512909a291a964cfcf6b58de13256ab3e848c4 (git)
Affected: 2e6a8a1fe2b262a6dfd0a65041fcd830ee1e7143 , < 278f8904434aa96055e793936b5977c010549e28 (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.17
Unaffected: 0 , < 6.17 (semver)
Unaffected: 6.17.3 , ≤ 6.17.* (semver)
Unaffected: 6.18 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/msm/msm_gem_vma.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "2b512909a291a964cfcf6b58de13256ab3e848c4",
              "status": "affected",
              "version": "2e6a8a1fe2b262a6dfd0a65041fcd830ee1e7143",
              "versionType": "git"
            },
            {
              "lessThan": "278f8904434aa96055e793936b5977c010549e28",
              "status": "affected",
              "version": "2e6a8a1fe2b262a6dfd0a65041fcd830ee1e7143",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/msm/msm_gem_vma.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.17.*",
              "status": "unaffected",
              "version": "6.17.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.18",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.17.3",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm: Fix obj leak in VM_BIND error path\n\nIf we fail a handle-lookup part way thru, we need to drop the already\nobtained obj references.\n\nPatchwork: https://patchwork.freedesktop.org/patch/669784/"
        }
      ],
      "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 - Reached only through the `DRM_IOCTL_MSM_VM_BIND` ioctl on the local msm DRM device/render node, which requires an open file descriptor on `/dev/dri/renderD*`. There is no remote or adjacent-network path to this code.\nAC:L - Triggering is fully deterministic and race-free \u2014 a single VM_BIND ioctl with one MSM_VM_BIND_OP_MAP op carrying a handle not present in `file-\u003eobject_idr` (any large value, since IDR ids are allocated from 1 upward) drives the error path every time. All other validation (page-aligned iova/range, VA range) is trivially satisfied using values queryable via MSM_PARAM_VA_START/VA_SIZE.\nPR:L - Every ioctl on the path (MSM_SET_PARAM, MSM_SUBMITQUEUE_NEW, MSM_VM_BIND) is marked `DRM_RENDER_ALLOW`, so no DRM master, authentication, or capability is needed, and `MSM_PARAM_EN_VM_BIND` has no `capable()` gate. Any unprivileged process that can open the render node \u2014 including an Android app, a Chrome GPU sandbox process, or a desktop user on a Snapdragon laptop \u2014 qualifies.\nUI:N - The attacker issues the ioctls entirely from their own process; no victim action, no file to open, no device to plug in is involved.\nS:U - The corruption and any resulting escalation stay within the kernel\u0027s own security authority on the same host, with no crossing of a hypervisor, IOMMU, or other separate security scope.\nC:H - The union-aliased handle is dereferenced as a `struct drm_gem_object *` at an address the attacker fully controls; if that access succeeds, `drm_gem_object_free()` proceeds to read `obj-\u003efuncs-\u003efree` from attacker-shaped memory, giving a memory-corruption primitive that can be leveraged into arbitrary kernel memory disclosure.\nI:H - `kref_put()` performs an atomic read-modify-write (decrement) at the attacker-supplied address, and reaching zero funnels into an indirect call through a function pointer read from that same attacker-influenced memory \u2014 a write plus control-flow-hijack primitive, not a mere refcount imbalance.\nA:H - In the common case the wild pointer lands in an unmapped or PAN/SMAP-protected page and the `refcount_dec_and_test()` faults, producing an immediate kernel oops that kills the task and leaks the job/submitqueue state; an unprivileged user can trigger this at will, and with `panic_on_oops` (common on Android and hardened builds) it is a full system panic."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T12:07:32.509Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/2b512909a291a964cfcf6b58de13256ab3e848c4"
        },
        {
          "url": "https://git.kernel.org/stable/c/278f8904434aa96055e793936b5977c010549e28"
        }
      ],
      "title": "drm/msm: Fix obj leak in VM_BIND error path",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-40069",
    "datePublished": "2025-10-28T11:48:38.232Z",
    "dateReserved": "2025-04-16T07:20:57.159Z",
    "dateUpdated": "2026-08-05T12:07:32.509Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-40069",
      "date": "2026-09-26",
      "epss": "0.00134",
      "percentile": "0.02424"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/gpu/drm/msm/msm_gem_vma.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "2b512909a291a964cfcf6b58de13256ab3e848c4",
                    "status": "affected",
                    "version": "2e6a8a1fe2b262a6dfd0a65041fcd830ee1e7143",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "278f8904434aa96055e793936b5977c010549e28",
                    "status": "affected",
                    "version": "2e6a8a1fe2b262a6dfd0a65041fcd830ee1e7143",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/gpu/drm/msm/msm_gem_vma.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.17.*",
                    "status": "unaffected",
                    "version": "6.17.3",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.18",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm: Fix obj leak in VM_BIND error path\n\nIf we fail a handle-lookup part way thru, we need to drop the already\nobtained obj references.\n\nPatchwork: https://patchwork.freedesktop.org/patch/669784/"
          }
        ],
        "id": "CVE-2025-40069",
        "lastModified": "2026-07-30T06:24:09.663",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2025-10-28T12:15:41.387",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/278f8904434aa96055e793936b5977c010549e28"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/2b512909a291a964cfcf6b58de13256ab3e848c4"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Deferred"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:34:14+00:00",
      "cve": "CVE-2025-40069",
      "id": "CVE-2025-40069",
      "initial_release_date": "2025-10-28T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: drm/msm: Fix obj leak in VM_BIND error path",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-40069.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…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…