CVE-2023-6238 Kernel: nvme: memory corruption via unprivileged user passthrough

Medium 6.7 Published Updated

A buffer overflow in the Linux kernel NVMe driver allows privileged users to corrupt kernel memory, causing crashes or potential privilege escalation.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-6238?

CVE-2023-6238 is a medium-severity memory corruption vulnerability in Fedoraproject Fedora, published on 21 Nov 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A buffer overflow vulnerability was found in the NVM Express (NVMe) driver in the Linux kernel. Only privileged user could specify a small meta buffer and let the device perform larger Direct Memory Access (DMA) into the same buffer, overwriting unrelated kernel memory, causing random kernel crashes and memory corruption.

Weakness: CWE-120

Which versions are affected by CVE-2023-6238?

It affects 2 products.

Products include Fedoraproject Fedora, Linux kernel.

How do I fix CVE-2023-6238?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-6238 being exploited?

There is no known exploitation of CVE-2023-6238 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2023-6238, GHSA-2j83-334m-g9w4, ROOT-OS-DEBIAN-13-CVE-2023-6238, ROOT-OS-UBUNTU-2404-CVE-2023-6238, UBUNTU-CVE-2023-6238.

Is CVE-2023-6238 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free