CVE-2022-42335 Null dereference in xen

High 7.8 Published Updated

A guest with a passed-through PCI device can trigger an arbitrary pointer dereference in the Xen hypervisor, potentially causing a crash or code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-42335?

CVE-2022-42335 is a high-severity vulnerability in Fedoraproject Fedora, published on 25 Apr 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

x86 shadow paging arbitrary pointer dereference In environments where host assisted address translation is necessary but Hardware Assisted Paging (HAP) is unavailable, Xen will run guests in so called shadow mode. Due to too lax a check in one of the hypervisor routines used for shadow page handling it is possible for a guest with a PCI device passed through to cause the hypervisor to access an arbitrary pointer partially under guest control.

Weakness: CWE-476

Which versions are affected by CVE-2022-42335?

It affects 2 products.

Linux distribution packages (1)
xen openSUSE:TumbleweedAll versions4.17.1_02-1.1

Products include Fedoraproject Fedora, Xen Xen.

How do I fix CVE-2022-42335?

Apply the vendor's patch.

Is CVE-2022-42335 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2022-42335, DEBIAN-CVE-2022-42335, GHSA-pwx9-2gvj-242v, UBUNTU-CVE-2022-42335, openSUSE-SU-2024:12917-1.

Is CVE-2022-42335 in your software?

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

Check your SBOMs for free