CVE-2024-26791

Source
https://cve.org/CVERecord?id=CVE-2024-26791
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-26791.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-26791
Downstream
Related
Published
2024-04-04T08:20:22.374Z
Modified
2026-03-20T12:35:13.653498Z
Summary
btrfs: dev-replace: properly validate device names
Details

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

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26791.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e93c89c1aaaaaec3487c4c18dd02360371790722
Fixed
11d7a2e429c02d51e2dc90713823ea8b8d3d3a84
Fixed
c6652e20d7d783d060fe5f987eac7b5cabe31311
Fixed
2886fe308a83968dde252302884a1e63351cf16d
Fixed
ab2d68655d0f04650bef09fee948ff80597c5fb9
Fixed
f590040ce2b712177306b03c2a63b16f7d48d3c8
Fixed
b1690ced4d2d8b28868811fb81cd33eee5aefee1
Fixed
343eecb4ff49a7b1cc1dfe86958a805cf2341cfb
Fixed
9845664b9ee47ce7ee7ea93caf47d39a9d4552c4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-26791.json"