CVE-2024-26791

btrfs: dev-replace: properly validate device names

published April 4, 2024

CVSS
—
EPSS
0%
Percentile
15.2
In the wild
Unconfirmed
What it is

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).

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00247 · 15.2th percentile
Published
2024-04-04T08:20Z
EPSS history
Timeline
  • 04 APR 08:20Z
    btrfs: dev-replace: properly validate device names
    cvelistv5