{
  "id": "CVE-2025-21856",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21856",
  "published_at": "2025-03-12T09:42:09.929Z",
  "title": "s390/ism: add release function for struct device",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 8c81ba20349daf9f7e58bb05a0c12f4b71813a30, \u003c 940d15254d2216b585558bcf36312da50074e711",
          "\u003e= 8c81ba20349daf9f7e58bb05a0c12f4b71813a30, \u003c 0505ff2936f166405d81d0d454a81d9c14124344",
          "\u003e= 8c81ba20349daf9f7e58bb05a0c12f4b71813a30, \u003c e26e8ac27351f457091459a0a355bacd06d5bb2b",
          "\u003e= 8c81ba20349daf9f7e58bb05a0c12f4b71813a30, \u003c 915e34d5ad35a6a9e56113f852ade4a730fb88f0"
        ],
        "fixed_in": [
          "940d15254d2216b585558bcf36312da50074e711",
          "0505ff2936f166405d81d0d454a81d9c14124344",
          "e26e8ac27351f457091459a0a355bacd06d5bb2b",
          "915e34d5ad35a6a9e56113f852ade4a730fb88f0"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.3"
        ],
        "fixed_in": [
          "0",
          "6.6.80",
          "6.12.17",
          "6.13.5",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 940d15254d2216b585558bcf36312da50074e711 or 0505ff2936f166405d81d0d454a81d9c14124344 or e26e8ac27351f457091459a0a355bacd06d5bb2b or 915e34d5ad35a6a9e56113f852ade4a730fb88f0 or later.",
      "Upgrade Linux to 0 or 6.6.80 or 6.12.17 or 6.13.5 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
