# CVE-2022-50575: xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-10-22T13:23:29.595Z
- Modified: 2026-06-17T05:23:49.233Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 3ad0876554cafa368f574d4d408468510543e9ff before 5d68ae32d132ea2af73bc223fd64c46f85302a8b; from 3ad0876554cafa368f574d4d408468510543e9ff before 4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5; from 3ad0876554cafa368f574d4d408468510543e9ff before 46026bb057c35f5bb111bf95e00cd8366d2e34d4; from 3ad0876554cafa368f574d4d408468510543e9ff before 0bf874183b32eae2cc20e3c5be38ec3d33e7e564; from 3ad0876554cafa368f574d4d408468510543e9ff before e0c5f1058ed96f2b7487560c4c4cbd768d13d065; from 3ad0876554cafa368f574d4d408468510543e9ff before 4da411086f5ab32f811a89ef804980ec106ebb65; from 3ad0876554cafa368f574d4d408468510543e9ff before 8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79; 4.18 (not affected: before 4.18; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)

## References

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

## Sources

- CVE List: [CVE-2022-50575](https://www.cve.org/CVERecord?id=CVE-2022-50575), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50575](https://nvd.nist.gov/vuln/detail/CVE-2022-50575), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50575 · Whole record: https://cve.day/CVE-2022-50575.json · Rebuilt by cve.day 2026-11-25T22:58:21.279Z
