Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2025-21984

7.8 · HIGH
Published Apr 1, 2025 linux CWE-362 EPSS 0.15% (4th pctl)

Overview

CVE-2025-21984 is a high-severity vulnerability affecting linux linux_kernel. It was published on April 1, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. 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: fix kernel BUG when userfaultfd_move encounters swapcache

userfaultfd_move() checks whether the PTE entry is present or a

swap entry.

- If the PTE entry is present, move_present_pte() handles folio

migration by setting:

src_folio->index = linear_page_index(dst_vma, dst_addr);

- If the PTE entry is a swap entry, move_swap_pte() simply copies

the PTE to the new dst_addr.

This approach is incorrect because, even if the PTE is a swap entry,

it can still reference a folio that remains in the swap cache.

This creates a race window between steps 2 and 4.

1. add_to_swap: The folio is added to the swapcache.

2. try_to_unmap: PTEs are converted to swap entries.

3. pageout: The folio is written back.

4. Swapcache is cleared.

If userfaultfd_move() occurs in the window between steps 2 and 4,

after the swap PTE has been moved to the destination, accessing the

destination triggers do_swap_page(), which may locate

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. 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.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 6.8, < 6.12.20 Affected

Frequently Asked Questions

What is CVE-2025-21984?

CVE-2025-21984 is a high-severity vulnerability affecting linux linux_kernel. It was published on April 1, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2025-21984?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. 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-21984?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. 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-21984?

CyberStrike's AI-powered security agents can automatically detect CVE-2025-21984 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.