{"id":"CVE-2025-71295","aliases":["CVE-2025-71295"],"related":[],"kind":"vulnerability","state":"published","title":"fs/buffer: add alert in try_to_free_buffers() for folios without buffers","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/buffer: add alert in try_to_free_buffers() for folios without buffers\n\ntry_to_free_buffers() can be called on folios with no buffers attached\nwhen filemap_release_folio() is invoked on a folio belonging to a mapping\nwith AS_RELEASE_ALWAYS set but no release_folio operation defined.\n\nIn such cases, folio_needs_release() returns true because of the\nAS_RELEASE_ALWAYS flag, but the folio has no private buffer data. This\ncauses try_to_free_buffers() to call drop_buffers() on a folio with no\nbuffers, leading to a null pointer dereference.\n\nAdding a check in try_to_free_buffers() to return early if the folio has no\nbuffers attached, with WARN_ON_ONCE() to alert about the misconfiguration.\nThis provides defensive hardening.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/buffer: add alert in try_to_free_buffers() for folios without buffers\n\ntry_to_free_buffers() can be called on folios with no buffers attached\nwhen filemap_release_folio() is invoked on a folio belonging to a mapping\nwith AS_RELEASE_ALWAYS set but no release_folio operation defined.\n\nIn such cases, folio_needs_release() returns true because of the\nAS_RELEASE_ALWAYS flag, but the folio has no private buffer data. This\ncauses try_to_free_buffers() to call drop_buffers() on a folio with no\nbuffers, leading to a null pointer dereference.\n\nAdding a check in try_to_free_buffers() to return early if the folio has no\nbuffers attached, with WARN_ON_ONCE() to alert about the misconfiguration.\nThis provides defensive hardening.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nfs/buffer: añadir alerta en try_to_free_buffers() para folios sin búferes\n\ntry_to_free_buffers() puede ser llamada en folios sin búferes adjuntos cuando filemap_release_folio() es invocada en un folio perteneciente a un mapeo con AS_RELEASE_ALWAYS establecido pero sin operación release_folio definida.\n\nEn tales casos, folio_needs_release() devuelve verdadero debido a la bandera AS_RELEASE_ALWAYS, pero el folio no tiene datos de búfer privados. Esto causa que try_to_free_buffers() llame a drop_buffers() en un folio sin búferes, lo que lleva a una desreferencia de puntero nulo.\n\nAñadiendo una comprobación en try_to_free_buffers() para retornar anticipadamente si el folio no tiene búferes adjuntos, con WARN_ON_ONCE() para alertar sobre la mala configuración. Esto proporciona un endurecimiento defensivo.","source":"nvd"}],"published":"2026-05-06T11:32:25.917Z","modified":"2026-11-05T22:17:40.543Z","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":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"d0eafc763135508be118dac208887a26c0adb74d","fixed":"1b111a69a6e33a922622bf9870e4e63fb2b649c8","status":"affected"},{"type":"git","introduced":"b4fa966f03b7401ceacd4ffd7227197afb2b8376","fixed":"c1b6227555c52781178132b7a06466711855795c","status":"affected"},{"type":"git","introduced":"b4fa966f03b7401ceacd4ffd7227197afb2b8376","fixed":"727e5140e0cf83b4ce6a11b89bb73bff5d96f8f3","status":"affected"},{"type":"git","introduced":"b4fa966f03b7401ceacd4ffd7227197afb2b8376","fixed":"42c32d7571ccd8ef32351cac506f00b0fae99fd2","status":"affected"},{"type":"git","introduced":"b4fa966f03b7401ceacd4ffd7227197afb2b8376","fixed":"c6246ca15999053d2632fbcc7b86e6eef7f077cb","status":"affected"},{"type":"git","introduced":"b4fa966f03b7401ceacd4ffd7227197afb2b8376","fixed":"b68f91ef3b3fe82ad78c417de71b675699a8467c","status":"affected"},{"type":"semver","introduced":"6.1.72","fixed":"6.1.165","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.1.165","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.128","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","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.1.72","fixed":"6.1.165"},{"status":"affected","introduced":"6.2","fixed":"6.6.128"},{"status":"affected","introduced":"6.7","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/1b111a69a6e33a922622bf9870e4e63fb2b649c8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c1b6227555c52781178132b7a06466711855795c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/727e5140e0cf83b4ce6a11b89bb73bff5d96f8f3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/42c32d7571ccd8ef32351cac506f00b0fae99fd2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c6246ca15999053d2632fbcc7b86e6eef7f077cb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b68f91ef3b3fe82ad78c417de71b675699a8467c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:16:40.207Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71295","url":"https://www.cve.org/CVERecord?id=CVE-2025-71295","licence":"CVE Terms of Use","modified":"2026-11-05T21:23:11.993Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71295","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71295","licence":"Public domain","modified":"2026-11-05T22:17:40.543Z"}],"updatedAt":"2026-11-25T22:59:12.142Z","epss":{"score":0.00123,"percentile":0.02243,"date":"2026-12-01T12:00:22.000Z"}}