{
  "id": "CVE-2025-38699",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38699",
  "published_at": "2025-09-04T15:32:51.42Z",
  "title": "scsi: bfa: Double-free fix",
  "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\nscsi: bfa: Double-free fix\n\nWhen the bfad_im_probe() function fails during initialization, the memory\npointed to by bfad-\u003eim is freed without setting bfad-\u003eim to NULL.\n\nSubsequently, during driver uninstallation, when the state machine enters\nthe bfad_sm_stopping state and calls the bfad_im_probe_undo() function,\nit attempts to free the memory pointed to by bfad-\u003eim again, thereby\ntriggering a double-free vulnerability.\n\nSet bfad-\u003eim to NULL if probing fails.",
  "cwe": "CWE-415",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.32:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.32:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.32:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.32:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.32:rc7:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.32:rc8:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, \u003c 684c92bb08a25ed3c0356bc7eb532ed5b19588dd",
          "\u003e= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, \u003c 9337c2affbaebe00b75fdf84ea0e2fcf93c140af",
          "\u003e= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, \u003c ba024d92564580bb90ec367248ace8efe16ce815",
          "\u003e= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, \u003c 8e03dd9fadf76db5b9799583074a1a2a54f787f1",
          "\u003e= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, \u003c 39cfe2c83146aad956318f866d0ee471b7a61fa5",
          "\u003e= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, \u003c 13f613228cf3c96a038424cd97aa4d6aadc66294",
          "\u003e= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, \u003c 8456f862cb95bcc3a831e1ba87c0c17068be0f3f",
          "\u003e= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, \u003c 50d9bd48321038bd6e15af5a454bbcd180cf6f80",
          "\u003e= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, \u003c add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9"
        ],
        "fixed_in": [
          "684c92bb08a25ed3c0356bc7eb532ed5b19588dd",
          "9337c2affbaebe00b75fdf84ea0e2fcf93c140af",
          "ba024d92564580bb90ec367248ace8efe16ce815",
          "8e03dd9fadf76db5b9799583074a1a2a54f787f1",
          "39cfe2c83146aad956318f866d0ee471b7a61fa5",
          "13f613228cf3c96a038424cd97aa4d6aadc66294",
          "8456f862cb95bcc3a831e1ba87c0c17068be0f3f",
          "50d9bd48321038bd6e15af5a454bbcd180cf6f80",
          "add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "2.6.32"
        ],
        "fixed_in": [
          "0",
          "5.4.297",
          "5.10.241",
          "5.15.190",
          "6.1.149",
          "6.6.103",
          "6.12.43",
          "6.15.11",
          "6.16.2",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 684c92bb08a25ed3c0356bc7eb532ed5b19588dd or 9337c2affbaebe00b75fdf84ea0e2fcf93c140af or ba024d92564580bb90ec367248ace8efe16ce815 or 8e03dd9fadf76db5b9799583074a1a2a54f787f1 or 39cfe2c83146aad956318f866d0ee471b7a61fa5 or 13f613228cf3c96a038424cd97aa4d6aadc66294 or 8456f862cb95bcc3a831e1ba87c0c17068be0f3f or 50d9bd48321038bd6e15af5a454bbcd180cf6f80 or add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9 or later.",
      "Upgrade Linux to 0 or 5.4.297 or 5.10.241 or 5.15.190 or 6.1.149 or 6.6.103 or 6.12.43 or 6.15.11 or 6.16.2 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
