Menu

Star on GitHub · 3.2k

CVE-2025-21860

3.3 · LOW

In the Linux kernel, the following vulnerability has been resolved: mm/zswap: fix inconsistency when zswap_store_page() fails Commit b7c0ccdfbafd ("mm: zswap: support large folios in zswap_store(…

Published Mar 12, 2025EPSS 0.22%

Overview

CVE-2025-21860 is a low-severity vulnerability. It was published on March 12, 2025 and has a CVSS 3.1 base score of 3.3 (LOW).

This vulnerability has a CVSS 3.1 base score of 3.3, rated LOW. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

mm/zswap: fix inconsistency when zswap_store_page() fails

Commit b7c0ccdfbafd ("mm: zswap: support large folios in zswap_store()")

skips charging any zswap entries when it failed to zswap the entire folio.

However, when some base pages are zswapped but it failed to zswap the

entire folio, the zswap operation is rolled back. When freeing zswap

entries for those pages, zswap_entry_free() uncharges the zswap entries

that were not previously charged, causing zswap charging to become

inconsistent.

This inconsistency triggers two warnings with following steps:

# On a machine with 64GiB of RAM and 36GiB of zswap

$ stress-ng --bigheap 2 # wait until the OOM-killer kills stress-ng

$ sudo reboot

The two warnings are:

in mm/memcontrol.c:163, function obj_cgroup_release():

WARN_ON_ONCE(nr_bytes & (PAGE_SIZE - 1));

in mm/page_counter.c:60, function page_counter_cancel():

if (WARN_ONCE(new < 0, "pa

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-21860?

CVE-2025-21860 is a low-severity vulnerability. It was published on March 12, 2025 and has a CVSS 3.1 base score of 3.3 (LOW).

How severe is CVE-2025-21860?

This vulnerability has a CVSS 3.1 base score of 3.3, rated LOW. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-21860?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-21860?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-21860 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related LOW CVEs from 2025

View all