s390/ism: add release function for struct device
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.17, 6.13.5, 6.6.80
- CVEs
- CVE-2025-21856
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 16:16 UTC · Revision 1
Source evidence
s390/ism: add release function for struct device
core-osv · Original sourcePublished 12 Mar 2025, 09:42 UTC
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.
osv:CVE-2025-21856
Kernel
Fixed versions: 6.6.80, 6.12.17, 6.13.5
Complete source record
{
"id": "4e822caf65547b6dec5b253244f307dd4e2b470b2eaad9deca132ac2c10ae91d",
"url": "https://osv.dev/vulnerability/CVE-2025-21856",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "s390/ism: add release function for struct device",
"summary": "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.",
"evidence": "osv:CVE-2025-21856",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.80",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.17",
"evidence": "/affected/1/ranges"
},
{
"value": "6.13.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2025-21856",
"aliases": [
"CVE-2025-21856"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "8c81ba20349daf9f7e58bb05a0c12f4b71813a30"
},
{
"fixed": "940d15254d2216b585558bcf36312da50074e711"
},
{
"fixed": "0505ff2936f166405d81d0d454a81d9c14124344"
},
{
"fixed": "e26e8ac27351f457091459a0a355bacd06d5bb2b"
},
{
"fixed": "915e34d5ad35a6a9e56113f852ade4a730fb88f0"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21856.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.3.0"
},
{
"fixed": "6.6.80"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.17"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.13.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21856.json"
}
}
],
"modified": "2026-10-28T02:30:37.450296245Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0505ff2936f166405d81d0d454a81d9c14124344",
"https://git.kernel.org/stable/c/915e34d5ad35a6a9e56113f852ade4a730fb88f0",
"https://git.kernel.org/stable/c/940d15254d2216b585558bcf36312da50074e711",
"https://git.kernel.org/stable/c/e26e8ac27351f457091459a0a355bacd06d5bb2b",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21856.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-21856",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21856.json"
}
},
"related_cves": [
{
"value": "CVE-2025-21856",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 504589,
"published_at": "2025-03-12T09:42:09.929+00:00"
}