{"id":"CVE-2025-21856","aliases":["CVE-2025-21856"],"related":[],"kind":"vulnerability","state":"published","title":"s390/ism: add release function for struct device","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/ism: add release function for struct device\n\nAccording to device_release() in /drivers/base/core.c,\na device without a release function is a broken device\nand must be fixed.\n\nThe current code directly frees the device after calling device_add()\nwithout waiting for other kernel parts to release their references.\nThus, a reference could still be held to a struct device,\ne.g., by sysfs, leading to potential use-after-free\nissues if a proper release function is not set.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/ism: add release function for struct device\n\nAccording to device_release() in /drivers/base/core.c,\na device without a release function is a broken device\nand must be fixed.\n\nThe current code directly frees the device after calling device_add()\nwithout waiting for other kernel parts to release their references.\nThus, a reference could still be held to a struct device,\ne.g., by sysfs, leading to potential use-after-free\nissues if a proper release function is not set.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-03-12T09:42:09.929Z","modified":"2026-06-17T08:44:27.403Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"8c81ba20349daf9f7e58bb05a0c12f4b71813a30","fixed":"940d15254d2216b585558bcf36312da50074e711","status":"affected"},{"type":"git","introduced":"8c81ba20349daf9f7e58bb05a0c12f4b71813a30","fixed":"0505ff2936f166405d81d0d454a81d9c14124344","status":"affected"},{"type":"git","introduced":"8c81ba20349daf9f7e58bb05a0c12f4b71813a30","fixed":"e26e8ac27351f457091459a0a355bacd06d5bb2b","status":"affected"},{"type":"git","introduced":"8c81ba20349daf9f7e58bb05a0c12f4b71813a30","fixed":"915e34d5ad35a6a9e56113f852ade4a730fb88f0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.3","status":"unaffected"},{"type":"semver","introduced":"6.6.80","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.17","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.5","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.3","fixed":"6.6.80"},{"status":"affected","introduced":"6.7","fixed":"6.12.17"},{"status":"affected","introduced":"6.13","fixed":"6.13.5"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/940d15254d2216b585558bcf36312da50074e711","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0505ff2936f166405d81d0d454a81d9c14124344","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e26e8ac27351f457091459a0a355bacd06d5bb2b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/915e34d5ad35a6a9e56113f852ade4a730fb88f0","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-10-01T19:25:59.490Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21856","url":"https://www.cve.org/CVERecord?id=CVE-2025-21856","licence":"CVE Terms of Use","modified":"2026-05-11T21:07:49.863Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21856","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21856","licence":"Public domain","modified":"2026-06-17T08:44:27.403Z"}],"updatedAt":"2026-11-25T22:58:55.202Z","epss":{"score":0.00224,"percentile":0.13861,"date":"2026-12-01T12:00:22.000Z"}}