CVE-2022-49554
published high CVSS 3.1 · 7.8zsmalloc: fix races between asynchronous zspage free and page migration
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux77ff465799c60294e248000cd22ae8171da3304c to < 3674d8a8dadd03a447dd21069d4dacfc3399b63b · 77ff465799c60294e248000cd22ae8171da3304c to < 645996efc2ae391246d595832aaa6f9d3cc338c7 · 77ff465799c60294e248000cd22ae8171da3304c to < fc658c083904427abbf8f18280d517ee2668677c · 77ff465799c60294e248000cd22ae8171da3304c to < fae05b2314b147a78fbed1dc4c645d9a66313758 · 77ff465799c60294e248000cd22ae8171da3304c to < 3ec459c8810e658401be428d3168eacfc380bdd0 · 77ff465799c60294e248000cd22ae8171da3304c to < 8ba7b7c1dad1f6503c541778f31b33f7f62eb966 · 77ff465799c60294e248000cd22ae8171da3304c to < c5402fb5f71f1a725f1e55d9c6799c0c7bec308f · 77ff465799c60294e248000cd22ae8171da3304c to < 2505a981114dcb715f8977b8433f7540854851d8 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.14 (affected) · 0 to < 4.14 (unaffected · semver) · 4.14.282 through 4.14.* (unaffected · semver) · 4.19.246 through 4.19.* (unaffected · semver) · 5.4.197 through 5.4.* (unaffected · semver) · 5.10.120 through 5.10.* (unaffected · semver) · 5.15.45 through 5.15.* (unaffected · semver) · 5.17.13 through 5.17.* (unaffected · semver) · 5.18.2 through 5.18.* (unaffected · semver) · 5.19 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluationALAS2-2022-1813 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-015 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2022-002 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2022-028 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2-2022-1813 |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-015 |
Show 15 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2022-002 |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.4-2022-028 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2-2022-1813 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-015 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2022-002 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.4-2022-028 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2-2022-1813 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-015 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2022-002 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.4-2022-028 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2-2022-1813 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-015 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2022-002 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.4-2022-028 |
Description
In the Linux kernel, the following vulnerability has been resolved: zsmalloc: fix races between asynchronous zspage free and page migration The asynchronous zspage free worker tries to lock a zspage's entire page list without defending against page migration. Since pages which haven't yet been locked can concurrently migrate off the zspage page list while lock_zspage() churns away, lock_zspage() can suffer from a few different lethal races. It can lock a page which no longer belongs to the zspage and unsafely dereference page_private(), it can unsafely dereference a torn pointer to the next page (since there's a data race), and it can observe a spurious NULL pointer to the next page and thus not lock all of the zspage's pages (since a single page migration will reconstruct the entire page list, and create_page_chain() unconditionally zeroes out each list pointer in the process). Fix the races by using migrate_read_lock() in lock_zspage() to synchronize with page migration.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable path is in mm/zsmalloc.c (async_free_zspage → lock_zspage racing with zs_page_migrate), reached when an unprivileged local process drives zram/zswap alloc/free via swap or compressed-page I/O and concurrent compaction; it is not reachable from the network stack. AC:L - A local attacker can drive both sides of the race by allocating/freeing zsmalloc-backed swap objects (zs_free → deferred free) while inducing compaction/migration of those movable zspages, so success does not depend on conditions outside attacker influence. PR:L - On common deployments (e.g. Android with zram swap, or zswap with zsmalloc), any unprivileged local user can trigger zs_malloc/zs_free and memory pressure without capabilities or init-namespace root. UI:N - Exploitation requires no victim action beyond the system already using zsmalloc-backed zram/zswap; the attacker triggers the race solely through their own memory and I/O activity. S:U - Impact stays within the host kernel's authority (local memory corruption / privilege escalation); this is not a VM escape, IOMMU bypass, or other cross-boundary break. C:H - The race can lock the wrong page and dereference page_private(), follow a torn page->index pointer, or free a zspage while unlocked pages remain in use—UAF/memory-corruption primitives that enable arbitrary kernel reads. I:H - Incomplete locking of the zspage chain while migration rebuilds it via create_page_chain() allows freeing or resetting pages still under migration, yielding heap corruption exploitable for arbitrary writes and control-flow hijacking. A:H - The same races produce NULL/invalid pointer dereferences, use-after-free crashes, and kernel oops/panic when page_private or list links are observed inconsistently during free versus migration.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 77ff465799c60294e248000cd22ae8171da3304c to < 3674d8a8dadd03a447dd21069d4dacfc3399b63b (affected · git)77ff465799c60294e248000cd22ae8171da3304c to < 645996efc2ae391246d595832aaa6f9d3cc338c7 (affected · git)77ff465799c60294e248000cd22ae8171da3304c to < fc658c083904427abbf8f18280d517ee2668677c (affected · git)77ff465799c60294e248000cd22ae8171da3304c to < fae05b2314b147a78fbed1dc4c645d9a66313758 (affected · git)77ff465799c60294e248000cd22ae8171da3304c to < 3ec459c8810e658401be428d3168eacfc380bdd0 (affected · git)77ff465799c60294e248000cd22ae8171da3304c to < 8ba7b7c1dad1f6503c541778f31b33f7f62eb966 (affected · git)77ff465799c60294e248000cd22ae8171da3304c to < c5402fb5f71f1a725f1e55d9c6799c0c7bec308f (affected · git)77ff465799c60294e248000cd22ae8171da3304c to < 2505a981114dcb715f8977b8433f7540854851d8 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.14 (affected)0 to < 4.14 (unaffected · semver)4.14.282 through 4.14.* (unaffected · semver)4.19.246 through 4.19.* (unaffected · semver)5.4.197 through 5.4.* (unaffected · semver)5.10.120 through 5.10.* (unaffected · semver)5.15.45 through 5.15.* (unaffected · semver)5.17.13 through 5.17.* (unaffected · semver)5.18.2 through 5.18.* (unaffected · semver)5.19 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/2505a981114dcb715f8977b8433f7540854851d8
- https://git.kernel.org/stable/c/3674d8a8dadd03a447dd21069d4dacfc3399b63b
- https://git.kernel.org/stable/c/3ec459c8810e658401be428d3168eacfc380bdd0
- https://git.kernel.org/stable/c/645996efc2ae391246d595832aaa6f9d3cc338c7
- https://git.kernel.org/stable/c/8ba7b7c1dad1f6503c541778f31b33f7f62eb966
- https://git.kernel.org/stable/c/c5402fb5f71f1a725f1e55d9c6799c0c7bec308f
- https://git.kernel.org/stable/c/fae05b2314b147a78fbed1dc4c645d9a66313758
- https://git.kernel.org/stable/c/fc658c083904427abbf8f18280d517ee2668677c
Provider assertions
2Linux · cna
zsmalloc: fix races between asynchronous zspage free and page migration
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 32a70d8f8f6679720360a701677bb5082469983871e924baf19a4df67fb7ca0c
- Ingested
- 15 Oct 2026, 23:26:24 UTC
- Source record
- Official CVE record