Linux
mm/huge_memory: update file PMD counter before folio_put()
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().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= fadae2953072e9005c5f1d64e1049edb043494dc, < 84b3212b166b446faea27ebebb7161405ffceef9
- >= fadae2953072e9005c5f1d64e1049edb043494dc, < 108963978a681c0c468d279cac2b930c27672877
- >= fadae2953072e9005c5f1d64e1049edb043494dc, < 459771c9cf30f378bdbd30fc65d17f7eb931bb59
- >= fadae2953072e9005c5f1d64e1049edb043494dc, < ae9d4caf6f133e884cf5fcda4982c493b35e5194
- >= fadae2953072e9005c5f1d64e1049edb043494dc, < 6c29a8ba084e89499ca77b947e07ae817f9c16ce
- >= fadae2953072e9005c5f1d64e1049edb043494dc, < 5f5b604e1e6bde4e889199168ee80fe8306d06ad
- >= fadae2953072e9005c5f1d64e1049edb043494dc, < ed5b030931292c94133437ac5e5ff580e498eabd
- >= fadae2953072e9005c5f1d64e1049edb043494dc, < 8d878059924f12c1bc24556a92ec56add74de3c8
Fixed in 84b3212b166b446faea27ebebb7161405ffceef9, 108963978a681c0c468d279cac2b930c27672877, 459771c9cf30f378bdbd30fc65d17f7eb931bb59, ae9d4caf6f133e884cf5fcda4982c493b35e5194, 6c29a8ba084e89499ca77b947e07ae817f9c16ce, 5f5b604e1e6bde4e889199168ee80fe8306d06ad, ed5b030931292c94133437ac5e5ff580e498eabd, 8d878059924f12c1bc24556a92ec56add74de3c8
- 4.19
Fixed in 0, 5.10.259, 5.15.210, 6.1.176, 6.6.143, 6.12.94, 6.18.36, 7.0.13, 7.1
Mitigation
Upgrade Linux to 84b3212b166b446faea27ebebb7161405ffceef9 or 108963978a681c0c468d279cac2b930c27672877 or 459771c9cf30f378bdbd30fc65d17f7eb931bb59 or ae9d4caf6f133e884cf5fcda4982c493b35e5194 or 6c29a8ba084e89499ca77b947e07ae817f9c16ce or 5f5b604e1e6bde4e889199168ee80fe8306d06ad or ed5b030931292c94133437ac5e5ff580e498eabd or 8d878059924f12c1bc24556a92ec56add74de3c8 or later.
Upgrade Linux to 0 or 5.10.259 or 5.15.210 or 6.1.176 or 6.6.143 or 6.12.94 or 6.18.36 or 7.0.13 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.