| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2025-21856: s390/ism: add release function for struct device |
| |
| 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 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 |