Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2ED3923BCE2 for ; Wed, 12 Mar 2025 09:42:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741772565; cv=none; b=ro/l0Lf1+vvMXKp9T1UBThUMB0dmFeMKYZLEPiZjzi+NFX6VxmUhuPLyVcSv4FcQGCd6MUZ3xF87gH6Fi/XJ/ck9CkFxN98CoF+dVWfqC1EEemr9BvNJ5Gyg9uK05cJr0kq2kE2nbBf7la6JZGSj/NdWYtJyKrkSDHHApBiMW6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741772565; c=relaxed/simple; bh=oha9JIZ76jaoD0Orl3O90JvDe+MrKffInocbF0GoBPM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=l9/3UjEp/xHNMumQzZWrNQ2KZ11KF8Ym3Czuh61H8phdiMwlSM2GfLzfhxEnDF4EI+bcvwOF+JsDX6wXUrFAu7OT4S02YnmUcLio9yHMxZplT7/Y5h2M4Uf0wbxd386tgADgWqlKO7oORcjPxNC3HRxaopCBOBAWVhNHZX6M4Io= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oqrwV9oY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oqrwV9oY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AD9DC4CEE3; Wed, 12 Mar 2025 09:42:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741772564; bh=oha9JIZ76jaoD0Orl3O90JvDe+MrKffInocbF0GoBPM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oqrwV9oYt5akXC1BCqq924sHL/IcQOhu+OZgSon3zgzQLWV0tGNaFzwfIUoa0vLbh eIDWVJ8jFgoOpwvU9sKJg4+q43b+IPlUhI4NKuouQEbQ8oz7zvfrsb/P2gODyARU8H fhCeQFQxPTJ048YWX9YPIOvs87TtRiMUHNNJh0SQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21856: s390/ism: add release function for struct device Date: Wed, 12 Mar 2025 10:42:22 +0100 Message-ID: <2025031215-CVE-2025-21856-8865@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2648; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oha9JIZ76jaoD0Orl3O90JvDe+MrKffInocbF0GoBPM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkXw75/7+kKN4lk39a5UUm/RnalYA13pGjQ6+O7bhmfW 5N9vKa5I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYiJcswT7co8lnbMZ7ZDcVl u2NntN27c/iEAcOCi80//1RMmMm8Ty4+5MC/Be/PuchqAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: s390/ism: add release function for struct device According to device_release() in /drivers/base/core.c, a device without a release function is a broken device and must be fixed. The current code directly frees the device after calling device_add() without waiting for other kernel parts to release their references. Thus, a reference could still be held to a struct device, e.g., by sysfs, leading to potential use-after-free issues if a proper release function is not set. The Linux kernel CVE team has assigned CVE-2025-21856 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit 8c81ba20349daf9f7e58bb05a0c12f4b71813a30 and fixed in 6.6.80 with commit 940d15254d2216b585558bcf36312da50074e711 Issue introduced in 6.3 with commit 8c81ba20349daf9f7e58bb05a0c12f4b71813a30 and fixed in 6.12.17 with commit 0505ff2936f166405d81d0d454a81d9c14124344 Issue introduced in 6.3 with commit 8c81ba20349daf9f7e58bb05a0c12f4b71813a30 and fixed in 6.13.5 with commit e26e8ac27351f457091459a0a355bacd06d5bb2b Issue introduced in 6.3 with commit 8c81ba20349daf9f7e58bb05a0c12f4b71813a30 and fixed in 6.14-rc4 with commit 915e34d5ad35a6a9e56113f852ade4a730fb88f0 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-2025-21856 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/net/ism_drv.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/940d15254d2216b585558bcf36312da50074e711 https://git.kernel.org/stable/c/0505ff2936f166405d81d0d454a81d9c14124344 https://git.kernel.org/stable/c/e26e8ac27351f457091459a0a355bacd06d5bb2b https://git.kernel.org/stable/c/915e34d5ad35a6a9e56113f852ade4a730fb88f0