Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-49052

published high CVSS 3.1 · 7.1

mm: fix unexpected zeroed page mapping with zram swap

Published
26 Feb 2025, 01:54:26 UTC
Updated
05 Aug 2026, 08:53:36 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0bcac06f27d7528591c27ac2b093ccd71c5d0168 to < f86d55cf616199404c05f5b0c5c41b17351baa02 · 0bcac06f27d7528591c27ac2b093ccd71c5d0168 to < f098f8b9820fe3f2e41aefc4329dfe8a3859d1c1 · 0bcac06f27d7528591c27ac2b093ccd71c5d0168 to < 20ed94f8181a25212e7404e44958e234f407624b · 0bcac06f27d7528591c27ac2b093ccd71c5d0168 to < 12ba1d38115a101c45d8e0ca3aa1181fd148e57f · 0bcac06f27d7528591c27ac2b093ccd71c5d0168 to < afac4b88699a06c8b9369f9d759a1ec3c254b788 · 0bcac06f27d7528591c27ac2b093ccd71c5d0168 to < e914d8f00391520ecc4495dd0ca0124538ab7119 · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.15 (affected) · 0 to < 4.15 (unaffected · semver) · 4.19.242 through 4.19.* (unaffected · semver) · 5.4.193 through 5.4.* (unaffected · semver) · 5.10.112 through 5.10.* (unaffected · semver) · 5.15.35 through 5.15.* (unaffected · semver) · 5.17.4 through 5.17.* (unaffected · semver) · 5.18 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2023-036 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2022-026 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.10-2023-036
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.4-2022-026
Show 6 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.10-2023-036
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.4-2022-026
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.10-2023-036
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.4-2022-026
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.10-2023-036
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.4-2022-026

Description

In the Linux kernel, the following vulnerability has been resolved: mm: fix unexpected zeroed page mapping with zram swap Two processes under CLONE_VM cloning, user process can be corrupted by seeing zeroed page unexpectedly. CPU A CPU B do_swap_page do_swap_page SWP_SYNCHRONOUS_IO path SWP_SYNCHRONOUS_IO path swap_readpage valid data swap_slot_free_notify delete zram entry swap_readpage zeroed(invalid) data pte_lock map the *zero data* to userspace pte_unlock pte_lock if (!pte_same) goto out_nomap; pte_unlock return and next refault will read zeroed data The swap_slot_free_notify is bogus for CLONE_VM case since it doesn't increase the refcount of swap slot at copy_mm so it couldn't catch up whether it's safe or not to discard data from backing device. In the case, only the lock it could rely on to synchronize swap slot freeing is page table lock. Thus, this patch gets rid of the swap_slot_free_notify function. With this patch, CPU A will see correct data. CPU A CPU B do_swap_page do_swap_page SWP_SYNCHRONOUS_IO path SWP_SYNCHRONOUS_IO path swap_readpage original data pte_lock map the original data swap_free swap_range_free bd_disk->fops->swap_slot_free_notify swap_readpage read zeroed data pte_unlock pte_lock if (!pte_same) goto out_nomap; pte_unlock return on next refault will see mapped data by CPU B The concern of the patch would increase memory consumption since it could keep wasted memory with compressed form in zram as well as uncompressed form in address space. However, most of cases of zram uses no readahead and do_swap_page is followed by swap_free so it will free the compressed form from in zram quickly.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.1 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Scenarios
en: AV:L - The bug is reached only through the local anonymous page-fault path (el0 fault → handle_mm_fault → do_swap_page → swap_readpage → zram), which an unprivileged process exercises by touching its own swapped pages; it is not reachable from network protocol handlers or physical device I/O. AC:L - An attacker who creates CLONE_VM threads, forces their anon pages into zram swap, and faults the same PTE from both CPUs fully controls both sides of the race; the public reproducer triggers it reliably, so success does not depend on conditions outside the attacker’s influence. PR:L - Any unprivileged local user can clone with CLONE_VM, allocate memory, and induce swap faults; swapon/zram setup needs CAP_SYS_ADMIN but is a pre-existing deployment condition (e.g. Android), not a privilege the attacker must hold. UI:N - The attacker triggers the race solely by running their own multi-threaded process under memory pressure; no separate victim action such as mounting a filesystem or opening a crafted file is required. S:U - Impact stays within the local kernel/process memory authority (wrong PTE contents for the shared mm); there is no VM escape, IOMMU bypass, or other cross-boundary effect. C:N - After the premature zram_slot_free_notify, the second swap_readpage sees a cleared handle and zram_read_from_zspool fills the page with zeros; the swap slot is not returned to the free pool until later swap_free, so this does not disclose other processes’ data. I:H - The race maps full pages of zeros over valid anonymous memory in a shared mm, permanently corrupting userspace state (observed as zeroed pointers and RocksDB on-disk corruption); that is total loss of integrity for the affected process memory. A:H - Corrupted pages cause process crashes/coredumps and service failures under zram swap pressure, denying availability of the affected multi-threaded workloads; when scoring between limited disruption and hard failure, High is appropriate.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0bcac06f27d7528591c27ac2b093ccd71c5d0168 to < f86d55cf616199404c05f5b0c5c41b17351baa02 (affected · git)0bcac06f27d7528591c27ac2b093ccd71c5d0168 to < f098f8b9820fe3f2e41aefc4329dfe8a3859d1c1 (affected · git)0bcac06f27d7528591c27ac2b093ccd71c5d0168 to < 20ed94f8181a25212e7404e44958e234f407624b (affected · git)0bcac06f27d7528591c27ac2b093ccd71c5d0168 to < 12ba1d38115a101c45d8e0ca3aa1181fd148e57f (affected · git)0bcac06f27d7528591c27ac2b093ccd71c5d0168 to < afac4b88699a06c8b9369f9d759a1ec3c254b788 (affected · git)0bcac06f27d7528591c27ac2b093ccd71c5d0168 to < e914d8f00391520ecc4495dd0ca0124538ab7119 (affected · git)Default: unaffected Linux · cna
Linux Linux 4.15 (affected)0 to < 4.15 (unaffected · semver)4.19.242 through 4.19.* (unaffected · semver)5.4.193 through 5.4.* (unaffected · semver)5.10.112 through 5.10.* (unaffected · semver)5.15.35 through 5.15.* (unaffected · semver)5.17.4 through 5.17.* (unaffected · semver)5.18 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

1

Linux · cna

mm: fix unexpected zeroed page mapping with zram swap

Provenance

Schema
5.2
Searchable
yes
Content hash
8d0bc8a3218e9410767924a426bf79771f464b68071f0c423a4a807aa3c1642f
Ingested
23 Sep 2026, 08:04:03 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected