CVE-2022-50285 (GCVE-0-2022-50285)
Vulnerability from cvelistv5
Published
2025-09-15 14:21
Modified
2025-09-15 14:21
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: mm,hugetlb: take hugetlb_lock before decrementing h->resv_huge_pages The h->*_huge_pages counters are protected by the hugetlb_lock, but alloc_huge_page has a corner case where it can decrement the counter outside of the lock. This could lead to a corrupted value of h->resv_huge_pages, which we have observed on our systems. Take the hugetlb_lock before decrementing h->resv_huge_pages to avoid a potential race.
Impacted products
Vendor Product Version
Linux Linux Version: a88c769548047b21f76fd71e04b6a3300ff17160
Version: a88c769548047b21f76fd71e04b6a3300ff17160
Version: a88c769548047b21f76fd71e04b6a3300ff17160
Version: a88c769548047b21f76fd71e04b6a3300ff17160
Version: a88c769548047b21f76fd71e04b6a3300ff17160
Version: a88c769548047b21f76fd71e04b6a3300ff17160
Version: a88c769548047b21f76fd71e04b6a3300ff17160
Version: a88c769548047b21f76fd71e04b6a3300ff17160
Version: 3f5fae4d1a3189d95b02b4b45e1218df147122bc
Create a notification for this product.
   Linux Linux Version: 4.4
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "mm/hugetlb.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3e50a07b6a5fcd39df1534d3fdaca4292a65efe6",
              "status": "affected",
              "version": "a88c769548047b21f76fd71e04b6a3300ff17160",
              "versionType": "git"
            },
            {
              "lessThan": "629c986e19fe9481227c7cdfd9a105bbc104d245",
              "status": "affected",
              "version": "a88c769548047b21f76fd71e04b6a3300ff17160",
              "versionType": "git"
            },
            {
              "lessThan": "2b35432d324898ec41beb27031d2a1a864a4d40e",
              "status": "affected",
              "version": "a88c769548047b21f76fd71e04b6a3300ff17160",
              "versionType": "git"
            },
            {
              "lessThan": "11993652d0b49e27272db0a37aa828d8a3a4b92b",
              "status": "affected",
              "version": "a88c769548047b21f76fd71e04b6a3300ff17160",
              "versionType": "git"
            },
            {
              "lessThan": "568e3812b1778b4c0c229649b59977d88f400ece",
              "status": "affected",
              "version": "a88c769548047b21f76fd71e04b6a3300ff17160",
              "versionType": "git"
            },
            {
              "lessThan": "112a005d1ded04a4b41b6d01833cc0bda90625cc",
              "status": "affected",
              "version": "a88c769548047b21f76fd71e04b6a3300ff17160",
              "versionType": "git"
            },
            {
              "lessThan": "c828fab903725279aa9dc6ae3d44bb7e4778f92c",
              "status": "affected",
              "version": "a88c769548047b21f76fd71e04b6a3300ff17160",
              "versionType": "git"
            },
            {
              "lessThan": "12df140f0bdfae5dcfc81800970dd7f6f632e00c",
              "status": "affected",
              "version": "a88c769548047b21f76fd71e04b6a3300ff17160",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "3f5fae4d1a3189d95b02b4b45e1218df147122bc",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "mm/hugetlb.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.4"
            },
            {
              "lessThan": "4.4",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.332",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.298",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.264",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.223",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.153",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.76",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.332",
                  "versionStartIncluding": "4.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.298",
                  "versionStartIncluding": "4.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.264",
                  "versionStartIncluding": "4.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.223",
                  "versionStartIncluding": "4.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.153",
                  "versionStartIncluding": "4.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.76",
                  "versionStartIncluding": "4.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.6",
                  "versionStartIncluding": "4.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "4.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.3.6",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm,hugetlb: take hugetlb_lock before decrementing h-\u003eresv_huge_pages\n\nThe h-\u003e*_huge_pages counters are protected by the hugetlb_lock, but\nalloc_huge_page has a corner case where it can decrement the counter\noutside of the lock.\n\nThis could lead to a corrupted value of h-\u003eresv_huge_pages, which we have\nobserved on our systems.\n\nTake the hugetlb_lock before decrementing h-\u003eresv_huge_pages to avoid a\npotential race."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-15T14:21:21.504Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3e50a07b6a5fcd39df1534d3fdaca4292a65efe6"
        },
        {
          "url": "https://git.kernel.org/stable/c/629c986e19fe9481227c7cdfd9a105bbc104d245"
        },
        {
          "url": "https://git.kernel.org/stable/c/2b35432d324898ec41beb27031d2a1a864a4d40e"
        },
        {
          "url": "https://git.kernel.org/stable/c/11993652d0b49e27272db0a37aa828d8a3a4b92b"
        },
        {
          "url": "https://git.kernel.org/stable/c/568e3812b1778b4c0c229649b59977d88f400ece"
        },
        {
          "url": "https://git.kernel.org/stable/c/112a005d1ded04a4b41b6d01833cc0bda90625cc"
        },
        {
          "url": "https://git.kernel.org/stable/c/c828fab903725279aa9dc6ae3d44bb7e4778f92c"
        },
        {
          "url": "https://git.kernel.org/stable/c/12df140f0bdfae5dcfc81800970dd7f6f632e00c"
        }
      ],
      "title": "mm,hugetlb: take hugetlb_lock before decrementing h-\u003eresv_huge_pages",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50285",
    "datePublished": "2025-09-15T14:21:21.504Z",
    "dateReserved": "2025-09-15T13:58:00.977Z",
    "dateUpdated": "2025-09-15T14:21:21.504Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50285\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-15T15:15:39.660\",\"lastModified\":\"2025-09-15T15:22:27.090\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmm,hugetlb: take hugetlb_lock before decrementing h-\u003eresv_huge_pages\\n\\nThe h-\u003e*_huge_pages counters are protected by the hugetlb_lock, but\\nalloc_huge_page has a corner case where it can decrement the counter\\noutside of the lock.\\n\\nThis could lead to a corrupted value of h-\u003eresv_huge_pages, which we have\\nobserved on our systems.\\n\\nTake the hugetlb_lock before decrementing h-\u003eresv_huge_pages to avoid a\\npotential race.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/112a005d1ded04a4b41b6d01833cc0bda90625cc\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/11993652d0b49e27272db0a37aa828d8a3a4b92b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/12df140f0bdfae5dcfc81800970dd7f6f632e00c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/2b35432d324898ec41beb27031d2a1a864a4d40e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3e50a07b6a5fcd39df1534d3fdaca4292a65efe6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/568e3812b1778b4c0c229649b59977d88f400ece\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/629c986e19fe9481227c7cdfd9a105bbc104d245\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c828fab903725279aa9dc6ae3d44bb7e4778f92c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…