{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49554","id":"CVE-2022-49554","title":"zsmalloc: fix races between asynchronous zspage free and page migration","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nzsmalloc: fix races between asynchronous zspage free and page migration\n\nThe asynchronous zspage free worker tries to lock a zspage's entire page\nlist without defending against page migration.  Since pages which haven't\nyet been locked can concurrently migrate off the zspage page list while\nlock_zspage() churns away, lock_zspage(","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nzsmalloc: fix races between asynchronous zspage free and page migration\n\nThe asynchronous zspage free worker tries to lock a zspage's entire page\nlist without defending against page migration.  Since pages which haven't\nyet been locked can concurrently migrate off the zspage page list while\nlock_zspage() churns away, lock_zspage() can suffer from a few different\nlethal races.\n\nIt can lock a page which no longer belongs to the zspage and unsafely\ndereference page_private(), it can unsafely dereference a torn pointer to\nthe next page (since there's a data race), and it can observe a spurious\nNULL pointer to the next page and thus not lock all of the zspage's pages\n(since a single page migration will reconstruct the entire page list, and\ncreate_page_chain() unconditionally zeroes out each list pointer in the\nprocess).\n\nFix the races by using migrate_read_lock() in lock_zspage() to synchronize\nwith page migration.","published":"2025-02-26T02:14:02.649Z","updated":"2026-10-28T02:30:41.555475462Z","reserved":"2025-02-26T02:08:31.590Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"77ff465799c60294e248000cd22ae8171da3304c","lessThan":"3674d8a8dadd03a447dd21069d4dacfc3399b63b","status":"affected","versionType":"git"},{"version":"77ff465799c60294e248000cd22ae8171da3304c","lessThan":"645996efc2ae391246d595832aaa6f9d3cc338c7","status":"affected","versionType":"git"},{"version":"77ff465799c60294e248000cd22ae8171da3304c","lessThan":"fc658c083904427abbf8f18280d517ee2668677c","status":"affected","versionType":"git"},{"version":"77ff465799c60294e248000cd22ae8171da3304c","lessThan":"fae05b2314b147a78fbed1dc4c645d9a66313758","status":"affected","versionType":"git"},{"version":"77ff465799c60294e248000cd22ae8171da3304c","lessThan":"3ec459c8810e658401be428d3168eacfc380bdd0","status":"affected","versionType":"git"},{"version":"77ff465799c60294e248000cd22ae8171da3304c","lessThan":"8ba7b7c1dad1f6503c541778f31b33f7f62eb966","status":"affected","versionType":"git"},{"version":"77ff465799c60294e248000cd22ae8171da3304c","lessThan":"c5402fb5f71f1a725f1e55d9c6799c0c7bec308f","status":"affected","versionType":"git"},{"version":"77ff465799c60294e248000cd22ae8171da3304c","lessThan":"2505a981114dcb715f8977b8433f7540854851d8","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.14","status":"affected"},{"version":"0","lessThan":"4.14","status":"unaffected","versionType":"semver"},{"version":"4.14.282","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.246","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.197","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.120","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.45","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.17.13","lessThanOrEqual":"5.17.*","status":"unaffected","versionType":"semver"},{"version":"5.18.2","lessThanOrEqual":"5.18.*","status":"unaffected","versionType":"semver"},{"version":"5.19","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-362"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/3674d8a8dadd03a447dd21069d4dacfc3399b63b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/645996efc2ae391246d595832aaa6f9d3cc338c7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fc658c083904427abbf8f18280d517ee2668677c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fae05b2314b147a78fbed1dc4c645d9a66313758","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3ec459c8810e658401be428d3168eacfc380bdd0","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8ba7b7c1dad1f6503c541778f31b33f7f62eb966","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c5402fb5f71f1a725f1e55d9c6799c0c7bec308f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2505a981114dcb715f8977b8433f7540854851d8","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49554.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49554","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":"total"},"epss":0.00217,"epssPercentile":0.12216,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49554","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49554","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49554","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-49554","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}