{"id":"CVE-2026-43389","aliases":["CVE-2026-43389"],"related":[],"kind":"vulnerability","state":"published","title":"mm: memfd_luo: always dirty all folios","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: memfd_luo: always dirty all folios\n\nA dirty folio is one which has been written to.  A clean folio is its\nopposite.  Since a clean folio has no user data, it can be freed under\nmemory pressure.\n\nmemfd preservation with LUO saves the flag at preserve().  This is\nproblematic.  The folio might get dirtied later.  Saving it at freeze()\nalso doesn't work, since the dirty bit from PTE is normally synced at\nunmap and there might still be mappings of the file at freeze().\n\nTo see why this is a problem, say a folio is clean at preserve, but gets\ndirtied later.  The serialized state of the folio will mark it as clean. \nAfter retrieve, the next kernel will see the folio as clean and might try\nto reclaim it under memory pressure.  This will result in losing user\ndata.\n\nMark all folios of the file as dirty, and always set the\nMEMFD_LUO_FOLIO_DIRTY flag.  This comes with the side effect of making all\nclean folios un-reclaimable.  This is a cost that has to be paid for\nparticipants of live update.  It is not expected to be a common use case\nto preserve a lot of clean folios anyway.\n\nSince the value of pfolio->flags is a constant now, drop the flags\nvariable and set it directly.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: memfd_luo: always dirty all folios\n\nA dirty folio is one which has been written to.  A clean folio is its\nopposite.  Since a clean folio has no user data, it can be freed under\nmemory pressure.\n\nmemfd preservation with LUO saves the flag at preserve().  This is\nproblematic.  The folio might get dirtied later.  Saving it at freeze()\nalso doesn't work, since the dirty bit from PTE is normally synced at\nunmap and there might still be mappings of the file at freeze().\n\nTo see why this is a problem, say a folio is clean at preserve, but gets\ndirtied later.  The serialized state of the folio will mark it as clean. \nAfter retrieve, the next kernel will see the folio as clean and might try\nto reclaim it under memory pressure.  This will result in losing user\ndata.\n\nMark all folios of the file as dirty, and always set the\nMEMFD_LUO_FOLIO_DIRTY flag.  This comes with the side effect of making all\nclean folios un-reclaimable.  This is a cost that has to be paid for\nparticipants of live update.  It is not expected to be a common use case\nto preserve a lot of clean folios anyway.\n\nSince the value of pfolio->flags is a constant now, drop the flags\nvariable and set it directly.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmm: memfd_luo: ensuciar siempre todos los folios\n\nUn folio sucio es aquel al que se le ha escrito. Un folio limpio es su opuesto. Dado que un folio limpio no tiene datos de usuario, puede ser liberado bajo presión de memoria.\n\nLa preservación de memfd con LUO guarda el indicador en preserve(). Esto es problemático. El folio podría ensuciarse más tarde. Guardarlo en freeze() tampoco funciona, ya que el bit de sucio del PTE se sincroniza normalmente al desmapear y aún podría haber mapeos del archivo en freeze().\n\nPara ver por qué esto es un problema, digamos que un folio está limpio en preserve, pero se ensucia más tarde. El estado serializado del folio lo marcará como limpio. Después de retrieve, el siguiente kernel verá el folio como limpio y podría intentar reclamarlo bajo presión de memoria. Esto resultará en la pérdida de datos de usuario.\n\nMarcar todos los folios del archivo como sucios, y establecer siempre el indicador MEMFD_LUO_FOLIO_DIRTY. Esto viene con el efecto secundario de hacer que todos los folios limpios no sean reclamables. Este es un costo que debe ser pagado por los participantes de la actualización en vivo. No se espera que sea un caso de uso común preservar muchos folios limpios de todos modos.\n\nDado que el valor de pfolio  ->  flags es una constante ahora, eliminar la variable flags y establecerla directamente.","source":"nvd"}],"published":"2026-05-08T14:21:34.658Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b3749f174d686627f702234e64bad976dc432dbc","fixed":"e901c871d4b592f0042e30f3a0f031eae79744ec","status":"affected"},{"type":"git","introduced":"b3749f174d686627f702234e64bad976dc432dbc","fixed":"7e04bf1f33151a30e06a65b74b5f2c19fc2be128","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"6.19.9","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.19","fixed":"6.19.9"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e901c871d4b592f0042e30f3a0f031eae79744ec","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e04bf1f33151a30e06a65b74b5f2c19fc2be128","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43389","url":"https://www.cve.org/CVERecord?id=CVE-2026-43389","licence":"CVE Terms of Use","modified":"2026-05-11T22:23:38.437Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43389","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43389","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:21.042Z","epss":{"score":0.00107,"percentile":0.01259,"date":"2026-12-02T12:00:21.000Z"}}