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

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

- **Severity:** LOW 3.3
- **CVSS:** 3.3 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **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.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-209
- **Published:** 2024-05-19T10:10:42.319Z
- **Modified:** 2026-10-15T01:17:54.033Z

## Who should check

- Anyone running Linux \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< be2b6bcc936ae17f42fff6494106a5660b35d8d3; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 024529c27c8b4b273325a169e078337c8279e229; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 4720d590c4cb5d9ffa0060b89743651cc7e995f9; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 2f6174fd4ccf403b42b3d5f0d1b6b496a0e5330a; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 9ae356c627b493323e1433dcb27a26917668c07c; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< c1363ed8867b81ea169fba2ccc14af96a85ed183; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 03938619a1e718b6168ae4528e1b0f979293f1a5; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 3c6ee34c6f9cd12802326da26631232a61743501
- Anyone running Linux 3.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.

## Affected and fixed versions

- Linux: \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< be2b6bcc936ae17f42fff6494106a5660b35d8d3; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 024529c27c8b4b273325a169e078337c8279e229; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 4720d590c4cb5d9ffa0060b89743651cc7e995f9; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 2f6174fd4ccf403b42b3d5f0d1b6b496a0e5330a; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 9ae356c627b493323e1433dcb27a26917668c07c; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< c1363ed8867b81ea169fba2ccc14af96a85ed183; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 03938619a1e718b6168ae4528e1b0f979293f1a5; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 3c6ee34c6f9cd12802326da26631232a61743501 (cvelist)
- Linux: 3.6 (cvelist)

## Mitigation

- Upgrade Linux to 3c6ee34c6f9cd12802326da26631232a61743501 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-35935. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35935.md
Affected: Linux >= 31db9f7c23fbf7e95026143f79645de6507b583b, < be2b6bcc936ae17f42fff6494106a5660b35d8d3; >= 31db9f7c23fbf7e95026143f79645de6507b583b, < 024529c27c8b4b273325a169e078337c8279e229; >= 31db9f7c23fbf7e95026143f79645de6507b583b, < 4720d590c4cb5d9ffa0060b89743651cc7e995f9; >= 31db9f7c23fbf7e95026143…
Fixed in: Linux 024529c27c8b4b273325a169e078337c8279e229, Linux 4720d590c4cb5d9ffa0060b89743651cc7e995f9, Linux 2f6174fd4ccf403b42b3d5f0d1b6b496a0e5330a, Linux 9ae356c627b493323e1433dcb27a26917668c07c, Linux 03938619a1e718b6168ae4528e1b0f979293f1a5, Linux 3c6ee34c6f9cd12802326da26631232a61743501

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-35935 being exploited?

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

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

Low: CVSS 3.3 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< be2b6bcc936ae17f42fff6494106a5660b35d8d3; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 024529c27c8b4b273325a169e078337c8279e229; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 4720d590c4cb5d9ffa0060b89743651cc7e995f9; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 2f6174fd4ccf403b42b3d5f0d1b6b496a0e5330a; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 9ae356c627b493323e1433dcb27a26917668c07c; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< c1363ed8867b81ea169fba2ccc14af96a85ed183; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 03938619a1e718b6168ae4528e1b0f979293f1a5; \>= 31db9f7c23fbf7e95026143f79645de6507b583b, \< 3c6ee34c6f9cd12802326da26631232a61743501; Linux 3.6.

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

Yes. Fixed in Linux 024529c27c8b4b273325a169e078337c8279e229, Linux 4720d590c4cb5d9ffa0060b89743651cc7e995f9, Linux 2f6174fd4ccf403b42b3d5f0d1b6b496a0e5330a, Linux 9ae356c627b493323e1433dcb27a26917668c07c, Linux 03938619a1e718b6168ae4528e1b0f979293f1a5, Linux 3c6ee34c6f9cd12802326da26631232a61743501. Upgrade Linux to 3c6ee34c6f9cd12802326da26631232a61743501 or later.

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

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/be2b6bcc936ae17f42fff6494106a5660b35d8d3>
- patch: <https://git.kernel.org/stable/c/024529c27c8b4b273325a169e078337c8279e229>
- patch: <https://git.kernel.org/stable/c/4720d590c4cb5d9ffa0060b89743651cc7e995f9>
- patch: <https://git.kernel.org/stable/c/2f6174fd4ccf403b42b3d5f0d1b6b496a0e5330a>
- patch: <https://git.kernel.org/stable/c/9ae356c627b493323e1433dcb27a26917668c07c>
- patch: <https://git.kernel.org/stable/c/c1363ed8867b81ea169fba2ccc14af96a85ed183>
- patch: <https://git.kernel.org/stable/c/03938619a1e718b6168ae4528e1b0f979293f1a5>
- patch: <https://git.kernel.org/stable/c/3c6ee34c6f9cd12802326da26631232a61743501>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.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-35935>

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