CVE-2026-46277

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

Published Jun 8, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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().

Analysis

AI-generated

Technical 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). Additionally, the NVD has recorded this issue with a NVD‑CWE‑noinfo tag, indicating no further CWE mapping has been assigned. 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 7.8, and the EPSS score is <1%, 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.

Remediation

No solution or workaround provided in the CVE record.

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 August 12, 2026 at 04:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8488-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8489-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8488-2 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8507-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-416
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
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 5, 2026, 12:30 PM
Reserved
May 13, 2026, 3:03 PM
Status
Analyzed
Published
Jun 8, 2026, 5:16 PM
Modified
Jul 23, 2026, 7:10 AM
Severity
Public date
Jun 8, 2026, 12:00 AM