CVE-2022-50575 (GCVE-0-2022-50575)

Vulnerability from cvelistv5 – Published: 2025-10-22 13:23 – Updated: 2026-05-11 19:22
VLAI
Title
xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()
Summary
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.
Severity
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 3ad0876554cafa368f574d4d408468510543e9ff , < 5d68ae32d132ea2af73bc223fd64c46f85302a8b (git)
Affected: 3ad0876554cafa368f574d4d408468510543e9ff , < 4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5 (git)
Affected: 3ad0876554cafa368f574d4d408468510543e9ff , < 46026bb057c35f5bb111bf95e00cd8366d2e34d4 (git)
Affected: 3ad0876554cafa368f574d4d408468510543e9ff , < 0bf874183b32eae2cc20e3c5be38ec3d33e7e564 (git)
Affected: 3ad0876554cafa368f574d4d408468510543e9ff , < e0c5f1058ed96f2b7487560c4c4cbd768d13d065 (git)
Affected: 3ad0876554cafa368f574d4d408468510543e9ff , < 4da411086f5ab32f811a89ef804980ec106ebb65 (git)
Affected: 3ad0876554cafa368f574d4d408468510543e9ff , < 8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79 (git)
Create a notification for this product.
Linux Linux Affected: 4.18
Unaffected: 0 , < 4.18 (semver)
Unaffected: 4.19.270 , ≤ 4.19.* (semver)
Unaffected: 5.4.229 , ≤ 5.4.* (semver)
Unaffected: 5.10.163 , ≤ 5.10.* (semver)
Unaffected: 5.15.86 , ≤ 5.15.* (semver)
Unaffected: 6.0.16 , ≤ 6.0.* (semver)
Unaffected: 6.1.2 , ≤ 6.1.* (semver)
Unaffected: 6.2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/xen/privcmd.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5d68ae32d132ea2af73bc223fd64c46f85302a8b",
              "status": "affected",
              "version": "3ad0876554cafa368f574d4d408468510543e9ff",
              "versionType": "git"
            },
            {
              "lessThan": "4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5",
              "status": "affected",
              "version": "3ad0876554cafa368f574d4d408468510543e9ff",
              "versionType": "git"
            },
            {
              "lessThan": "46026bb057c35f5bb111bf95e00cd8366d2e34d4",
              "status": "affected",
              "version": "3ad0876554cafa368f574d4d408468510543e9ff",
              "versionType": "git"
            },
            {
              "lessThan": "0bf874183b32eae2cc20e3c5be38ec3d33e7e564",
              "status": "affected",
              "version": "3ad0876554cafa368f574d4d408468510543e9ff",
              "versionType": "git"
            },
            {
              "lessThan": "e0c5f1058ed96f2b7487560c4c4cbd768d13d065",
              "status": "affected",
              "version": "3ad0876554cafa368f574d4d408468510543e9ff",
              "versionType": "git"
            },
            {
              "lessThan": "4da411086f5ab32f811a89ef804980ec106ebb65",
              "status": "affected",
              "version": "3ad0876554cafa368f574d4d408468510543e9ff",
              "versionType": "git"
            },
            {
              "lessThan": "8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79",
              "status": "affected",
              "version": "3ad0876554cafa368f574d4d408468510543e9ff",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/xen/privcmd.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.18"
            },
            {
              "lessThan": "4.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.270",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.229",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.86",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.270",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.86",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nxen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()\n\nAs \u0027kdata.num\u0027 is user-controlled data, if user tries to allocate\nmemory larger than(\u003e=) MAX_ORDER, then kcalloc() will fail, it\ncreates a stack trace and messes up dmesg with a warning.\n\nCall trace:\n-\u003e privcmd_ioctl\n--\u003e privcmd_ioctl_mmap_resource\n\nAdd __GFP_NOWARN in order to avoid too large allocation warning.\nThis is detected by static analysis using smatch."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T19:22:04.640Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/5d68ae32d132ea2af73bc223fd64c46f85302a8b"
        },
        {
          "url": "https://git.kernel.org/stable/c/4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5"
        },
        {
          "url": "https://git.kernel.org/stable/c/46026bb057c35f5bb111bf95e00cd8366d2e34d4"
        },
        {
          "url": "https://git.kernel.org/stable/c/0bf874183b32eae2cc20e3c5be38ec3d33e7e564"
        },
        {
          "url": "https://git.kernel.org/stable/c/e0c5f1058ed96f2b7487560c4c4cbd768d13d065"
        },
        {
          "url": "https://git.kernel.org/stable/c/4da411086f5ab32f811a89ef804980ec106ebb65"
        },
        {
          "url": "https://git.kernel.org/stable/c/8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79"
        }
      ],
      "title": "xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50575",
    "datePublished": "2025-10-22T13:23:29.595Z",
    "dateReserved": "2025-10-22T13:20:23.761Z",
    "dateUpdated": "2026-05-11T19:22:04.640Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-50575",
      "date": "2026-06-09",
      "epss": "0.00044",
      "percentile": "0.13746"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50575\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-10-22T14:15:42.443\",\"lastModified\":\"2025-10-22T21:12:48.953\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nxen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()\\n\\nAs \u0027kdata.num\u0027 is user-controlled data, if user tries to allocate\\nmemory larger than(\u003e=) MAX_ORDER, then kcalloc() will fail, it\\ncreates a stack trace and messes up dmesg with a warning.\\n\\nCall trace:\\n-\u003e privcmd_ioctl\\n--\u003e privcmd_ioctl_mmap_resource\\n\\nAdd __GFP_NOWARN in order to avoid too large allocation warning.\\nThis is detected by static analysis using smatch.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0bf874183b32eae2cc20e3c5be38ec3d33e7e564\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/46026bb057c35f5bb111bf95e00cd8366d2e34d4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/4da411086f5ab32f811a89ef804980ec106ebb65\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/5d68ae32d132ea2af73bc223fd64c46f85302a8b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e0c5f1058ed96f2b7487560c4c4cbd768d13d065\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…