CVE-2022-50575

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

State
Published
Severity
Not scored
Published
Oct 22, 2025
Updated
May 11, 2026
Reserved
Oct 22, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 3ad0876554cafa368f574d4d408468510543e9ff to before 5d68ae32d132ea2af73bc223fd64c46f85302a8bAffected
  • 3ad0876554cafa368f574d4d408468510543e9ff to before 4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5Affected
  • 3ad0876554cafa368f574d4d408468510543e9ff to before 46026bb057c35f5bb111bf95e00cd8366d2e34d4Affected
  • 3ad0876554cafa368f574d4d408468510543e9ff to before 0bf874183b32eae2cc20e3c5be38ec3d33e7e564Affected
  • 3ad0876554cafa368f574d4d408468510543e9ff to before e0c5f1058ed96f2b7487560c4c4cbd768d13d065Affected
  • 3ad0876554cafa368f574d4d408468510543e9ff to before 4da411086f5ab32f811a89ef804980ec106ebb65Affected
  • 3ad0876554cafa368f574d4d408468510543e9ff to before 8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79Affected
LinuxLinux
  • 4.18Affected
  • before 4.18Not affected
  • 4.19.270 through 4.19.*Not affected
  • 5.4.229 through 5.4.*Not affected
  • 5.10.163 through 5.10.*Not affected
  • 5.15.86 through 5.15.*Not affected
  • 6.0.16 through 6.0.*Not affected
  • 6.1.2 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.