Description
In the Linux kernel, the following vulnerability has been resolved:

mm/zone_device: do not touch device folio after calling ->folio_free()

The contents of a device folio can immediately change after calling
->folio_free(), as the folio may be reallocated by a driver with a
different order. Instead of touching the folio again to extract the
pgmap, use the local stack variable when calling percpu_ref_put_many().
Published: 2026-06-08
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

mm/zone_device contains a use‑after‑free that is triggered when the kernel frees a device folio via ->folio_free() and subsequently re‑allocates it. The code path incorrectly touches the stale folio to retrieve the page mapping, thereby reading stale or corrupted data. This flaw is classified as CWE‑825 (Improper cleanup or resource release). A misused stale folio could lead to kernel memory corruption, leaking kernel contents or enabling a privilege escalation attack.

Affected Systems

Any Linux kernel that includes the mm/zone_device folio handling code before the commit that introduced the safe stack variable is affected. The vulnerability is present in the core memory subsystem of every distribution that ships a buggy kernel, regardless of vendor. Linux distributions that have not yet incorporated the upstream fix—such as older or out‑of‑date kernel releases—fall under this category.

Risk and Exploitability

The CVSS score is not published, and there is no EPSS value, but the flaw is not listed in the CISA KEV catalog. The likely attack vector is a local or remote code that can influence driver allocation or memory ordering, such as a malicious kernel module or an application granted the ability to load a driver. Successful exploitation would require the attacker to trigger a re‑allocation at the exact address that has just been freed, allowing read or write of kernel memory. This presents a high risk for systems that allow untrusted drivers or users with elevated privileges to load custom modules, while isolated hardened kernels would have a lower probability of exploitation.

Generated by OpenCVE AI on June 9, 2026 at 03:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version that contains the mm/zone_device folio fix and reboot the system
  • If upgrading is not possible, remove or disable any third‑party drivers that allocate device folios until the kernel is patched
  • Continuously monitor kernel logs for folio‑related warnings or crashes and retain a rollback plan in case of instability

Generated by OpenCVE AI on June 9, 2026 at 03:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 09 Jun 2026 02:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Tue, 09 Jun 2026 00:15:00 +0000


Mon, 08 Jun 2026 19:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Mon, 08 Jun 2026 17:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: mm/zone_device: do not touch device folio after calling ->folio_free() The contents of a device folio can immediately change after calling ->folio_free(), as the folio may be reallocated by a driver with a different order. Instead of touching the folio again to extract the pgmap, use the local stack variable when calling percpu_ref_put_many().
Title mm/zone_device: do not touch device folio after calling ->folio_free()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-08T15:41:19.760Z

Reserved: 2026-05-13T15:03:33.109Z

Link: CVE-2026-46277

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-06-08T17:16:45.277

Modified: 2026-06-08T17:16:45.277

Link: CVE-2026-46277

cve-icon Redhat

Severity :

Publid Date: 2026-06-08T00:00:00Z

Links: CVE-2026-46277 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-06-09T03:30:16Z

Weaknesses