CVE-2024-44963
btrfs: do not BUG_ON() when freeing tree block after error
Check your servers for CVE-2024-44963
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-44963 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
btrfs: do not BUG_ON() when freeing tree block after error
When freeing a tree block, at btrfs_free_tree_block(), if we fail to create a delayed reference we don't deal with the error and just do a BUG_ON(). The error most likely to happen is -ENOMEM, and we have a comment mentioning that only -ENOMEM can happen, but that is not true, because in case qgroups are enabled any error returned from btrfs_qgroup_trace_extent_post() (can be -EUCLEAN or anything returned from btrfs_search_slot() for example) can be propagated back to btrfs_free_tree_block().
So stop doing a BUG_ON() and return the error to the callers and make them abort the transaction to prevent leaking space. Syzbot was triggering this, likely due to memory allocation failure injection.
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- 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
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from fb235dc06fac9eaa4408ade9c8b20d45d63c89b7, before bfcef12f80b3a9bd6b09c7305679164e3307328a affected from fb235dc06fac9eaa4408ade9c8b20d45d63c89b7, before 22d907bcd283d69d5e60497fc0d51969545c583b affected from fb235dc06fac9eaa4408ade9c8b20d45d63c89b7, before 98251cd60b4d702a8a81de442ab621e83a3fb24f affected from fb235dc06fac9eaa4408ade9c8b20d45d63c89b7, before bb3868033a4cccff7be57e9145f2117cbdc91c11
Other versions: unaffected
|
| Linux |
affected 4.11 unaffected before 4.11 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.64 up to and including 6.6.* unaffected from 6.10.5 up to and including 6.10.* unaffected 6.11 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-44963 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-44963
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-44963
trivy image --scanners vuln IMAGE | grep CVE-2024-44963
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
- https://git.kernel.org/stable/c/bfcef12f80b3a9bd6b09c7305679164e3307328a git.kernel.org
- https://git.kernel.org/stable/c/22d907bcd283d69d5e60497fc0d51969545c583b git.kernel.org
- https://git.kernel.org/stable/c/98251cd60b4d702a8a81de442ab621e83a3fb24f git.kernel.org
- https://git.kernel.org/stable/c/bb3868033a4cccff7be57e9145f2117cbdc91c11 git.kernel.org
Source: the record CVE-2024-44963 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse