CVE-2024-26791
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-26791 affects the Linux kernel's btrfs filesystem device replacement functionality. The vulnerability was discovered when a syzbot report identified that device name buffers passed to device replace were not properly checked for string termination, which could lead to a read out of bounds in getname_kernel(). This issue was disclosed on April 4, 2024, and affects Linux kernel versions up to (excluding) 4.19.309, 5.4.271, 5.10.212, 5.15.151, and various other versions (NVD).

Technical details

The vulnerability exists in the btrfs device replacement functionality where device name buffers lack proper validation for string termination. The issue has been assigned a CVSS v3.1 base score of 7.1 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H. The vulnerability is classified as CWE-125 (Out-of-bounds Read) (NVD).

Impact

The vulnerability could allow an attacker to perform an out-of-bounds read in the getname_kernel() function, potentially leading to information disclosure or system crashes. The attack requires local access and low privileges to exploit (NVD).

Exploitability

The vulnerability requires local access with low privileges to exploit. It was initially discovered through syzbot testing and has been confirmed with a proof-of-concept test case (Kernel Patch).

Mitigation and workarounds

The issue has been fixed by adding a helper function that validates both source and target device name buffers. For device ID as the source, the buffer is initialized to an empty string. The fix has been implemented in various kernel versions and is available through distribution updates (Ubuntu Security, Debian LTS).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64597CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • linux-aws-5.4
NoYesAug 06, 2026
CVE-2026-68480HIGH8.8
  • Linux Kernel logoLinux Kernel
  • kernel-modules-partner
NoYesAug 06, 2026
CVE-2026-64598HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.8
NoYesAug 06, 2026
CVE-2026-64604HIGH7.7
  • Linux Kernel logoLinux Kernel
  • linux-riscv-5.15
NoYesAug 06, 2026
CVE-2026-64603NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-intel-iotg-5.15
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management