mm/huge_memory: update file PMD counter before folio_put()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fadae2953072e9005c5f1d64e1049edb043494dc · < 5f5b604e1e6bde4e889199168ee80fe8306d06ad| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mm/huge_memory: update file PMD counter before folio_put()
__split_huge_pmd_locked() updates the file/shmem RSS counter after dropping the PMD mapping's folio reference. If folio_put() drops the last reference, mm_counter_file() can later read freed folio state via folio_test_swapbacked().
Move the counter update before folio_put().
From the CVE record · Linux
The Linux kernel updates a file/shmem RSS counter after dropping a PMD mapping’s folio reference. If that was the last reference, the counter update can read freed folio state. The input does not specify how an attacker could trigger this or whether authentication or user interaction is required.
Engineers running the Linux kernel should check their deployments; affected versions were not provided.