CVE-2022-50575 xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()
A local attacker can trigger excessive kernel warnings and potential resource exhaustion via the Xen privcmd interface by requesting large memory allocations.
- 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-50575?
CVE-2022-50575 is a denial of service vulnerability in Linux, published on 22 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()
As 'kdata.num' is user-controlled data, if user tries to allocate memory larger than(>=) MAX_ORDER, then kcalloc() will fail, it creates a stack trace and messes up dmesg with a warning.
Call trace: -> privcmd_ioctl --> privcmd_ioctl_mmap_resource
Add __GFP_NOWARN in order to avoid too large allocation warning. This is detected by static analysis using smatch.
Which versions are affected by CVE-2022-50575?
How do I fix CVE-2022-50575?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-50575 being exploited?
There is no known exploitation of CVE-2022-50575 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2022-50575, GHSA-jhf6-8mmm-jxfr, UBUNTU-CVE-2022-50575.