# CVE-2022-50575: xen/privcmd: Fix a possible warning in privcmd\_ioctl\_mmap\_resource()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-10-22T13:23:29.595Z
- **Modified:** 2026-06-17T05:23:49.233Z

## Who should check

- Anyone running Linux \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 5d68ae32d132ea2af73bc223fd64c46f85302a8b; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 46026bb057c35f5bb111bf95e00cd8366d2e34d4; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 0bf874183b32eae2cc20e3c5be38ec3d33e7e564; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< e0c5f1058ed96f2b7487560c4c4cbd768d13d065; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 4da411086f5ab32f811a89ef804980ec106ebb65; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79
- Anyone running Linux 4.18

## 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.

## Affected and fixed versions

- Linux: \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 5d68ae32d132ea2af73bc223fd64c46f85302a8b; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 46026bb057c35f5bb111bf95e00cd8366d2e34d4; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 0bf874183b32eae2cc20e3c5be38ec3d33e7e564; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< e0c5f1058ed96f2b7487560c4c4cbd768d13d065; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 4da411086f5ab32f811a89ef804980ec106ebb65; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79 (cvelist)
- Linux: 4.18 (cvelist)

## Mitigation

- Upgrade Linux to 8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50575. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50575.md
Affected: Linux >= 3ad0876554cafa368f574d4d408468510543e9ff, < 5d68ae32d132ea2af73bc223fd64c46f85302a8b; >= 3ad0876554cafa368f574d4d408468510543e9ff, < 4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5; >= 3ad0876554cafa368f574d4d408468510543e9ff, < 46026bb057c35f5bb111bf95e00cd8366d2e34d4; >= 3ad0876554cafa368f574d4…
Fixed in: Linux 5d68ae32d132ea2af73bc223fd64c46f85302a8b, Linux 4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5, Linux 46026bb057c35f5bb111bf95e00cd8366d2e34d4, Linux 0bf874183b32eae2cc20e3c5be38ec3d33e7e564, Linux 4da411086f5ab32f811a89ef804980ec106ebb65, Linux 8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50575 being exploited?

There is no confirmed exploitation: CVE-2022-50575 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50575?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50575?

Linux \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 5d68ae32d132ea2af73bc223fd64c46f85302a8b; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 46026bb057c35f5bb111bf95e00cd8366d2e34d4; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 0bf874183b32eae2cc20e3c5be38ec3d33e7e564; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< e0c5f1058ed96f2b7487560c4c4cbd768d13d065; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 4da411086f5ab32f811a89ef804980ec106ebb65; \>= 3ad0876554cafa368f574d4d408468510543e9ff, \< 8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79; Linux 4.18.

### Is there a fix for CVE-2022-50575?

Yes. Fixed in Linux 5d68ae32d132ea2af73bc223fd64c46f85302a8b, Linux 4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5, Linux 46026bb057c35f5bb111bf95e00cd8366d2e34d4, Linux 0bf874183b32eae2cc20e3c5be38ec3d33e7e564, Linux 4da411086f5ab32f811a89ef804980ec106ebb65, Linux 8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79. Upgrade Linux to 8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79 or later.

### How do I check if I'm affected by CVE-2022-50575?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/5d68ae32d132ea2af73bc223fd64c46f85302a8b>
- other: <https://git.kernel.org/stable/c/4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5>
- other: <https://git.kernel.org/stable/c/46026bb057c35f5bb111bf95e00cd8366d2e34d4>
- other: <https://git.kernel.org/stable/c/0bf874183b32eae2cc20e3c5be38ec3d33e7e564>
- other: <https://git.kernel.org/stable/c/e0c5f1058ed96f2b7487560c4c4cbd768d13d065>
- other: <https://git.kernel.org/stable/c/4da411086f5ab32f811a89ef804980ec106ebb65>
- other: <https://git.kernel.org/stable/c/8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50575>

HTML: <https://flawdb.com/CVE-2022-50575> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50575>
