---
id: CVE-2024-0340
title: 'Kernel: information disclosure in vhost/vhost.c:vhost_new_msg()'
summary: >-
  A vulnerability was found in vhost_new_msg in drivers/vhost/vhost.c in the
  Linux kernel, which does not properly initialize memory in messages passed
  between virtual guests and the host operating system in the
  vhost/vhost.c:vhost_new_msg…
severity: medium
cvss: 4.4
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-200
vendor: Red Hat
product: kernel
affected:
  - kernel < 6.4-rc6
  - kernel-rt (all versions)
  - kernel (all versions)
  - kernel (all versions)
  - kernel (all versions)
  - kernel (all versions)
  - kernel (all versions)
  - kernel (all versions)
  - kernel-rt (all versions)
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-01-09T19:24:12.513121Z'
published: '2024-01-09'
updated: '2026-10-29'
sourceUpdated: '2026-10-29T07:23:10.649Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2024-0340'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2024:3618'
    label: 'RHSA-2024:3618'
  - url: 'https://access.redhat.com/errata/RHSA-2024:3627'
    label: 'RHSA-2024:3627'
  - url: 'https://access.redhat.com/errata/RHSA-2024:9315'
    label: 'RHSA-2024:9315'
  - url: 'https://access.redhat.com/errata/RHSA-2025:7526'
    label: 'RHSA-2025:7526'
  - url: 'https://access.redhat.com/security/cve/CVE-2024-0340'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2257406'
    label: RHBZ#2257406
  - url: >-
      https://lore.kernel.org/lkml/5kn47peabxjrptkqa6dwtyus35ahf4pcj4qm4pumse33kxqpjw@mec4se5relrc/T/
tags:
  - cve.org
epss: 0.00235
epssPercentile: 0.14435
ingestedAt: '2026-10-31T04:17:25.422Z'
---

## Overview

A vulnerability was found in vhost_new_msg in drivers/vhost/vhost.c in the Linux kernel, which does not properly initialize memory in messages passed between virtual guests and the host operating system in the vhost/vhost.c:vhost_new_msg() function. This issue can allow local privileged users to read some kernel memory contents when reading from the /dev/vhost-net device file.

## Affected

- `kernel < 6.4-rc6`
- `kernel-rt (all versions)`
- `kernel (all versions)`
- `kernel (all versions)`
- `kernel (all versions)`
- `kernel (all versions)`
- `kernel (all versions)`
- `kernel (all versions)`
- `kernel-rt (all versions)`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
