CVE-2025-21856
JSON

7.8high

s390/ism: add release function for struct device

Severity
7.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.3 before 6.6.80, from 6.7 before 6.12.17, from 6.13 before 6.13.5, 6.14NVD

All scores

CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: s390/ism: añadir función de liberación para struct device. Según device_release() en /drivers/base/core.c, un dispositivo sin función de liberación es un dispositivo dañado y debe repararse. El código actual libera el dispositivo directamente tras llamar a device_add() sin esperar a que otras partes del kernel liberen sus referencias. Por lo tanto, una referencia a un dispositivo de estructura podría seguir manteniéndose, por ejemplo, mediante sysfs, lo que podría provocar problemas de uso después de la liberación si no se configura una función de liberación adecuada.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21856 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-21856 changed 2026-06-17Public domain