{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38699","id":"CVE-2025-38699","title":"scsi: bfa: Double-free fix","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->im is freed without setting bfad->im 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 f","descriptionLong":"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->im is freed without setting bfad->im 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->im again, thereby\ntriggering a double-free vulnerability.\n\nSet bfad->im to NULL if probing fails.","published":"2025-09-04T15:32:51.420Z","updated":"2026-10-28T02:30:42.769541323Z","reserved":"2025-04-16T04:51:24.032Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","lessThan":"684c92bb08a25ed3c0356bc7eb532ed5b19588dd","status":"affected","versionType":"git"},{"version":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","lessThan":"9337c2affbaebe00b75fdf84ea0e2fcf93c140af","status":"affected","versionType":"git"},{"version":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","lessThan":"ba024d92564580bb90ec367248ace8efe16ce815","status":"affected","versionType":"git"},{"version":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","lessThan":"8e03dd9fadf76db5b9799583074a1a2a54f787f1","status":"affected","versionType":"git"},{"version":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","lessThan":"39cfe2c83146aad956318f866d0ee471b7a61fa5","status":"affected","versionType":"git"},{"version":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","lessThan":"13f613228cf3c96a038424cd97aa4d6aadc66294","status":"affected","versionType":"git"},{"version":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","lessThan":"8456f862cb95bcc3a831e1ba87c0c17068be0f3f","status":"affected","versionType":"git"},{"version":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","lessThan":"50d9bd48321038bd6e15af5a454bbcd180cf6f80","status":"affected","versionType":"git"},{"version":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","lessThan":"add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.32","status":"affected"},{"version":"0","lessThan":"2.6.32","status":"unaffected","versionType":"semver"},{"version":"5.4.297","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.241","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.190","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.149","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.103","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.43","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.11","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16.2","lessThanOrEqual":"6.16.*","status":"unaffected","versionType":"semver"},{"version":"6.17","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-415"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/684c92bb08a25ed3c0356bc7eb532ed5b19588dd","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9337c2affbaebe00b75fdf84ea0e2fcf93c140af","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ba024d92564580bb90ec367248ace8efe16ce815","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8e03dd9fadf76db5b9799583074a1a2a54f787f1","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/39cfe2c83146aad956318f866d0ee471b7a61fa5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/13f613228cf3c96a038424cd97aa4d6aadc66294","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8456f862cb95bcc3a831e1ba87c0c17068be0f3f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/50d9bd48321038bd6e15af5a454bbcd180cf6f80","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["Third Party Advisory","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38699.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38699","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00192,"epssPercentile":0.08969,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38699","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38699","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38699","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38699","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}