{
  "id": "CVE-2025-21915",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21915",
  "published_at": "2025-04-01T15:40:52.019Z",
  "title": "cdx: Fix possible UAF error in driver_override_show()",
  "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\ncdx: Fix possible UAF error in driver_override_show()\n\nFixed a possible UAF problem in driver_override_show() in drivers/cdx/cdx.c\n\nThis function driver_override_show() is part of DEVICE_ATTR_RW, which\nincludes both driver_override_show() and driver_override_store().\nThese functions can be executed concurrently in sysfs.\n\nThe driver_override_store() function uses driver_set_override() to\nupdate the driver_override value, and driver_set_override() internally\nlocks the device (device_lock(dev)). If driver_override_show() reads\ncdx_dev-\u003edriver_override without locking, it could potentially access\na freed pointer if driver_override_store() frees the string\nconcurrently. This could lead to printing a kernel address, which is a\nsecurity risk since DEVICE_ATTR can be read by all users.\n\nAdditionally, a similar pattern is used in drivers/amba/bus.c, as well\nas many other bus drivers, where device_lock() is taken in the show\nfunction, and it has been working without issues.\n\nThis potential bug was detected by our experimental static analysis\ntool, which analyzes locking APIs and paired functions to identify\ndata races and atomicity violations.",
  "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:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8,
    "cna": 7,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 2959ab247061e67485d83b6af8feb3761ec08cb9, \u003c d7b339bbc887bcfc1a5b620bfc70c6fbb8f733bf",
          "\u003e= 2959ab247061e67485d83b6af8feb3761ec08cb9, \u003c 8473135f89c0949436a22adb05b8cece2fb3da91",
          "\u003e= 2959ab247061e67485d83b6af8feb3761ec08cb9, \u003c 0439d541aa8d3444ad41c39e39eb71acb57acde3",
          "\u003e= 2959ab247061e67485d83b6af8feb3761ec08cb9, \u003c 91d44c1afc61a2fec37a9c7a3485368309391e0b"
        ],
        "fixed_in": [
          "d7b339bbc887bcfc1a5b620bfc70c6fbb8f733bf",
          "8473135f89c0949436a22adb05b8cece2fb3da91",
          "0439d541aa8d3444ad41c39e39eb71acb57acde3",
          "91d44c1afc61a2fec37a9c7a3485368309391e0b"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.4"
        ],
        "fixed_in": [
          "0",
          "6.6.83",
          "6.12.19",
          "6.13.7",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to d7b339bbc887bcfc1a5b620bfc70c6fbb8f733bf or 8473135f89c0949436a22adb05b8cece2fb3da91 or 0439d541aa8d3444ad41c39e39eb71acb57acde3 or 91d44c1afc61a2fec37a9c7a3485368309391e0b or later.",
      "Upgrade Linux to 0 or 6.6.83 or 6.12.19 or 6.13.7 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
