Linux KernelOperating system · Linux

CVE-2023-1838

HIGH · 7.1 CVSS v3.1 Published 2023-04-05
Fix available
A fix is available. Upgrade to 4.14.317 / 4.19.245 or later.
See remediation →
73/100
Remediation priority · Elevated
Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
A use-after-free flaw was found in vhost_net_set_backend in drivers/vhost/net.c in virtio network subcomponent in the Linux kernel due to a double fget. This flaw could allow a local attacker to crash the system, and could even lead to a kernel information leak problem.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

A use-after-free vulnerability in vhost_net_set_backend in drivers/vhost/net.c in the Linux kernel's virtio network subcomponent, caused by improper handling of a double fget operation. This allows a local attacker to potentially crash the system or leak kernel memory.

MitigationApply the kernel security patch for CVE-2023-1838, which corrects the double fget logic, or update to a kernel version containing the fix. In production environments, test virtio networking functionality thoroughly after applying the update.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Linux KernelOperating system
Affected:>= 4.13, < 4.14.317>= 4.15, < 4.19.245>= 4.20, < 5.4.196>= 5.5, < 5.10.118>= 5.11, < 5.15.42>= 5.16, < 5.17.10
H300sHardware / appliance
Affected:all versions
H410cHardware / appliance
Affected:all versions
H410sHardware / appliance
Affected:all versions
H500sHardware / appliance
Affected:all versions
H700sHardware / appliance
Affected:all versions

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify if vhost_net module is loaded
    Run 'lsmod | grep vhost' or 'modinfo vhost_net' to check if the vhost_net kernel module is present and loaded
    Affected if vhost_net module is loaded and kernel version falls within the affected ranges
  2. Determine the running kernel version
    Run 'uname -r' to get the kernel version, then compare against affected ranges: < 4.14.317, 4.15-4.19.245, 4.20-5.4.196, 5.5-5.10.118, 5.11-5.15.42, or 5.16-5.17.10
    Affected if Kernel version is within any of the listed vulnerable ranges
  3. Check if virtio network devices are in use
    Run 'ls /dev/vhost-net' or check for virtio network interfaces via 'ip link show' looking for virtio-related network devices
    Affected if Virtio network devices exist and kernel version is vulnerable
  4. Identify NetApp H-series storage systems
    On NetApp systems, run 'system node show' or check hardware model via 'halctl show' or similar vendor commands to determine if the system is an H300s, H410c, H410s, H500s, or H700s model
    Affected if System is a NetApp H300s, H410c, H410s, H500s, or H700s model (all versions affected)
  5. Verify vhost_net backend configuration
    Check /sys/kernel/debug/vhost/net or use 'ls -la /dev/vhost*' to see if vhost-net device nodes exist, indicating active vhost-net backend usage
    Affected if vhost_net backend is configured and kernel version is vulnerable

A system is affected if it runs a Linux kernel version within the vulnerable ranges AND uses vhost_net with virtio networking, or if it is a NetApp H300s/H410c/H410s/H500s/H700s storage system.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 4.14.317 / 4.19.245 / 5.4.196 or later
Fixed in 4.14.3174.19.2455.4.196
Interim mitigation

Apply the kernel security patch for CVE-2023-1838, which corrects the double fget logic, or update to a kernel version containing the fix. In production environments, test virtio networking functionality thoroughly after applying the update.

Recommended fix High confidence

Linux kernel >= 4.14.317, >= 4.19.245, >= 5.4.196, or >= 5.10.118 (or later stable releases)

  1. 1. Identify the currently running Linux kernel version using `uname -r`
  2. 2. Determine which kernel branch your version belongs to (4.14, 4.19, 5.4, or 5.10 series)
  3. 3. For mainline Linux kernels: upgrade to kernel version 4.14.317 or later, 4.19.245 or later, 5.4.196 or later, or 5.10.118 or later
  4. 4. For enterprise distributions (RHEL, Ubuntu, Debian, etc.): apply vendor-provided kernel security updates that include the fix for CVE-2023-1838
  5. 5. For embedded devices (H300s, H410c, H410s, H500s, H700s): contact Huawei for vendor-specific firmware updates that address this vulnerability
  6. 6. After applying the update, reboot the system to load the fixed kernel
  7. 7. Verify the fix by checking `uname -r` shows a version >= the appropriate fixed release and confirm the vulnerability is resolved with a kernel panic test or log inspection
Caveat Kernel upgrades may require system reboot and could introduce compatibility issues with custom kernel modules or older drivers; ensure backup and test in staging first

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Linux Kernel Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing8.0 h
  • Review / QA3.0 h
23.0 hours of engineering $3,980
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,368.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2023-1838 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2023-1838 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data