Skip to main content
Vulnerability Database/CVE-2026-98024

CVE-2026-98024: Linux Kernel Use-After-Free Vulnerability

CVE-2026-98024 is a use-after-free vulnerability in the Linux kernel s390/ism component affecting memory management. This article covers the technical details, affected kernel versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98024 Overview

CVE-2026-98024 is a memory management flaw in the Linux kernel's s390/ism driver. The ism_alloc_dmb() function allocated memory for dmb->cpu_addr using folio_alloc() but incorrectly released it with kfree() on the error path. This mismatch between allocator and deallocator corrupts the slab allocator. The fix replaces kfree() with folio_put() and resets dmb->cpu_addr to prevent a potential use-after-free [CWE-416] by future callers. The vulnerability is specific to IBM System z (s390) architecture systems using Internal Shared Memory (ISM) devices.

Critical Impact

Mismatched memory deallocation in the s390/ism driver can corrupt the kernel slab allocator and introduce use-after-free conditions, risking kernel instability and memory safety violations.

Affected Products

  • Linux kernel versions containing the s390/ism driver prior to the fix
  • IBM System z (s390x) architecture systems using ISM devices
  • Distributions shipping affected mainline and stable kernel branches

Discovery Timeline

  • 2026-09-25 - CVE-2026-98024 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-98024

Vulnerability Analysis

The vulnerability resides in the ism_alloc_dmb() function within the s390 ISM driver. Direct Memory Buffers (DMBs) are used to facilitate shared memory communication between logical partitions on IBM Z systems. During DMB allocation, the driver obtains memory for dmb->cpu_addr through folio_alloc(), which returns a folio-managed page.

On the error exit path, the original code called kfree() to release this memory. Because the memory was never allocated through the slab allocator, passing it to kfree() creates allocator state corruption. This corruption can propagate across unrelated kernel subsystems that depend on slab integrity.

The secondary issue involves dmb->cpu_addr not being reset after release. A later caller could dereference the stale pointer, leading to a use-after-free condition.

Root Cause

The root cause is an allocator mismatch. Memory obtained from the folio API must be released through folio-specific functions such as folio_put(). Using kfree() on folio-backed memory violates the allocator contract and causes slab metadata corruption.

Attack Vector

Triggering the flaw requires reaching the error path of ism_alloc_dmb() on an s390 system with ISM hardware. Exploitation requires local kernel code paths that invoke DMB allocation and encounter the failure branch. The vulnerability is not remotely exploitable over the network without additional preconditions.

The vulnerability manifests in the DMB allocation routine. See the referenced kernel commits for the exact patch diff.

Detection Methods for CVE-2026-98024

Indicators of Compromise

  • Kernel log messages reporting slab corruption, BUG: unable to handle, or kernel BUG at mm/slub.c
  • Unexpected kernel panics or oopses on s390 systems during ISM device initialization or teardown
  • KASAN reports flagging use-after-free in the s390/ism subsystem

Detection Strategies

  • Inventory running kernel versions on s390x hosts and compare against the patched commits 60983356, 890e2ef7, 907a56ab, and eebb6a90
  • Enable KASAN and SLUB_DEBUG in test environments to detect allocator mismatches during ISM operations
  • Monitor dmesg output for recurring faults originating in the drivers/s390/net/ism code path

Monitoring Recommendations

  • Centralize kernel log collection from s390 hosts and alert on slab corruption or oops signatures
  • Track vendor security advisories from distributions that ship affected s390 kernels
  • Review change-management records for s390 kernel updates and confirm the patch is applied

How to Mitigate CVE-2026-98024

Immediate Actions Required

  • Apply the upstream Linux kernel patches that replace kfree() with folio_put() in ism_alloc_dmb() error handling
  • Prioritize patching s390x systems that host workloads relying on ISM-based shared memory
  • Reboot into the patched kernel after installation to ensure the vulnerable code path is replaced

Patch Information

The fix is distributed across stable kernel commits: Linux Kernel Commit 60983356, Linux Kernel Commit 890e2ef7, Linux Kernel Commit 907a56ab, and Linux Kernel Commit eebb6a90. The patch calls folio_put() on the folio-allocated buffer and resets dmb->cpu_addr to NULL to prevent subsequent use-after-free dereferences.

Workarounds

  • No vendor-supplied workaround is published; apply the kernel patch
  • On non-s390 architectures, the vulnerable code path is not reachable and no action is required
  • Where immediate patching is not possible, limit privileged local access and avoid stressing ISM allocation paths
bash
# Verify running kernel version on an s390 host
uname -r

# Confirm distribution package includes the fix
rpm -q --changelog kernel | grep -i "ism\|folio_put"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.