# CVE-2024-46751: btrfs: don't BUG\_ON() when 0 reference count at btrfs\_lookup\_extent\_info()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **Published:** 2024-09-18T07:12:11.240Z
- **Modified:** 2026-08-05T11:38:21.347Z

## Who should check

- Anyone running Linux \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< 9c309d2434abbe880712af7e60da9ead8b6703fe; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< d64807ded1b6054f066e03d8add6d920f3db9e5d; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< 18eb53a2734ff61b9a72c4fef5db7b38cb48ae16; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< 3cfec712a439c5c5f5c718c5c669ee41a898f776; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< ef9a8b73c8b60b27d9db4787e624a3438ffe8428; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< 28cb13f29faf6290597b24b728dc3100c019356f
- Anyone running Linux 2.6.31

## Description

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

btrfs: don't BUG\_ON() when 0 reference count at btrfs\_lookup\_extent\_info()

Instead of doing a BUG\_ON() handle the error by returning -EUCLEAN,
aborting the transaction and logging an error message.

## Affected and fixed versions

- Linux: \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< 9c309d2434abbe880712af7e60da9ead8b6703fe; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< d64807ded1b6054f066e03d8add6d920f3db9e5d; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< 18eb53a2734ff61b9a72c4fef5db7b38cb48ae16; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< 3cfec712a439c5c5f5c718c5c669ee41a898f776; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< ef9a8b73c8b60b27d9db4787e624a3438ffe8428; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< 28cb13f29faf6290597b24b728dc3100c019356f (cvelist)
- Linux: 2.6.31 (cvelist)

## Mitigation

- Upgrade Linux to 28cb13f29faf6290597b24b728dc3100c019356f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-46751. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-46751.md
Affected: Linux >= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, < 9c309d2434abbe880712af7e60da9ead8b6703fe; >= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, < d64807ded1b6054f066e03d8add6d920f3db9e5d; >= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, < 18eb53a2734ff61b9a72c4fef5db7b38cb48ae16; >= 5d4f98a28c7d334091c1b77…
Fixed in: Linux 9c309d2434abbe880712af7e60da9ead8b6703fe, Linux 18eb53a2734ff61b9a72c4fef5db7b38cb48ae16, Linux 3cfec712a439c5c5f5c718c5c669ee41a898f776, Linux 28cb13f29faf6290597b24b728dc3100c019356f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-46751 being exploited?

There is no confirmed exploitation: CVE-2024-46751 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-46751?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-46751?

Linux \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< 9c309d2434abbe880712af7e60da9ead8b6703fe; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< d64807ded1b6054f066e03d8add6d920f3db9e5d; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< 18eb53a2734ff61b9a72c4fef5db7b38cb48ae16; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< 3cfec712a439c5c5f5c718c5c669ee41a898f776; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< ef9a8b73c8b60b27d9db4787e624a3438ffe8428; \>= 5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0, \< 28cb13f29faf6290597b24b728dc3100c019356f; Linux 2.6.31.

### Is there a fix for CVE-2024-46751?

Yes. Fixed in Linux 9c309d2434abbe880712af7e60da9ead8b6703fe, Linux 18eb53a2734ff61b9a72c4fef5db7b38cb48ae16, Linux 3cfec712a439c5c5f5c718c5c669ee41a898f776, Linux 28cb13f29faf6290597b24b728dc3100c019356f. Upgrade Linux to 28cb13f29faf6290597b24b728dc3100c019356f or later.

### How do I check if I'm affected by CVE-2024-46751?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ef9a8b73c8b60b27d9db4787e624a3438ffe8428>
- patch: <https://git.kernel.org/stable/c/28cb13f29faf6290597b24b728dc3100c019356f>
- other: <https://git.kernel.org/stable/c/9c309d2434abbe880712af7e60da9ead8b6703fe>
- other: <https://git.kernel.org/stable/c/d64807ded1b6054f066e03d8add6d920f3db9e5d>
- other: <https://git.kernel.org/stable/c/18eb53a2734ff61b9a72c4fef5db7b38cb48ae16>
- other: <https://git.kernel.org/stable/c/3cfec712a439c5c5f5c718c5c669ee41a898f776>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-46751>

HTML: <https://flawdb.com/CVE-2024-46751> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-46751>
