CVE-2026-142801 (GCVE-0-2026-142801)

Vulnerability from cvelistv5 – Published: 2026-12-03 03:11 – Updated: 2026-12-04 03:25
VLAI
Title
drm/msm: Fix vm_bo use-after-free in with_vm_locks()
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/msm: Fix vm_bo use-after-free in with_vm_locks() The unwind loop drops the vm_bo reference taken while locking before advancing to the next entry. drm_gpuvm_bo_put() may drop the last reference, removing and freeing the vm_bo, after which the plain list iterator dereferences freed memory to advance. Use the safe iterator, which saves the next entry before the body runs. Patchwork: https://patchwork.freedesktop.org/patch/754331/
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8648 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: fe4952b5f27cca5d143d3de249562d4cc984c1d6 , < 3bcce6db59400fb643348179cd1f2a22a274b0e5 (git)
Affected: fe4952b5f27cca5d143d3de249562d4cc984c1d6 , < a1fe31028ad6ddad4fa0ee086317fc1b00fbada1 (git)
Affected: fe4952b5f27cca5d143d3de249562d4cc984c1d6 , < 81878aa1a2f551f51a3d3aef2a9509503ec34d8b (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.17
Unaffected: 0 , < 6.17 (semver)
Unaffected: 6.18.61 , ≤ 6.18.* (semver)
Unaffected: 7.3.2 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (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_shrinker.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3bcce6db59400fb643348179cd1f2a22a274b0e5",
              "status": "affected",
              "version": "fe4952b5f27cca5d143d3de249562d4cc984c1d6",
              "versionType": "git"
            },
            {
              "lessThan": "a1fe31028ad6ddad4fa0ee086317fc1b00fbada1",
              "status": "affected",
              "version": "fe4952b5f27cca5d143d3de249562d4cc984c1d6",
              "versionType": "git"
            },
            {
              "lessThan": "81878aa1a2f551f51a3d3aef2a9509503ec34d8b",
              "status": "affected",
              "version": "fe4952b5f27cca5d143d3de249562d4cc984c1d6",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/msm/msm_gem_shrinker.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.61",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.61",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.2",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-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\ndrm/msm: Fix vm_bo use-after-free in with_vm_locks()\n\nThe unwind loop drops the vm_bo reference taken while locking before\nadvancing to the next entry.  drm_gpuvm_bo_put() may drop the last\nreference, removing and freeing the vm_bo, after which the plain list\niterator dereferences freed memory to advance.\n\nUse the safe iterator, which saves the next entry before the body runs.\n\nPatchwork: https://patchwork.freedesktop.org/patch/754331/"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - with_vm_locks() is only called from purge() and evict() out of msm_gem_shrinker_scan(), the shrinker scan_objects hook run by reclaim. A local render-node client gets there with DRM_IOCTL_MSM_GEM_NEW, DRM_IOCTL_MSM_GEM_MADVISE(MSM_MADV_DONTNEED), and GEM_SUBMIT or MSM_VM_BIND linking a drm_gpuvm_bo whose VM dma_resv is not obj-\u003eresv. No network message carries the faulting state.\nAC:H - drm_gpuvm_bo_put() kfree\u0027s the vm_bo only on the last kref, and list_for_each_entry reads list.entry.gem.next only when that entry is not last_locked (the loop breaks after the last locked vm_bo). drm_gem_lru_scan() holds obj-\u003eresv across the callback, and drm_gpuva_unlink() in msm_gem_vma_close() requires that same lock, so a concurrent VM_BIND unmap or GEM close cannot drop the VA ref inside the window.\nPR:L - DRM_IOCTL_MSM_GEM_NEW, DRM_IOCTL_MSM_GEM_MADVISE, DRM_IOCTL_MSM_GEM_SUBMIT and DRM_IOCTL_MSM_VM_BIND are DRM_RENDER_ALLOW, so a render-node client without CAP_SYS_ADMIN or DRM master can create the BO, mark it DONTNEED and map it into a VM. Reclaim then enters msm_gem_shrinker_scan() as kswapd or that client\u0027s direct reclaim.\nUI:N - The same client performs GEM_NEW, MADVISE and the map, and can drive reclaim by allocating memory. with_vm_locks() does not wait on another task to mount media, open a file, or approve a prompt.\nS:U - The use-after-free targets a kernel struct drm_gpuvm_bo while msm_gem_shrinker_scan() runs in host kernel context. Impact stays inside that kernel security authority.\nC:H - If the unlock put is the last reference, drm_gpuvm_bo_destroy() kfree\u0027s the drm_gpuvm_bo and the unsafe iterator loads list.entry.gem.next from that freed slab object. A reused slot supplies vm_bo-\u003evm and the list pointers that drm_gpuvm_resv(), dma_resv_unlock() and drm_gpuvm_bo_put() then follow.\nI:H - After the free, the unwind loop still calls dma_resv_unlock() on drm_gpuvm_resv(vm_bo-\u003evm) and drm_gpuvm_bo_put(), and destroy list_del\u0027s list.entry.gem. Attacker-controlled bytes in the reclaimed drm_gpuvm_bo make that list_del an arbitrary kernel write.\nA:H - drm_gpuvm_bo_destroy() list_del\u0027s the entry, poisoning list.entry.gem.next, then kfree\u0027s it. The next iterator step in with_vm_locks() dereferences that poison or a dangling pointer while kswapd or direct reclaim holds fs_reclaim, so the kernel oopses."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-04T03:25:04.955Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3bcce6db59400fb643348179cd1f2a22a274b0e5"
        },
        {
          "url": "https://git.kernel.org/stable/c/a1fe31028ad6ddad4fa0ee086317fc1b00fbada1"
        },
        {
          "url": "https://git.kernel.org/stable/c/81878aa1a2f551f51a3d3aef2a9509503ec34d8b"
        }
      ],
      "title": "drm/msm: Fix vm_bo use-after-free in with_vm_locks()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-142801",
    "datePublished": "2026-12-03T03:11:31.007Z",
    "dateReserved": "2026-12-03T03:10:28.330Z",
    "dateUpdated": "2026-12-04T03:25:04.955Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-142801",
      "date": "2026-12-04",
      "epss": "0.0026",
      "percentile": "0.18875"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/gpu/drm/msm/msm_gem_shrinker.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "3bcce6db59400fb643348179cd1f2a22a274b0e5",
                    "status": "affected",
                    "version": "fe4952b5f27cca5d143d3de249562d4cc984c1d6",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "a1fe31028ad6ddad4fa0ee086317fc1b00fbada1",
                    "status": "affected",
                    "version": "fe4952b5f27cca5d143d3de249562d4cc984c1d6",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "81878aa1a2f551f51a3d3aef2a9509503ec34d8b",
                    "status": "affected",
                    "version": "fe4952b5f27cca5d143d3de249562d4cc984c1d6",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/gpu/drm/msm/msm_gem_shrinker.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.61",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.2",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "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 vm_bo use-after-free in with_vm_locks()\n\nThe unwind loop drops the vm_bo reference taken while locking before\nadvancing to the next entry.  drm_gpuvm_bo_put() may drop the last\nreference, removing and freeing the vm_bo, after which the plain list\niterator dereferences freed memory to advance.\n\nUse the safe iterator, which saves the next entry before the body runs.\n\nPatchwork: https://patchwork.freedesktop.org/patch/754331/"
          }
        ],
        "id": "CVE-2026-142801",
        "lastModified": "2026-12-04T04:17:27.983",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "HIGH",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.0,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.0,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-12-03T04:18:13.820",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/3bcce6db59400fb643348179cd1f2a22a274b0e5"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/81878aa1a2f551f51a3d3aef2a9509503ec34d8b"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a1fe31028ad6ddad4fa0ee086317fc1b00fbada1"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-04T14:11:42+00:00",
      "cve": "CVE-2026-142801",
      "id": "CVE-2026-142801",
      "initial_release_date": "2026-12-03T03:11:31.007000+00:00",
      "product_status:known_not_affected": "280",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Use-after-free in MSM DRM driver via unsafe list iteration",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-142801.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    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.