{"id":"CVE-2025-21856","published":"2025-03-12T09:42:09Z","modified":"2026-05-11T21:07:49Z","title":"s390/ism: add release function for struct device","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00308,"percentile":0.16137,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/940d15254d2216b585558bcf36312da50074e711","tags":[]},{"url":"https://git.kernel.org/stable/c/0505ff2936f166405d81d0d454a81d9c14124344","tags":[]},{"url":"https://git.kernel.org/stable/c/e26e8ac27351f457091459a0a355bacd06d5bb2b","tags":[]},{"url":"https://git.kernel.org/stable/c/915e34d5ad35a6a9e56113f852ade4a730fb88f0","tags":[]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":3.23},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8c81ba20349daf9f7e58bb05a0c12f4b71813a30, < 940d15254d2216b585558bcf36312da50074e711",">= 8c81ba20349daf9f7e58bb05a0c12f4b71813a30, < 0505ff2936f166405d81d0d454a81d9c14124344",">= 8c81ba20349daf9f7e58bb05a0c12f4b71813a30, < e26e8ac27351f457091459a0a355bacd06d5bb2b",">= 8c81ba20349daf9f7e58bb05a0c12f4b71813a30, < 915e34d5ad35a6a9e56113f852ade4a730fb88f0"]},{"vendor":"Linux","product":"Linux","versions":["6.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-10-01T19:25:59.490091Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-7596","exploited":false,"provenance":"source"}}