The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-0340

CVE-2024-0340: Linux Kernel Information Disclosure Flaw

CVE-2024-0340 is an information disclosure vulnerability in the Linux Kernel vhost driver that allows privileged local users to read kernel memory. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-0340 Overview

A memory information disclosure vulnerability exists in the Linux kernel's vhost driver, specifically in the vhost_new_msg() function located in drivers/vhost/vhost.c. The vulnerability stems from improper memory initialization when passing messages between virtual guests and the host operating system. This flaw allows local privileged users to potentially read sensitive kernel memory contents by reading from the /dev/vhost-net device file.

Critical Impact

Local privileged attackers can exploit this uninitialized memory vulnerability to leak sensitive kernel memory contents, potentially exposing cryptographic keys, credentials, or other security-critical data stored in kernel memory.

Affected Products

  • Linux Kernel (versions prior to the fix)
  • Linux Kernel 6.4-rc1 through 6.4-rc5
  • Systems utilizing vhost-net virtualization

Discovery Timeline

  • January 9, 2024 - CVE-2024-0340 published to NVD
  • May 14, 2025 - Last updated in NVD database

Technical Details for CVE-2024-0340

Vulnerability Analysis

This vulnerability is classified as an information disclosure issue (CWE-200) caused by uninitialized memory use. The vhost_new_msg() function in the vhost driver fails to properly initialize memory structures before they are used to pass messages between virtual machine guests and the host operating system. When a privileged local user reads from the /dev/vhost-net device file, portions of kernel memory that were not properly zeroed may be exposed, leading to information leakage.

The vhost subsystem is a critical component in Linux kernel virtualization, providing high-performance backend implementations for virtio devices. The vhost-net driver specifically handles network I/O for virtual machines, making this vulnerability particularly relevant for virtualization environments and container platforms.

Root Cause

The root cause is improper memory initialization in the vhost_new_msg() function. When allocating or reusing memory structures for inter-process communication between the guest and host, the function does not ensure that all memory regions are properly zeroed or initialized before use. This leaves residual data from previous kernel operations accessible to the reader.

Attack Vector

The attack requires local access with elevated privileges. An attacker with access to read from /dev/vhost-net can exploit this vulnerability by:

  1. Opening the /dev/vhost-net device file with appropriate permissions
  2. Performing read operations on the device
  3. Analyzing the returned data for uninitialized memory regions containing kernel memory contents

The vulnerability mechanism involves the improper initialization of message structures in the vhost driver. When vhost_new_msg() prepares messages for communication between the host and guest systems, it fails to zero out memory buffers before populating them with new data. This allows kernel memory contents from previous operations to leak through read operations on the /dev/vhost-net device. For detailed technical analysis, refer to the Kernel Mailing List Discussion.

Detection Methods for CVE-2024-0340

Indicators of Compromise

  • Unusual read activity on /dev/vhost-net device file
  • Processes with elevated privileges repeatedly accessing vhost device files
  • Anomalous memory access patterns in virtualization-related kernel modules
  • Unexpected data exfiltration attempts from hosts running virtual machines

Detection Strategies

  • Monitor file access to /dev/vhost-net using auditd or similar kernel auditing tools
  • Implement syscall monitoring for read operations targeting vhost device files
  • Deploy endpoint detection solutions capable of identifying suspicious kernel memory access patterns
  • Review system logs for processes with unusual vhost device interactions

Monitoring Recommendations

  • Enable kernel auditing for vhost-related device file access with rules targeting /dev/vhost-net
  • Configure SIEM alerts for repeated read operations on virtualization device files from non-standard processes
  • Monitor process behavior for data exfiltration patterns following vhost device access
  • Implement file integrity monitoring on kernel modules related to vhost subsystem

How to Mitigate CVE-2024-0340

Immediate Actions Required

  • Apply the latest kernel patches from your Linux distribution vendor
  • Review and restrict access permissions to /dev/vhost-net device files
  • Audit systems for unauthorized privileged access to virtualization components
  • Consider isolating affected virtualization hosts until patches are applied

Patch Information

Security patches addressing this vulnerability are available from multiple vendors. Red Hat has released patches in RHSA-2024:3618, RHSA-2024:3627, and RHSA-2024:9315. Debian has also provided updates as documented in the Debian LTS Announcements. Consult the Red Hat Bugzilla Report #2257406 for additional tracking information.

Workarounds

  • Restrict access to /dev/vhost-net to only essential processes and users
  • Implement strict access control policies using SELinux or AppArmor to limit vhost device access
  • Monitor and audit all privileged access to virtualization subsystems
  • Consider disabling vhost-net if not required for your virtualization workloads
bash
# Restrict access to vhost-net device
chmod 600 /dev/vhost-net
chown root:root /dev/vhost-net

# Add audit rule for vhost device access monitoring
auditctl -w /dev/vhost-net -p r -k vhost_access

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-200

  • NVD-CWE-noinfo
  • Technical References
  • Red Hat Security Advisory RHSA-2024:3618

  • Red Hat Security Advisory RHSA-2024:3627

  • Red Hat Security Advisory RHSA-2024:9315

  • Red Hat Security Advisory RHSA-2025:7526

  • Red Hat CVE Details CVE-2024-0340

  • Debian LTS Announcement June 2024 #17

  • Debian LTS Announcement June 2024 #20
  • Vendor Resources
  • Red Hat Bugzilla Report #2257406

  • Kernel Mailing List Discussion
  • Related CVEs
  • CVE-2026-23430: Linux Kernel Memory Leak Vulnerability

  • CVE-2026-23465: Linux Kernel Btrfs Logging Vulnerability

  • CVE-2026-23421: Linux Kernel Information Disclosure Flaw

  • CVE-2026-23303: Linux Kernel Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English