# CVE-2022-49554: zsmalloc: fix races between asynchronous zspage free and page migration

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 8, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-02-26T02:14:02.649Z
- **Modified:** 2026-10-15T22:17:24.480Z

## Who should check

- Anyone running Linux \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 3674d8a8dadd03a447dd21069d4dacfc3399b63b; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 645996efc2ae391246d595832aaa6f9d3cc338c7; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< fc658c083904427abbf8f18280d517ee2668677c; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< fae05b2314b147a78fbed1dc4c645d9a66313758; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 3ec459c8810e658401be428d3168eacfc380bdd0; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 8ba7b7c1dad1f6503c541778f31b33f7f62eb966; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< c5402fb5f71f1a725f1e55d9c6799c0c7bec308f; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 2505a981114dcb715f8977b8433f7540854851d8
- Anyone running Linux 4.14

## 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.

## Affected and fixed versions

- Linux: \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 3674d8a8dadd03a447dd21069d4dacfc3399b63b; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 645996efc2ae391246d595832aaa6f9d3cc338c7; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< fc658c083904427abbf8f18280d517ee2668677c; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< fae05b2314b147a78fbed1dc4c645d9a66313758; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 3ec459c8810e658401be428d3168eacfc380bdd0; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 8ba7b7c1dad1f6503c541778f31b33f7f62eb966; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< c5402fb5f71f1a725f1e55d9c6799c0c7bec308f; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 2505a981114dcb715f8977b8433f7540854851d8 (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- Upgrade Linux to 2505a981114dcb715f8977b8433f7540854851d8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49554. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49554.md
Affected: Linux >= 77ff465799c60294e248000cd22ae8171da3304c, < 3674d8a8dadd03a447dd21069d4dacfc3399b63b; >= 77ff465799c60294e248000cd22ae8171da3304c, < 645996efc2ae391246d595832aaa6f9d3cc338c7; >= 77ff465799c60294e248000cd22ae8171da3304c, < fc658c083904427abbf8f18280d517ee2668677c; >= 77ff465799c60294e248000…
Fixed in: Linux 3674d8a8dadd03a447dd21069d4dacfc3399b63b, Linux 645996efc2ae391246d595832aaa6f9d3cc338c7, Linux 3ec459c8810e658401be428d3168eacfc380bdd0, Linux 8ba7b7c1dad1f6503c541778f31b33f7f62eb966, Linux 2505a981114dcb715f8977b8433f7540854851d8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49554 being exploited?

There is no confirmed exploitation: CVE-2022-49554 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49554?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49554?

Linux \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 3674d8a8dadd03a447dd21069d4dacfc3399b63b; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 645996efc2ae391246d595832aaa6f9d3cc338c7; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< fc658c083904427abbf8f18280d517ee2668677c; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< fae05b2314b147a78fbed1dc4c645d9a66313758; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 3ec459c8810e658401be428d3168eacfc380bdd0; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 8ba7b7c1dad1f6503c541778f31b33f7f62eb966; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< c5402fb5f71f1a725f1e55d9c6799c0c7bec308f; \>= 77ff465799c60294e248000cd22ae8171da3304c, \< 2505a981114dcb715f8977b8433f7540854851d8; Linux 4.14.

### Is there a fix for CVE-2022-49554?

Yes. Fixed in Linux 3674d8a8dadd03a447dd21069d4dacfc3399b63b, Linux 645996efc2ae391246d595832aaa6f9d3cc338c7, Linux 3ec459c8810e658401be428d3168eacfc380bdd0, Linux 8ba7b7c1dad1f6503c541778f31b33f7f62eb966, Linux 2505a981114dcb715f8977b8433f7540854851d8. Upgrade Linux to 2505a981114dcb715f8977b8433f7540854851d8 or later.

### How do I check if I'm affected by CVE-2022-49554?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/3674d8a8dadd03a447dd21069d4dacfc3399b63b>
- patch: <https://git.kernel.org/stable/c/645996efc2ae391246d595832aaa6f9d3cc338c7>
- patch: <https://git.kernel.org/stable/c/fc658c083904427abbf8f18280d517ee2668677c>
- patch: <https://git.kernel.org/stable/c/fae05b2314b147a78fbed1dc4c645d9a66313758>
- patch: <https://git.kernel.org/stable/c/3ec459c8810e658401be428d3168eacfc380bdd0>
- patch: <https://git.kernel.org/stable/c/8ba7b7c1dad1f6503c541778f31b33f7f62eb966>
- patch: <https://git.kernel.org/stable/c/c5402fb5f71f1a725f1e55d9c6799c0c7bec308f>
- patch: <https://git.kernel.org/stable/c/2505a981114dcb715f8977b8433f7540854851d8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49554>

HTML: <https://flawdb.com/CVE-2022-49554> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49554>
