Linux NBD Driver Flaw Exposes Uninitialized Kernel Memory State
Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Sep 24, 2024

CVE-2024-26638 is a low-severity flaw in the Linux kernel's Network Block Device (NBD) driver, introduced in kernel version 5.19. Incomplete initialization of a struct msghdr in the NBD reply-receive path can expose the uninitialized msg_get_inq field during tcp_recvmsg processing, triggering a KMSAN uninitialized-value error and affecting system availability. Exploitation requires local access and high privileges; Red Hat assigns a CVSS 3.1 score of 4.4.
The upstream issue is fixed in Linux 6.1.76, 6.6.15, 6.7.3, 6.8, and later stable releases. Red Hat has issued fixes for affected Red Hat Enterprise Linux 8, RHEL 9, and RHEL 9.4 Extended Update Support packages, while RHEL 8 and RHEL 9 real-time kernels remain affected; unsupported RHEL 6 and 7 variants should be considered potentially affected. Organizations should update to vendor-supported current kernel releases rather than cherry-picking the individual upstream patch.
Why it matters
Impact assessment
CVE-2024-26638 affects Linux hosts running kernels derived from version 5.19 or later where the Network Block Device (NBD) driver is enabled and used. The practical impact is local denial of service or system instability; Red Hat scores confidentiality and integrity impact as none, but availability impact as high.
- Affected populations: Linux servers, storage infrastructure, virtualization platforms, and appliances using NBD-backed block devices.
- Exploitation prerequisites: local access and high privileges. No user interaction is required.
- Severity: CVSS v3.1 4.4 (Low), driven by the privileged-local attack requirement despite potential high availability impact.
- Scope: limited to systems exposing and using the affected NBD receive path; this is not a remote network-accessible vulnerability by itself.
- Known exploitation: no exploitation in the wild is reported in the supplied references.
- RHEL status: standard RHEL 8, RHEL 9, and RHEL 9.4 EUS kernels have fixes available. RHEL 8 kernel-rt and RHEL 9 kernel-rt remain listed as affected. Unsupported RHEL 6 and RHEL 7 kernel variants should be treated as potentially affected.
Supporting facts
- The flaw is CWE-456, Missing Initialization of a Variable.
- The affected component is the Linux NBD driver in
drivers/block/nbd.c. - The vulnerable behavior can expose an uninitialized kernel-memory state and trigger a Kernel Memory Sanitizer (KMSAN) error during TCP receive processing.


