mm/zone_device: do not touch device folio after calling ->folio_free()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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().
From the CVE record · Linux
The Linux kernel's mm/zone_device code can access a device folio after calling ->folio_free(), when a driver may already have reallocated it with a different order. The input does not specify what an attacker could achieve or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels should check their versions against the vendor advisory; affected versions are not specified.