{"id":"CVE-2022-50575","aliases":["CVE-2022-50575"],"related":[],"kind":"vulnerability","state":"published","title":"xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nxen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()\n\nAs 'kdata.num' is user-controlled data, if user tries to allocate\nmemory larger than(>=) MAX_ORDER, then kcalloc() will fail, it\ncreates a stack trace and messes up dmesg with a warning.\n\nCall trace:\n-> privcmd_ioctl\n--> privcmd_ioctl_mmap_resource\n\nAdd __GFP_NOWARN in order to avoid too large allocation warning.\nThis is detected by static analysis using smatch.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()\n\nAs 'kdata.num' is user-controlled data, if user tries to allocate\nmemory larger than(>=) MAX_ORDER, then kcalloc() will fail, it\ncreates a stack trace and messes up dmesg with a warning.\n\nCall trace:\n-> privcmd_ioctl\n--> privcmd_ioctl_mmap_resource\n\nAdd __GFP_NOWARN in order to avoid too large allocation warning.\nThis is detected by static analysis using smatch.","source":"cvelist"}],"published":"2025-10-22T13:23:29.595Z","modified":"2026-06-17T05:23:49.233Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3ad0876554cafa368f574d4d408468510543e9ff","fixed":"5d68ae32d132ea2af73bc223fd64c46f85302a8b","status":"affected"},{"type":"git","introduced":"3ad0876554cafa368f574d4d408468510543e9ff","fixed":"4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5","status":"affected"},{"type":"git","introduced":"3ad0876554cafa368f574d4d408468510543e9ff","fixed":"46026bb057c35f5bb111bf95e00cd8366d2e34d4","status":"affected"},{"type":"git","introduced":"3ad0876554cafa368f574d4d408468510543e9ff","fixed":"0bf874183b32eae2cc20e3c5be38ec3d33e7e564","status":"affected"},{"type":"git","introduced":"3ad0876554cafa368f574d4d408468510543e9ff","fixed":"e0c5f1058ed96f2b7487560c4c4cbd768d13d065","status":"affected"},{"type":"git","introduced":"3ad0876554cafa368f574d4d408468510543e9ff","fixed":"4da411086f5ab32f811a89ef804980ec106ebb65","status":"affected"},{"type":"git","introduced":"3ad0876554cafa368f574d4d408468510543e9ff","fixed":"8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.18","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/5d68ae32d132ea2af73bc223fd64c46f85302a8b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/46026bb057c35f5bb111bf95e00cd8366d2e34d4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0bf874183b32eae2cc20e3c5be38ec3d33e7e564","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e0c5f1058ed96f2b7487560c4c4cbd768d13d065","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4da411086f5ab32f811a89ef804980ec106ebb65","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50575","url":"https://www.cve.org/CVERecord?id=CVE-2022-50575","licence":"CVE Terms of Use","modified":"2026-05-11T19:22:04.640Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50575","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50575","licence":"Public domain","modified":"2026-06-17T05:23:49.233Z"}],"updatedAt":"2026-11-25T22:58:21.279Z","epss":{"score":0.0022,"percentile":0.13297,"date":"2026-12-01T12:00:22.000Z"}}