CVE-2026-99645

Source
https://cve.org/CVERecord?id=CVE-2026-99645
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99645.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99645
Published
2026-11-20T05:49:59Z
Modified
2026-11-20T07:00:59Z
Summary
mm/cma: don't release CMA pages still in use
Details

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() ]

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99645.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9bda131c6093e9c4a8739e2eeb65ba4d5fbefc2f
Fixed
485214cc031771fdbd5829b431f4f115e285dc21
Fixed
e8abc61d8a549a91c8fa639f68be2ef13d5fa63b

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99645.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.0.0
Fixed
7.3.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99645.json"