# CVE-2024-46752: btrfs: replace BUG_ON() with error handling at update_ref_for_cow()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-02)
- Published: 2024-09-18T07:12:11.966Z
- Modified: 2026-06-17T07:55:51.900Z
- Weaknesses: CWE-404
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

btrfs: replace BUG_ON() with error handling at update_ref_for_cow()

Instead of a BUG_ON() just return an error, log an error message and
abort the transaction in case we find an extent buffer belonging to the
relocation tree that doesn't have the full backref flag set. This is
unexpected and should never happen (save for bugs or a potential bad
memory).

(As written by CVE List.)

## Affected

- Linux Linux: from 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0 before b50857b96429a09fd3beed9f7f21b7bb7c433688; from 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0 before 0fbac73a97286a7ec72229cb9b42d760a2c717ac; from 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0 before 41a0f85e268d72fe04f731b8ceea4748c2d65491; from 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0 before f895db00c65e5d77c437cce946da9ec29dcdf563; from 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0 before b56329a782314fde5b61058e2a25097af7ccb675; 2.6.31 (not affected: before 2.6.31; from 5.15.167 up to 5.15.*; from 6.1.110 up to 6.1.*; from 6.6.51 up to 6.6.*; from 6.10.10 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: before 5.15.167; from 5.16 before 6.1.110; from 6.2 before 6.6.51; from 6.7 before 6.10.10

## References

- <https://git.kernel.org/stable/c/b50857b96429a09fd3beed9f7f21b7bb7c433688> (patch)
- <https://git.kernel.org/stable/c/0fbac73a97286a7ec72229cb9b42d760a2c717ac> (patch)
- <https://git.kernel.org/stable/c/41a0f85e268d72fe04f731b8ceea4748c2d65491> (patch)
- <https://git.kernel.org/stable/c/f895db00c65e5d77c437cce946da9ec29dcdf563> (patch)
- <https://git.kernel.org/stable/c/b56329a782314fde5b61058e2a25097af7ccb675> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-46752](https://www.cve.org/CVERecord?id=CVE-2024-46752), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-46752](https://nvd.nist.gov/vuln/detail/CVE-2024-46752), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-46752 · Whole record: https://cve.day/CVE-2024-46752.json · Rebuilt by cve.day 2026-11-25T22:58:45.555Z
