{"id":"CVE-2022-50285","aliases":["CVE-2022-50285"],"related":[],"kind":"vulnerability","state":"published","title":"mm,hugetlb: take hugetlb_lock before decrementing h->resv_huge_pages","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2025-09-15T14:21:21.504Z","modified":"2026-11-05T20:17:32.560Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a88c769548047b21f76fd71e04b6a3300ff17160","fixed":"3e50a07b6a5fcd39df1534d3fdaca4292a65efe6","status":"affected"},{"type":"git","introduced":"a88c769548047b21f76fd71e04b6a3300ff17160","fixed":"629c986e19fe9481227c7cdfd9a105bbc104d245","status":"affected"},{"type":"git","introduced":"a88c769548047b21f76fd71e04b6a3300ff17160","fixed":"2b35432d324898ec41beb27031d2a1a864a4d40e","status":"affected"},{"type":"git","introduced":"a88c769548047b21f76fd71e04b6a3300ff17160","fixed":"11993652d0b49e27272db0a37aa828d8a3a4b92b","status":"affected"},{"type":"git","introduced":"a88c769548047b21f76fd71e04b6a3300ff17160","fixed":"568e3812b1778b4c0c229649b59977d88f400ece","status":"affected"},{"type":"git","introduced":"a88c769548047b21f76fd71e04b6a3300ff17160","fixed":"112a005d1ded04a4b41b6d01833cc0bda90625cc","status":"affected"},{"type":"git","introduced":"a88c769548047b21f76fd71e04b6a3300ff17160","fixed":"c828fab903725279aa9dc6ae3d44bb7e4778f92c","status":"affected"},{"type":"git","introduced":"a88c769548047b21f76fd71e04b6a3300ff17160","fixed":"12df140f0bdfae5dcfc81800970dd7f6f632e00c","status":"affected"},{"type":"git","version":"3f5fae4d1a3189d95b02b4b45e1218df147122bc","status":"affected"},{"type":"semver","introduced":"4.3.6","fixed":"4.4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.4","status":"unaffected"},{"type":"semver","introduced":"4.9.332","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.298","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.264","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.223","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.153","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.76","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.6","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.3.6","fixed":"4.4"},{"status":"affected","introduced":"4.4.1","fixed":"4.9.332"},{"status":"affected","introduced":"4.10","fixed":"4.14.298"},{"status":"affected","introduced":"4.15","fixed":"4.19.264"},{"status":"affected","introduced":"4.20","fixed":"5.4.223"},{"status":"affected","introduced":"5.5","fixed":"5.10.153"},{"status":"affected","introduced":"5.11","fixed":"5.15.76"},{"status":"affected","introduced":"5.16","fixed":"6.0.6"},{"status":"affected","version":"4.4"},{"status":"affected","version":"4.4"},{"status":"affected","version":"4.4"},{"status":"affected","version":"4.4"},{"status":"affected","version":"4.4"},{"status":"affected","version":"6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3e50a07b6a5fcd39df1534d3fdaca4292a65efe6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/629c986e19fe9481227c7cdfd9a105bbc104d245","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2b35432d324898ec41beb27031d2a1a864a4d40e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/11993652d0b49e27272db0a37aa828d8a3a4b92b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/568e3812b1778b4c0c229649b59977d88f400ece","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/112a005d1ded04a4b41b6d01833cc0bda90625cc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c828fab903725279aa9dc6ae3d44bb7e4778f92c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/12df140f0bdfae5dcfc81800970dd7f6f632e00c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:08:59.508Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50285","url":"https://www.cve.org/CVERecord?id=CVE-2022-50285","licence":"CVE Terms of Use","modified":"2026-11-05T20:10:33.178Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50285","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50285","licence":"Public domain","modified":"2026-11-05T20:17:32.560Z"}],"updatedAt":"2026-11-25T22:58:21.148Z","epss":{"score":0.00167,"percentile":0.06214,"date":"2026-12-02T12:00:21.000Z"}}