Skip to main content
Mallory
← Back to News
widely-deployed-product-advisoryendpoint-software-vulnerabilityprivilege-escalation-method

Linux Kernel zram Use-After-Free Fixed in CVE-2025-21671

Patch & Detection Intelligence · 3 sources · Updated 3mo ago · First seen Nov 11, 2025

Linux Kernel zram Use-After-Free Fixed in CVE-2025-21671

CVE-2025-21671 is a use-after-free flaw in the Linux kernel's zram compressed-RAM driver. If zram_meta_alloc fails early, it frees zram->table without clearing the pointer; a local privileged user can then reset the failed, uninitialized zram device and cause zram_meta_free to access freed memory, potentially compromising system confidentiality, integrity, or availability. The issue is tracked as CWE-416 and is rated 6.7 (Moderate) by Red Hat, while NVD and CVE.org assign CVSS 7.8.

The flaw affects stable kernel lines beginning at 6.1.122, 6.6.68, and 6.12.7, and is fixed in 6.1.127, 6.6.74, and 6.12.11; administrators should deploy current stable kernel releases rather than cherry-picking the patch. Red Hat remediated supported RHEL 10 and RHEL 9 kernels through RHSA-2025:20095 and RHSA-2025:20518, respectively, while the RHEL 9 kernel-rt package remains affected; older unsupported kernel packages are outside Red Hat support scope.

Why it matters

Impact assessment

CVE-2025-21671 enables a local privileged user to trigger a use-after-free condition in the Linux kernel zram driver, with potential confidentiality, integrity, and availability impact. Exposure is limited to systems using affected kernel builds with zram available and an attacker who already has local access and sufficient privileges; no exploitation in the wild is reported in the supplied references.

  • Affected populations: Linux hosts running affected stable kernels, including RHEL 9 and RHEL 10 prior to their respective remediations.
  • Potential outcomes: kernel memory disclosure, memory corruption, denial of service, and possible code execution depending on heap reuse conditions.
  • Scope: targeted local post-compromise or privileged-user abuse, not a remote initial-access vulnerability.
  • RHEL status: RHEL 9 and RHEL 10 standard kernels have fixes; RHEL 9 kernel-rt remains affected. RHEL 7 and RHEL 8 kernel packages are outside support scope and should be treated as potentially affected.

Supporting facts

  • CVE-2025-21671 is classified as CWE-416, Use After Free.
  • Red Hat rates the issue CVSS 6.7: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
  • NVD and CVE.org assign CVSS 7.8, reflecting a lower-privilege requirement.
  • No public IOCs, malware attribution, or confirmed exploitation evidence is provided.
Patch this, or something else?See real exploitation activity before you spend the cycle.
Triage this advisory
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Jan 31, 2025 – Nov 11, 2025
  1. Nov 11, 20251y ago

    Red Hat releases RHEL 9 and 10 fixes for CVE-2025-21671

    Red Hat released RHSA-2025:20095 for RHEL 10 and RHSA-2025:20518 for RHEL 9 to address CVE-2025-21671. Red Hat rated the local, privileged zram use-after-free vulnerability Moderate, with a CVSS v3.1 score of 6.7.

    CVE-2025-21671 - Red Hat Customer Portal
  2. Jan 31, 20252y ago

    Linux kernel CVE team announces zram use-after-free flaw

    The Linux kernel CVE team announced CVE-2025-21671, a potential use-after-free in the zram driver caused by an early allocation-failure path leaving a freed zram table pointer non-NULL. The advisory identified fixes in Linux kernel versions 6.1.127, 6.6.74, and 6.12.11 and recommended upgrading to the latest stable release.

    CVE-2025-21671: zram: fix potential UAF of zram table
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Red Hat Enterprise Linux
Do you run this?See real exploitation activity behind this advisory so you can triage it against everything else in the queue.
Prioritize This Patch
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.