Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 804473FB055 for ; Wed, 27 May 2026 12:27:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884851; cv=none; b=YRAECf2Ufyt9YXEZt3jFK6QuD6tadECmz/2OJiz2+6xyG/qKqCmHEs93tO0Snx8lKEXFYKLZXLV6+61hFkcKgs3lm5YGj+w+/xUYFvsrw4lheONuqQ9SWK7CldwdcZANRqX+xPZLc5P8QmMtVO+oKemOZ0YjNeyfQX04a2TnCt0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884851; c=relaxed/simple; bh=LTPf3wSqOV9XtEjnmkS9rlHGl4vvRmxujvRzpFTufw0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lGiM2jFTrqVRi6B5eUnhOIvnbIQFTgOSlJAWNuvtJvreVjAWDX1qYnV1el/FG1/QLi1+8JJzZf4Vb0uJKgdYNRH61KFTTzzNqIC2vIgvQKCo8Cfjgzmb8gtzRizkLq46aVMsonM9s4NBoDFIdJe/O9FaMGrvoLvJQWetZdwpscQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jPDEKD8F; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jPDEKD8F" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D3EE1F000E9; Wed, 27 May 2026 12:27:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884850; bh=ws3tOcY4QrslRMna2LyI4sEtNMhUGigh5BdBBGfY25c=; h=From:To:Cc:Subject:Date:Reply-To; b=jPDEKD8FtI3T3QBO9RBLJTmoWQ6stVnyBQ021MdVQaZ1AXnPtejJx2FGZS/cUKvoV QkvZ3dwc1k1QcUC4G/iYd8asxhkdzn/oosaWg1Q1hbKdKqUlWa/WXs9Kk2slEzQbkE 8CZda7U1ZHBHp2fSm2NsutAx9PkIxdjMuzGMSTaI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45981: s390/cio: Fix device lifecycle handling in css_alloc_subchannel() Date: Wed, 27 May 2026 14:20:23 +0200 Message-ID: <2026052738-CVE-2026-45981-962a@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3801; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yN60sf6yG2BrbsRXwcZrA9LyhD3DBEM8H+1cgAZJqxY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD+XMN6VW6/e3njI27zqZp2f+1pG/ypQpQFxdt7T82 rktB1k6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCKrvjEs6Ands1l6eqxO/57a rNerk/ZGav/XYZjvmHFR88P911maNgd+6FmFPTv5rz0WAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-45981 to this issue. Affected and fixed versions =========================== Issue introduced in 3.10 with commit e5dcf0025d7af58f525590ac86ac27cb44714e8d and fixed in 5.10.252 with commit 2b2ad7ad4a28ffdb9f94e6d979b88a5b12b71681 Issue introduced in 3.10 with commit e5dcf0025d7af58f525590ac86ac27cb44714e8d and fixed in 5.15.202 with commit b1d4e6fb241672850296956c4d782a69363a3807 Issue introduced in 3.10 with commit e5dcf0025d7af58f525590ac86ac27cb44714e8d and fixed in 6.1.165 with commit fd295a75d828c11acfcc6869c2a12cdaaf9b7722 Issue introduced in 3.10 with commit e5dcf0025d7af58f525590ac86ac27cb44714e8d and fixed in 6.6.128 with commit abb6e07f46a740cda4f07d1b561ae4eaa7a1df42 Issue introduced in 3.10 with commit e5dcf0025d7af58f525590ac86ac27cb44714e8d and fixed in 6.12.75 with commit f96c5ccf95ae5f27218c1ce2d6a3ad2d3e105424 Issue introduced in 3.10 with commit e5dcf0025d7af58f525590ac86ac27cb44714e8d and fixed in 6.18.14 with commit 6715560527e343a387e4a0d2e6c401748e89fa55 Issue introduced in 3.10 with commit e5dcf0025d7af58f525590ac86ac27cb44714e8d and fixed in 6.19.4 with commit c35cfbb5341ba05ad1b4476ffc3c21cc3ff8f603 Issue introduced in 3.10 with commit e5dcf0025d7af58f525590ac86ac27cb44714e8d and fixed in 7.0 with commit f65c75b0b9b5a390bc3beadcde0a6fbc3ad118f7 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-45981 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/s390/cio/css.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/2b2ad7ad4a28ffdb9f94e6d979b88a5b12b71681 https://git.kernel.org/stable/c/b1d4e6fb241672850296956c4d782a69363a3807 https://git.kernel.org/stable/c/fd295a75d828c11acfcc6869c2a12cdaaf9b7722 https://git.kernel.org/stable/c/abb6e07f46a740cda4f07d1b561ae4eaa7a1df42 https://git.kernel.org/stable/c/f96c5ccf95ae5f27218c1ce2d6a3ad2d3e105424 https://git.kernel.org/stable/c/6715560527e343a387e4a0d2e6c401748e89fa55 https://git.kernel.org/stable/c/c35cfbb5341ba05ad1b4476ffc3c21cc3ff8f603 https://git.kernel.org/stable/c/f65c75b0b9b5a390bc3beadcde0a6fbc3ad118f7