CVE-2026-99645 (GCVE-0-2026-99645)

Vulnerability from cvelistv5 – Published: 2026-11-20 05:49 – Updated: 2026-11-22 11:09
VLAI
Title
mm/cma: don't release CMA pages still in use
Summary
In the Linux kernel, the following vulnerability has been resolved: mm/cma: don't release CMA pages still in use When a driver calls dma_free_contiguous() before quiescing DMA, the page might still have a reference from the device. put_page_testzero() there returns false, WARN fires, but the code proceeds to free_contig_frozen_range() putting a live page onto buddy and clearing the bitmap. A subsequent allocation can hand the same PFN to a new owner while the original holder still references it. A concurrent put_page() that drops the last reference between the testzero loop and free_contig_frozen_range() can double-queue the page via page->lru, corrupting buddy lists. Avoid the corruption by not freeing a CMA region if any of the pages inside are still in use. Make it explicit in the warning that the driver allowed a leak. While at it, use page_ref_freeze() to make the semantics clearer and switch to pr_warn_ratelimited(). [ david: use page_ref_freeze() + pr_warn_ratelimited() ]
Impacted products
Vendor Product Version
Linux Linux Affected: 9bda131c6093e9c4a8739e2eeb65ba4d5fbefc2f , < 485214cc031771fdbd5829b431f4f115e285dc21 (git)
Affected: 9bda131c6093e9c4a8739e2eeb65ba4d5fbefc2f , < e8abc61d8a549a91c8fa639f68be2ef13d5fa63b (git)
Create a notification for this product.
Linux Linux Affected: 7.0
Unaffected: 0 , < 7.0 (semver)
Unaffected: 7.3.5 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "mm/cma.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "485214cc031771fdbd5829b431f4f115e285dc21",
              "status": "affected",
              "version": "9bda131c6093e9c4a8739e2eeb65ba4d5fbefc2f",
              "versionType": "git"
            },
            {
              "lessThan": "e8abc61d8a549a91c8fa639f68be2ef13d5fa63b",
              "status": "affected",
              "version": "9bda131c6093e9c4a8739e2eeb65ba4d5fbefc2f",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "mm/cma.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "7.0"
            },
            {
              "lessThan": "7.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.5",
                  "versionStartIncluding": "7.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc2",
                  "versionStartIncluding": "7.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/cma: don\u0027t release CMA pages still in use\n\nWhen a driver calls dma_free_contiguous() before quiescing DMA, the\npage might still have a reference from the device.\nput_page_testzero() there returns false, WARN fires, but the code proceeds\nto free_contig_frozen_range() putting a live page onto buddy and clearing\nthe bitmap. A subsequent allocation can hand the same PFN to a new\nowner while the original holder still references it.\n\nA concurrent put_page() that drops the last reference between the\ntestzero loop and free_contig_frozen_range() can double-queue the page\nvia page-\u003elru, corrupting buddy lists.\n\nAvoid the corruption by not freeing a CMA region if any of the\npages inside are still in use.\n\nMake it explicit in the warning that the driver allowed a leak.\n\nWhile at it, use page_ref_freeze() to make the semantics clearer and\nswitch to pr_warn_ratelimited().\n\n[ david: use page_ref_freeze() + pr_warn_ratelimited() ]"
        }
      ],
      "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 - cma_release() runs only when a local caller frees CMA pages: dma_free_contiguous() from dma_direct_free()/iommu_dma_free() after dma_free_attrs(), or cma_heap_dma_buf_release() when a DMA_HEAP_IOCTL_ALLOC buffer is closed. No remote message supplies the refcount that put_page_testzero() tests.\nAC:H - The corrupt path is put_page_testzero() returning false, after which free_contig_frozen_range() still runs. cma_alloc() sets every page to refcount 1 in set_pages_refcounted(), and a normal free drops that one ref. kernel/dma never get_page()s the buffer, and no in-tree cma_release caller keeps a second ref, so the attacker cannot make refcount!=1.\nPR:L - vb2_dc_put() calls dma_free_attrs() and cma_heap_dma_buf_release() runs on dma-buf close with no capable() check. On the phone/embedded systems that reserve CMA, an unprivileged process opens the V4L2 node or /dev/dma_heap and reaches cma_release(); vmcp_open()\u0027s CAP_SYS_ADMIN check is a stricter path.\nUI:N - The caller frees its own buffer: vb2_dc_put() or dma_buf release after DMA_HEAP_IOCTL_ALLOC. No second principal has to mount media or approve the free.\nS:U - free_contig_frozen_range() corrupts the host buddy freelist (page-\u003elru) in the same kernel that called cma_release(). It does not cross a KVM guest/host or IOMMU boundary.\nC:H - With refcount still nonzero, free_contig_frozen_range() returns the page to the buddy and cma_clear_bitmap() lets a later cma_alloc() reuse that PFN while the old holder still references it, so the new owner\u0027s page contents are aliased to the leftover reference.\nI:H - That alias lets the leftover holder write the new owner\u0027s page, and a put_page() that drops the last extra ref between the put_page_testzero() loop and free_contig_frozen_range() list_adds page-\u003elru a second time, corrupting buddy metadata.\nA:H - A double queue on page-\u003elru, or allocating a page that is still referenced, oopses the kernel. free_pages_prepare() does not reject a nonzero refcount unless check_pages_enabled() is on, which production kernels leave off."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-22T11:09:24.276Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/485214cc031771fdbd5829b431f4f115e285dc21"
        },
        {
          "url": "https://git.kernel.org/stable/c/e8abc61d8a549a91c8fa639f68be2ef13d5fa63b"
        }
      ],
      "title": "mm/cma: don\u0027t release CMA pages still in use",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99645",
    "datePublished": "2026-11-20T05:49:59.909Z",
    "dateReserved": "2026-09-25T10:25:14.426Z",
    "dateUpdated": "2026-11-22T11:09:24.276Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99645",
      "date": "2026-11-24",
      "epss": "0.00138",
      "percentile": "0.03111"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "mm/cma.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "485214cc031771fdbd5829b431f4f115e285dc21",
                    "status": "affected",
                    "version": "9bda131c6093e9c4a8739e2eeb65ba4d5fbefc2f",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e8abc61d8a549a91c8fa639f68be2ef13d5fa63b",
                    "status": "affected",
                    "version": "9bda131c6093e9c4a8739e2eeb65ba4d5fbefc2f",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "mm/cma.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "7.0"
                  },
                  {
                    "lessThan": "7.0",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.5",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc2",
                    "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\nmm/cma: don\u0027t release CMA pages still in use\n\nWhen a driver calls dma_free_contiguous() before quiescing DMA, the\npage might still have a reference from the device.\nput_page_testzero() there returns false, WARN fires, but the code proceeds\nto free_contig_frozen_range() putting a live page onto buddy and clearing\nthe bitmap. A subsequent allocation can hand the same PFN to a new\nowner while the original holder still references it.\n\nA concurrent put_page() that drops the last reference between the\ntestzero loop and free_contig_frozen_range() can double-queue the page\nvia page-\u003elru, corrupting buddy lists.\n\nAvoid the corruption by not freeing a CMA region if any of the\npages inside are still in use.\n\nMake it explicit in the warning that the driver allowed a leak.\n\nWhile at it, use page_ref_freeze() to make the semantics clearer and\nswitch to pr_warn_ratelimited().\n\n[ david: use page_ref_freeze() + pr_warn_ratelimited() ]"
          }
        ],
        "id": "CVE-2026-99645",
        "lastModified": "2026-11-22T11:17:04.353",
        "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-11-20T06:17:58.063",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/485214cc031771fdbd5829b431f4f115e285dc21"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e8abc61d8a549a91c8fa639f68be2ef13d5fa63b"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-24T23:43:18+00:00",
      "cve": "CVE-2026-99645",
      "id": "CVE-2026-99645",
      "initial_release_date": "2026-11-20T05:49:59.909000+00:00",
      "product_status:known_not_affected": "280",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Memory corruption via premature release of in-use CMA pages",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99645.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "not set",
      "current_release_date": "2026-11-20T17:43:55Z",
      "cve": "CVE-2026-99645",
      "id": "CVE-2026-99645",
      "initial_release_date": "2026-11-20T17:43:55Z",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-99645",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-99645.json",
      "version": "2"
    }
  }
}



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…