CVE-2022-50575

xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()

No CVSS score yet EPSS 0.22%

Published 22 Oct 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50575

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50575 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.2% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 3ad0876554cafa368f574d4d408468510543e9ff, before 5d68ae32d132ea2af73bc223fd64c46f85302a8b
affected from 3ad0876554cafa368f574d4d408468510543e9ff, before 4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5
affected from 3ad0876554cafa368f574d4d408468510543e9ff, before 46026bb057c35f5bb111bf95e00cd8366d2e34d4
affected from 3ad0876554cafa368f574d4d408468510543e9ff, before 0bf874183b32eae2cc20e3c5be38ec3d33e7e564
affected from 3ad0876554cafa368f574d4d408468510543e9ff, before e0c5f1058ed96f2b7487560c4c4cbd768d13d065
affected from 3ad0876554cafa368f574d4d408468510543e9ff, before 4da411086f5ab32f811a89ef804980ec106ebb65
affected from 3ad0876554cafa368f574d4d408468510543e9ff, before 8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79
Other versions: unaffected
Linux
affected 4.18
unaffected before 4.18
unaffected from 4.19.270 up to and including 4.19.*
unaffected from 5.4.229 up to and including 5.4.*
unaffected from 5.10.163 up to and including 5.10.*
unaffected from 5.15.86 up to and including 5.15.*
unaffected from 6.0.16 up to and including 6.0.*
unaffected from 6.1.2 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50575 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50575

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50575
trivy image --scanners vuln IMAGE | grep CVE-2022-50575

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50575 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.