CVE-2022-49554
MediumIn 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.
CVSS 3.1 score
4.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-362CVE-2022-49554 is a Race Condition vulnerability
What is Race Condition?
The product contains a code sequence that can run concurrently with other code, creating unexpected states. Learn more on MITRE CWE
Affected versions
Linux kernel versions
4.14
and later are affected. Fixed in
4.14.282,
4.19.246,
5.4.197,
5.10.120,
5.15.45,
5.17.13,
5.18.2,
5.19
and their respective stable series.
References
The following references provide additional information about CVE-2022-49554 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/2505a981114dcb715f8977b8433f7540854851d8
-
PatchKernel patch commithttps://git.kernel.org/stable/c/3674d8a8dadd03a447dd21069d4dacfc3399b63b
-
PatchKernel patch commithttps://git.kernel.org/stable/c/3ec459c8810e658401be428d3168eacfc380bdd0
Frequently asked questions
-
What is CVE-2022-49554?
CVE-2022-49554 is a Medium severity Linux kernel vulnerability with a CVSS score of 4.7 out of 10 , classified as a Race Condition flaw (CWE-362) . It affects Linux kernel versions from 4.14 onward and has been patched in 4.14.282, 4.19.246, 5.4.197 and others. CVE-2022-49554 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2022-49554?
CVE-2022-49554 has a CVSS score of 4.7 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2022-49554?
Yes — CVE-2022-49554 has been patched. Fixed versions include 4.14.282, 4.19.246, 5.4.197 and others. If you are running Linux kernel 4.14 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2022-49554 actively exploited?
No — CVE-2022-49554 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Race Condition (CWE-362)?
The product contains a code sequence that can run concurrently with other code, creating unexpected states. View CWE-362 on MITRE CWE →