CVE-2026-53189 PUBLISHED

mm/huge_memory: update file PMD counter before folio_put()

Assigner: Linux
Reserved: 09.06.2026 Published: 25.06.2026 Updated: 25.06.2026

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().

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from fadae2953072e9005c5f1d64e1049edb043494dc to 84b3212b166b446faea27ebebb7161405ffceef9 (excl.)
  • affected from fadae2953072e9005c5f1d64e1049edb043494dc to 108963978a681c0c468d279cac2b930c27672877 (excl.)
  • affected from fadae2953072e9005c5f1d64e1049edb043494dc to 459771c9cf30f378bdbd30fc65d17f7eb931bb59 (excl.)
  • affected from fadae2953072e9005c5f1d64e1049edb043494dc to ae9d4caf6f133e884cf5fcda4982c493b35e5194 (excl.)
  • affected from fadae2953072e9005c5f1d64e1049edb043494dc to 6c29a8ba084e89499ca77b947e07ae817f9c16ce (excl.)
  • affected from fadae2953072e9005c5f1d64e1049edb043494dc to 5f5b604e1e6bde4e889199168ee80fe8306d06ad (excl.)
  • affected from fadae2953072e9005c5f1d64e1049edb043494dc to ed5b030931292c94133437ac5e5ff580e498eabd (excl.)
  • affected from fadae2953072e9005c5f1d64e1049edb043494dc to 8d878059924f12c1bc24556a92ec56add74de3c8 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.19 is affected
  • unaffected from 0 to 4.19 (excl.)
  • unaffected from 5.10.259 to 5.10.* (incl.)
  • unaffected from 5.15.210 to 5.15.* (incl.)
  • unaffected from 6.1.176 to 6.1.* (incl.)
  • unaffected from 6.6.143 to 6.6.* (incl.)
  • unaffected from 6.12.94 to 6.12.* (incl.)
  • unaffected from 6.18.36 to 6.18.* (incl.)
  • unaffected from 7.0.13 to 7.0.* (incl.)
  • unaffected from 7.1 to * (incl.)

References