Improper Cleanup on Thrown Exception Affecting torvalds/linux package, versions [5.7,6.1.191)[6.2,6.6.160)[6.7,6.12.11)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-TORVALDSLINUX-20698614
  • published10 Oct 2026
  • disclosed12 Feb 2025
  • creditUnknown

Introduced: 12 Feb 2025

CVE-2025-21696  (opens in a new tab)
CWE-670  (opens in a new tab)

How to fix?

Upgrade torvalds/linux to version 6.1.191, 6.6.160, 6.12.11 or higher.

Overview

Affected versions of this package are vulnerable to Improper Cleanup on Thrown Exception in the mremap process when handling memory regions previously registered with userfaultfd as write-protected but without the UFFD_FEATURE_EVENT_REMAP feature. An attacker can cause a mismatch between virtual memory area flags and page table entry flags by remapping such regions, potentially leading to warnings or undefined behavior when changing memory protections.

Note: The Linux kernel project assigns a CVE to every bug fix it ships, whether or not the bug has been shown to be exploitable. This advisory was generated from that process and has not been individually assessed for exploitability. See the kernel's CVE process documentation: https://github.com/torvalds/linux/blob/master/Documentation/process/cve.rst

CVSS Base Scores

version 4.0
version 3.1