# CVE-2025-21856: s390/ism: add release function for struct device

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-03-12T09:42:09.929Z
- Modified: 2026-06-17T08:44:27.403Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 8c81ba20349daf9f7e58bb05a0c12f4b71813a30 before 940d15254d2216b585558bcf36312da50074e711; from 8c81ba20349daf9f7e58bb05a0c12f4b71813a30 before 0505ff2936f166405d81d0d454a81d9c14124344; from 8c81ba20349daf9f7e58bb05a0c12f4b71813a30 before e26e8ac27351f457091459a0a355bacd06d5bb2b; from 8c81ba20349daf9f7e58bb05a0c12f4b71813a30 before 915e34d5ad35a6a9e56113f852ade4a730fb88f0; 6.3 (not affected: before 6.3; from 6.6.80 up to 6.6.*; from 6.12.17 up to 6.12.*; from 6.13.5 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.3 before 6.6.80; from 6.7 before 6.12.17; from 6.13 before 6.13.5; 6.14

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/940d15254d2216b585558bcf36312da50074e711> (patch)
- <https://git.kernel.org/stable/c/0505ff2936f166405d81d0d454a81d9c14124344> (patch)
- <https://git.kernel.org/stable/c/e26e8ac27351f457091459a0a355bacd06d5bb2b> (patch)
- <https://git.kernel.org/stable/c/915e34d5ad35a6a9e56113f852ade4a730fb88f0> (patch)

## Sources

- CVE List: [CVE-2025-21856](https://www.cve.org/CVERecord?id=CVE-2025-21856), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21856](https://nvd.nist.gov/vuln/detail/CVE-2025-21856), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21856 · Whole record: https://cve.day/CVE-2025-21856.json · Rebuilt by cve.day 2026-11-25T22:58:55.202Z
