---
id: CVE-2024-35935
title: |-
  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
summary: |-
  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 pri…
severity: low
cvss: 3.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-209
vendor: linux
product: linux_kernel
affected:
  - linux_kernel < 4.19.312
  - 'linux_kernel >= 4.20, < 5.4.274'
  - 'linux_kernel >= 5.5, < 5.10.215'
  - 'linux_kernel >= 5.11, < 5.15.155'
  - 'linux_kernel >= 5.16, < 6.1.86'
  - 'linux_kernel >= 6.2, < 6.6.27'
  - 'linux_kernel >= 6.7, < 6.8.6'
  - debian_linux = 10.0
patched:
  - linux_kernel 6.8.6
published: '2024-05-19'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:17:54.033'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-35935'
references:
  - url: 'https://git.kernel.org/stable/c/024529c27c8b4b273325a169e078337c8279e229'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/03938619a1e718b6168ae4528e1b0f979293f1a5'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/2f6174fd4ccf403b42b3d5f0d1b6b496a0e5330a'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/3c6ee34c6f9cd12802326da26631232a61743501'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4720d590c4cb5d9ffa0060b89743651cc7e995f9'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/9ae356c627b493323e1433dcb27a26917668c07c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/be2b6bcc936ae17f42fff6494106a5660b35d8d3'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c1363ed8867b81ea169fba2ccc14af96a85ed183'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/024529c27c8b4b273325a169e078337c8279e229'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/03938619a1e718b6168ae4528e1b0f979293f1a5'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/2f6174fd4ccf403b42b3d5f0d1b6b496a0e5330a'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/3c6ee34c6f9cd12802326da26631232a61743501'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/4720d590c4cb5d9ffa0060b89743651cc7e995f9'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/9ae356c627b493323e1433dcb27a26917668c07c'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/be2b6bcc936ae17f42fff6494106a5660b35d8d3'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/c1363ed8867b81ea169fba2ccc14af96a85ed183'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00225
epssPercentile: 0.12278
ingestedAt: '2026-10-15T03:30:12.690Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-09-10T15:40:55.413538Z'
---

## Overview

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

- `linux_kernel < 4.19.312`
- `linux_kernel >= 4.20, < 5.4.274`
- `linux_kernel >= 5.5, < 5.10.215`
- `linux_kernel >= 5.11, < 5.15.155`
- `linux_kernel >= 5.16, < 6.1.86`
- `linux_kernel >= 6.2, < 6.6.27`
- `linux_kernel >= 6.7, < 6.8.6`
- `debian_linux = 10.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.8.6`
