CVE-2024-26791

btrfs: dev-replace: properly validate device names

HIGH
7.1
CVSS Score
Published: April 4, 2024 at 08:20 AM UTC
Updated: June 17, 2026 at 07:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: dev-replace: properly validate device names There's a syzbot report that device name buffers passed to device replace are not properly checked for string termination which could lead to a read out of bounds in getname_kernel(). Add a helper that validates both source and target device name buffers. For devid as the source initialize the buffer to empty string in case something tries to read it later. This was originally analyzed and fixed in a different way by Edward Adam Davis (see links).

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.19.3093.8 ≤ v < 4.19.3093.8 ≤ v < 5.10.2123.8 ≤ v < 5.15.1513.8 ≤ v < 5.4.2713.8 ≤ v < 6.1.813.8 ≤ v < 6.6.213.8 ≤ v < 6.7.93.8 ≤ v < 6.84.20 ≤ v < 5.4.2715.11 ≤ v < 5.15.1515.16 ≤ v < 6.1.815.5 ≤ v < 5.10.2126.2 ≤ v < 6.6.216.7 ≤ v < 6.7.96.8 rc16.8 rc26.8 rc36.8 rc46.8 rc56.8 rc6e93c89c1aaaaaec3487c4c18dd02360371790722
Vendor states this is fixed in 11d7a2e429c02d51e2dc90713823ea8b8d3d3a84 (fixed)
Vendor states this is fixed in 2886fe308a83968dde252302884a1e63351cf16d (fixed)
Vendor states this is fixed in 343eecb4ff49a7b1cc1dfe86958a805cf2341cfb (fixed)
Vendor states this is fixed in 9845664b9ee47ce7ee7ea93caf47d39a9d4552c4 (fixed)
Vendor states this is fixed in ab2d68655d0f04650bef09fee948ff80597c5fb9 (fixed)
Vendor states this is fixed in b1690ced4d2d8b28868811fb81cd33eee5aefee1 (fixed)
Vendor states this is fixed in c6652e20d7d783d060fe5f987eac7b5cabe31311 (fixed)
Vendor states this is fixed in f590040ce2b712177306b03c2a63b16f7d48d3c8 (fixed)
Vendor states this is fixed in 3.8 (unaffected)
Vendor states this is fixed in 4.19.309 (unaffected)
Vendor states this is fixed in 5.10.212 (unaffected)
Vendor states this is fixed in 5.15.151 (unaffected)
Vendor states this is fixed in 5.4.271 (unaffected)
Vendor states this is fixed in 6.1.81 (unaffected)
Vendor states this is fixed in 6.6.21 (unaffected)
Vendor states this is fixed in 6.7.9 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/11d7a2e429c02d51e2dc90713823ea8b8d3d3a84
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2886fe308a83968dde252302884a1e63351cf16d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/343eecb4ff49a7b1cc1dfe86958a805cf2341cfb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9845664b9ee47ce7ee7ea93caf47d39a9d4552c4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ab2d68655d0f04650bef09fee948ff80597c5fb9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b1690ced4d2d8b28868811fb81cd33eee5aefee1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c6652e20d7d783d060fe5f987eac7b5cabe31311
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f590040ce2b712177306b03c2a63b16f7d48d3c8

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card