CVE-2024-50273

btrfs: reinitialize delayed ref list after deleting it from the list

7.8 high EPSS 0.29%

Published 19 Nov 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2024-50273

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-50273 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

btrfs: reinitialize delayed ref list after deleting it from the list

At insert_delayed_ref() if we need to update the action of an existing ref to BTRFS_DROP_DELAYED_REF, we delete the ref from its ref head's ref_add_list using list_del(), which leaves the ref's add_list member not reinitialized, as list_del() sets the next and prev members of the list to LIST_POISON1 and LIST_POISON2, respectively.

If later we end up calling drop_delayed_ref() against the ref, which can happen during merging or when destroying delayed refs due to a transaction abort, we can trigger a crash since at drop_delayed_ref() we call list_empty() against the ref's add_list, which returns false since the list was not reinitialized after the list_del() and as a consequence we call list_del() again at drop_delayed_ref(). This results in an invalid list access since the next and prev members are set to poison pointers, resulting in a splat if CONFIG_LIST_HARDENED and CONFIG_DEBUG_LIST are set or invalid poison pointer dereferences otherwise.

So fix this by deleting from the list with list_del_init() instead.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
5.5 medium CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.29%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 23.1% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 1 Oct 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-908 Use of Uninitialized Resource

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 1d57ee941692d0cc928526e21a1557b2ae3e11db, before 2fd0948a483e9cb2d669c7199bc620a21c97673d
affected from 1d57ee941692d0cc928526e21a1557b2ae3e11db, before 93c5b8decc0ef39ba84f4211d2db6da0a4aefbeb
affected from 1d57ee941692d0cc928526e21a1557b2ae3e11db, before bf0b0c6d159767c0d1c21f793950d78486690ee0
affected from 1d57ee941692d0cc928526e21a1557b2ae3e11db, before c24fa427fc0ae827b2a3a07f13738cbf82c3f851
affected from 1d57ee941692d0cc928526e21a1557b2ae3e11db, before 2cb1a73d1d44a1c11b0ee5eeced765dd80ec48e6
affected from 1d57ee941692d0cc928526e21a1557b2ae3e11db, before f04be6d68f715c1473a8422fc0460f57b5e99931
affected from 1d57ee941692d0cc928526e21a1557b2ae3e11db, before 50a3933760b427759afdd23156a7280a19357a92
affected from 1d57ee941692d0cc928526e21a1557b2ae3e11db, before c9a75ec45f1111ef530ab186c2a7684d0a0c9245
Other versions: unaffected
Linux
affected 4.10
unaffected before 4.10
unaffected from 4.19.324 up to and including 4.19.*
unaffected from 5.4.286 up to and including 5.4.*
unaffected from 5.10.230 up to and including 5.10.*
unaffected from 5.15.172 up to and including 5.15.*
unaffected from 6.1.117 up to and including 6.1.*
unaffected from 6.6.61 up to and including 6.6.*
unaffected from 6.11.8 up to and including 6.11.*
unaffected 6.12 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-50273 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-50273

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-50273
trivy image --scanners vuln IMAGE | grep CVE-2024-50273

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-50273 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.