{
  "id": "CVE-2026-31582",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31582",
  "published_at": "2026-04-24T14:42:12.257Z",
  "title": "hwmon: (powerz) Fix use-after-free on USB disconnect",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "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\nhwmon: (powerz) Fix use-after-free on USB disconnect\n\nAfter powerz_disconnect() frees the URB and releases the mutex, a\nsubsequent powerz_read() call can acquire the mutex and call\npowerz_read_data(), which dereferences the freed URB pointer.\n\nFix by:\n - Setting priv-\u003eurb to NULL in powerz_disconnect() so that\n   powerz_read_data() can detect the disconnected state.\n - Adding a !priv-\u003eurb check at the start of powerz_read_data()\n   to return -ENODEV on a disconnected device.\n - Moving usb_set_intfdata() before hwmon registration so the\n   disconnect handler can always find the priv pointer.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \u003c c78e1d4e48f23792adaa7c94251e22b0d9700a39",
          "\u003e= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \u003c 9e1b798257f96d2e2a2639830eb71add545ce749",
          "\u003e= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \u003c 7003ae4810ca83f0ddca85b768500e313c4b998c",
          "\u003e= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \u003c 61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4",
          "\u003e= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \u003c 08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4"
        ],
        "fixed_in": [
          "c78e1d4e48f23792adaa7c94251e22b0d9700a39",
          "9e1b798257f96d2e2a2639830eb71add545ce749",
          "7003ae4810ca83f0ddca85b768500e313c4b998c",
          "61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4",
          "08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.7"
        ],
        "fixed_in": [
          "0",
          "6.12.83",
          "6.18.24",
          "6.19.14",
          "7.0.1",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to c78e1d4e48f23792adaa7c94251e22b0d9700a39 or 9e1b798257f96d2e2a2639830eb71add545ce749 or 7003ae4810ca83f0ddca85b768500e313c4b998c or 61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4 or 08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4 or later.",
      "Upgrade Linux to 0 or 6.12.83 or 6.18.24 or 6.19.14 or 7.0.1 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
