CVE-2026-45981

s390/cio: Fix device lifecycle handling in css_alloc_subchannel()

MEDIUM
5.5
CVSS Score
Published: May 27, 2026 at 12:18 PM UTC
Updated: June 17, 2026 at 10:52 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.1%

Description

In the Linux kernel, the following vulnerability has been resolved: s390/cio: Fix device lifecycle handling in css_alloc_subchannel() `css_alloc_subchannel()` calls `device_initialize()` before setting up the DMA masks. If `dma_set_coherent_mask()` or `dma_set_mask()` fails, the error path frees the subchannel structure directly, bypassing the device model reference counting. Once `device_initialize()` has been called, the embedded struct device must be released via `put_device()`, allowing the release callback to free the container structure. Fix the error path by dropping the initial device reference with `put_device()` instead of calling `kfree()` directly. This ensures correct device lifetime handling and avoids potential use-after-free or double-free issues.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.10 ≤ v < 6.12.753.10 ≤ v < 6.18.143.10 ≤ v < 6.19.43.10 ≤ v < 6.6.1283.10 ≤ v < 7.06.13 ≤ v < 6.18.146.19 ≤ v < 6.19.46.7 ≤ v < 6.12.753.10e5dcf0025d7af58f525590ac86ac27cb44714e8d
Vendor states this is fixed in 6715560527e343a387e4a0d2e6c401748e89fa55 (fixed)
Vendor states this is fixed in abb6e07f46a740cda4f07d1b561ae4eaa7a1df42 (fixed)
Vendor states this is fixed in c35cfbb5341ba05ad1b4476ffc3c21cc3ff8f603 (fixed)
Vendor states this is fixed in f65c75b0b9b5a390bc3beadcde0a6fbc3ad118f7 (fixed)
Vendor states this is fixed in f96c5ccf95ae5f27218c1ce2d6a3ad2d3e105424 (fixed)
Vendor states this is fixed in 3.10 (unaffected)
Vendor states this is fixed in 6.12.75 (unaffected)
Vendor states this is fixed in 6.18.14 (unaffected)
Vendor states this is fixed in 6.19.4 (unaffected)
Vendor states this is fixed in 6.6.128 (unaffected)
Vendor states this is fixed in 7.0 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card