Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisoryprivilege-escalation-method

Linux NBD Driver Flaw Exposes Uninitialized Kernel Memory State

Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Sep 24, 2024

Linux NBD Driver Flaw Exposes Uninitialized Kernel Memory State

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.
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

5 events · Sep 24, 2024
  1. Reported Sep 24, 20242y ago

    Red Hat releases RHEL 9.4 EUS kernel fix

    Red Hat released RHSA-2025:9584, providing a fixed RHEL 9.4 Extended Update Support kernel package for CVE-2024-26638.

    CVE-2024-26638 - Red Hat Customer Portal
  2. Reported Sep 24, 20242y ago

    Red Hat releases RHEL 9 kernel fix

    Red Hat released RHSA-2024:9315, providing a fixed RHEL 9 kernel package for CVE-2024-26638.

    CVE-2024-26638 - Red Hat Customer Portal
  3. Sep 24, 20242y ago

    Red Hat releases RHEL 8 kernel fix

    Red Hat released RHSA-2024:7000, providing a fixed RHEL 8 kernel package for CVE-2024-26638.

    CVE-2024-26638 - Red Hat Customer Portal
  4. Reported Mar 18, 20243y ago

    Linux kernel fixes CVE-2024-26638 in stable releases

    The Linux kernel CVE team documented fixes for the NBD flaw in Linux 6.1.76, 6.6.15, 6.7.3, and 6.8, which completely initialize struct msghdr. The team advised users to update to a current stable kernel release rather than cherry-pick individual commits.

    CVE-2024-26638: nbd: always initialize struct msghdr completely
  5. Reported Mar 18, 20243y ago

    NBD msghdr initialization flaw introduced in Linux 5.19

    A commit in Linux kernel 5.19 introduced incomplete initialization of struct msghdr in the NBD driver, allowing msg_get_inq to remain uninitialized during NBD reply reception.

    CVE-2024-26638: nbd: always initialize struct msghdr completely
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Organizations

1 linked
Linux
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.