Junglewise Threat Intelligence

CVE-2026-45981: Linux Kernel s390/cio use-after-free in css_alloc_subchannel

CVE-2026-45981 · Severity: info · CVSS 0 · Published 2026-05-27

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's s390 architecture subsystem. It involves improper management of hardware device lifecycles during initialization. If a specific hardware setup step fails, the system might incorrectly free memory, potentially leading to system instability or crashes. This affects the reliability of IBM Z (s390) systems running Linux.

Technical details

A vulnerability in `drivers/s390/cio/css.c` within the Linux kernel's s390 architecture support arises from incorrect reference counting in `css_alloc_subchannel()`. The function calls `device_initialize()`, which initializes the reference counter for the embedded `struct device`. However, if subsequent calls to `dma_set_coherent_mask()` or `dma_set_mask()` fail, the error path invokes `kfree()` directly on the subchannel structure. This bypasses the device model's reference counting mechanism. To exploit this, an attacker would likely need to trigger specific hardware initialization failures. The fix replaces the direct `kfree()` call with `put_device()`, ensuring the release callback handles memory deallocation correctly. This prevents potential use-after-free or double-free scenarios.

Affected products

  • Linux Linux Kernel s390/cio component

Timeline

  • 2026-05-27: disclosed: CVE published by kernel.org via NVD
  • 2026-03-04: patched: Fix committed to stable kernel branches

References

Related threats