CVE-2024-44963btrfs: do not BUG_ON() when freeing tree block after error
- 5.5MediumCVSS base score
- 0.24%Exploitation in 30 daysEPSS · top 85% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Linux
- 14 days later
· 14 days later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.24% · top 85% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected fb235dc06fac9eaa4408ade9c8b20d45d63c89b7 – < bfcef12f80b3a9bd6b09c7305679164e3307328a
- affected fb235dc06fac9eaa4408ade9c8b20d45d63c89b7 – < 22d907bcd283d69d5e60497fc0d51969545c583b
- affected fb235dc06fac9eaa4408ade9c8b20d45d63c89b7 – < 98251cd60b4d702a8a81de442ab621e83a3fb24f
- affected fb235dc06fac9eaa4408ade9c8b20d45d63c89b7 – < bb3868033a4cccff7be57e9145f2117cbdc91c11
- affected 4.11
- unaffected < 4.11
- unaffected 6.1.191 – ≤ 6.1.*
- unaffected 6.6.64 – ≤ 6.6.*
- unaffected 6.10.5 – ≤ 6.10.*
- unaffected 6.11 – ≤ *
References
References4
- https://git.kernel.org/stable/c/bfcef12f80b3a9bd6b09c7305679164e3307328a (opens in a new tab)
- https://git.kernel.org/stable/c/22d907bcd283d69d5e60497fc0d51969545c583b (opens in a new tab)
- https://git.kernel.org/stable/c/98251cd60b4d702a8a81de442ab621e83a3fb24f (opens in a new tab)
- https://git.kernel.org/stable/c/bb3868033a4cccff7be57e9145f2117cbdc91c11 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-41166 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-44963)Record last updated .