{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50285","id":"CVE-2022-50285","title":"mm,hugetlb: take hugetlb_lock before decrementing h->resv_huge_pages","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm,hugetlb: take hugetlb_lock before decrementing h->resv_huge_pages\n\nThe h->*_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->resv_huge_pages, which we have\nobserved on our systems.\n\nTa","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm,hugetlb: take hugetlb_lock before decrementing h->resv_huge_pages\n\nThe h->*_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->resv_huge_pages, which we have\nobserved on our systems.\n\nTake the hugetlb_lock before decrementing h->resv_huge_pages to avoid a\npotential race.","published":"2025-09-15T14:21:21.504Z","updated":"2026-11-17T07:00:38.381660736Z","reserved":"2025-09-15T13:58:00.977Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a88c769548047b21f76fd71e04b6a3300ff17160","lessThan":"3e50a07b6a5fcd39df1534d3fdaca4292a65efe6","status":"affected","versionType":"git"},{"version":"a88c769548047b21f76fd71e04b6a3300ff17160","lessThan":"629c986e19fe9481227c7cdfd9a105bbc104d245","status":"affected","versionType":"git"},{"version":"a88c769548047b21f76fd71e04b6a3300ff17160","lessThan":"2b35432d324898ec41beb27031d2a1a864a4d40e","status":"affected","versionType":"git"},{"version":"a88c769548047b21f76fd71e04b6a3300ff17160","lessThan":"11993652d0b49e27272db0a37aa828d8a3a4b92b","status":"affected","versionType":"git"},{"version":"a88c769548047b21f76fd71e04b6a3300ff17160","lessThan":"568e3812b1778b4c0c229649b59977d88f400ece","status":"affected","versionType":"git"},{"version":"a88c769548047b21f76fd71e04b6a3300ff17160","lessThan":"112a005d1ded04a4b41b6d01833cc0bda90625cc","status":"affected","versionType":"git"},{"version":"a88c769548047b21f76fd71e04b6a3300ff17160","lessThan":"c828fab903725279aa9dc6ae3d44bb7e4778f92c","status":"affected","versionType":"git"},{"version":"a88c769548047b21f76fd71e04b6a3300ff17160","lessThan":"12df140f0bdfae5dcfc81800970dd7f6f632e00c","status":"affected","versionType":"git"},{"version":"3f5fae4d1a3189d95b02b4b45e1218df147122bc","status":"affected","versionType":"git"},{"version":"4.3.6","lessThan":"4.4","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.4","status":"affected"},{"version":"0","lessThan":"4.4","status":"unaffected","versionType":"semver"},{"version":"4.9.332","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.298","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.264","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.223","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.153","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.76","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.6","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/3e50a07b6a5fcd39df1534d3fdaca4292a65efe6","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/629c986e19fe9481227c7cdfd9a105bbc104d245","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2b35432d324898ec41beb27031d2a1a864a4d40e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/11993652d0b49e27272db0a37aa828d8a3a4b92b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/568e3812b1778b4c0c229649b59977d88f400ece","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/112a005d1ded04a4b41b6d01833cc0bda90625cc","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c828fab903725279aa9dc6ae3d44bb7e4778f92c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/12df140f0bdfae5dcfc81800970dd7f6f632e00c","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50285.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50285","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00166,"epssPercentile":0.05981,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50285","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50285","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50285","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50285","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}