{"id":"CVE-2024-50273","aliases":["CVE-2024-50273"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: reinitialize delayed ref list after deleting it from the list","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: reinitialize delayed ref list after deleting it from the list\n\nAt insert_delayed_ref() if we need to update the action of an existing\nref to BTRFS_DROP_DELAYED_REF, we delete the ref from its ref head's\nref_add_list using list_del(), which leaves the ref's add_list member\nnot reinitialized, as list_del() sets the next and prev members of the\nlist to LIST_POISON1 and LIST_POISON2, respectively.\n\nIf later we end up calling drop_delayed_ref() against the ref, which can\nhappen during merging or when destroying delayed refs due to a transaction\nabort, we can trigger a crash since at drop_delayed_ref() we call\nlist_empty() against the ref's add_list, which returns false since\nthe list was not reinitialized after the list_del() and as a consequence\nwe call list_del() again at drop_delayed_ref(). This results in an\ninvalid list access since the next and prev members are set to poison\npointers, resulting in a splat if CONFIG_LIST_HARDENED and\nCONFIG_DEBUG_LIST are set or invalid poison pointer dereferences\notherwise.\n\nSo fix this by deleting from the list with list_del_init() instead.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: reinitialize delayed ref list after deleting it from the list\n\nAt insert_delayed_ref() if we need to update the action of an existing\nref to BTRFS_DROP_DELAYED_REF, we delete the ref from its ref head's\nref_add_list using list_del(), which leaves the ref's add_list member\nnot reinitialized, as list_del() sets the next and prev members of the\nlist to LIST_POISON1 and LIST_POISON2, respectively.\n\nIf later we end up calling drop_delayed_ref() against the ref, which can\nhappen during merging or when destroying delayed refs due to a transaction\nabort, we can trigger a crash since at drop_delayed_ref() we call\nlist_empty() against the ref's add_list, which returns false since\nthe list was not reinitialized after the list_del() and as a consequence\nwe call list_del() again at drop_delayed_ref(). This results in an\ninvalid list access since the next and prev members are set to poison\npointers, resulting in a splat if CONFIG_LIST_HARDENED and\nCONFIG_DEBUG_LIST are set or invalid poison pointer dereferences\notherwise.\n\nSo fix this by deleting from the list with list_del_init() instead.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: btrfs: reinicializar la lista de referencias retrasadas después de eliminarla de la lista En insert_delayed_ref(), si necesitamos actualizar la acción de una referencia existente a BTRFS_DROP_DELAYED_REF, eliminamos la referencia de ref_add_list de su cabecera de referencia usando list_del(), lo que deja el miembro add_list de la referencia sin reinicializar, ya que list_del() establece los miembros siguiente y anterior de la lista en LIST_POISON1 y LIST_POISON2, respectivamente. Si más tarde terminamos llamando a drop_delayed_ref() contra la referencia, lo que puede suceder durante la fusión o al destruir referencias retrasadas debido a un aborto de transacción, podemos provocar un bloqueo ya que en drop_delayed_ref() llamamos a list_empty() contra el add_list de la referencia, que devuelve falso ya que la lista no se reinicializó después de list_del() y, como consecuencia, llamamos a list_del() nuevamente en drop_delayed_ref(). Esto da como resultado un acceso a la lista no válido ya que los miembros next y prev están configurados como punteros envenenados, lo que resulta en un splat si CONFIG_LIST_HARDENED y CONFIG_DEBUG_LIST están configurados o desreferencias de punteros envenenados no válidas en caso contrario. Así que solucione esto eliminando de la lista con list_del_init() en su lugar.","source":"nvd"}],"published":"2024-11-19T01:30:12.589Z","modified":"2026-08-05T11:42:57.250Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","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"},{"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-908"],"affected":[{"ranges":[{"type":"git","introduced":"1d57ee941692d0cc928526e21a1557b2ae3e11db","fixed":"2fd0948a483e9cb2d669c7199bc620a21c97673d","status":"affected"},{"type":"git","introduced":"1d57ee941692d0cc928526e21a1557b2ae3e11db","fixed":"93c5b8decc0ef39ba84f4211d2db6da0a4aefbeb","status":"affected"},{"type":"git","introduced":"1d57ee941692d0cc928526e21a1557b2ae3e11db","fixed":"bf0b0c6d159767c0d1c21f793950d78486690ee0","status":"affected"},{"type":"git","introduced":"1d57ee941692d0cc928526e21a1557b2ae3e11db","fixed":"c24fa427fc0ae827b2a3a07f13738cbf82c3f851","status":"affected"},{"type":"git","introduced":"1d57ee941692d0cc928526e21a1557b2ae3e11db","fixed":"2cb1a73d1d44a1c11b0ee5eeced765dd80ec48e6","status":"affected"},{"type":"git","introduced":"1d57ee941692d0cc928526e21a1557b2ae3e11db","fixed":"f04be6d68f715c1473a8422fc0460f57b5e99931","status":"affected"},{"type":"git","introduced":"1d57ee941692d0cc928526e21a1557b2ae3e11db","fixed":"50a3933760b427759afdd23156a7280a19357a92","status":"affected"},{"type":"git","introduced":"1d57ee941692d0cc928526e21a1557b2ae3e11db","fixed":"c9a75ec45f1111ef530ab186c2a7684d0a0c9245","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.10","status":"unaffected"},{"type":"semver","introduced":"4.19.324","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.286","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.230","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.172","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.117","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.61","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.8","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","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":"4.10","fixed":"4.19.324"},{"status":"affected","introduced":"4.20","fixed":"5.4.286"},{"status":"affected","introduced":"5.5","fixed":"5.10.230"},{"status":"affected","introduced":"5.11","fixed":"5.15.172"},{"status":"affected","introduced":"5.16","fixed":"6.1.117"},{"status":"affected","introduced":"6.2","fixed":"6.6.61"},{"status":"affected","introduced":"6.7","fixed":"6.11.8"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2fd0948a483e9cb2d669c7199bc620a21c97673d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/93c5b8decc0ef39ba84f4211d2db6da0a4aefbeb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bf0b0c6d159767c0d1c21f793950d78486690ee0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c24fa427fc0ae827b2a3a07f13738cbf82c3f851","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2cb1a73d1d44a1c11b0ee5eeced765dd80ec48e6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f04be6d68f715c1473a8422fc0460f57b5e99931","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/50a3933760b427759afdd23156a7280a19357a92","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c9a75ec45f1111ef530ab186c2a7684d0a0c9245","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T20:14:59.605Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50273","url":"https://www.cve.org/CVERecord?id=CVE-2024-50273","licence":"CVE Terms of Use","modified":"2026-08-05T11:42:57.250Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50273","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50273","licence":"Public domain","modified":"2026-08-04T11:21:39.270Z"}],"updatedAt":"2026-11-25T22:58:48.406Z","epss":{"score":0.0029,"percentile":0.23199,"date":"2026-12-01T12:00:22.000Z"}}