{"id":"CVE-2025-38699","aliases":["CVE-2025-38699"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: bfa: Double-free fix","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nscsi: bfa: Corrección de doble liberación\n\nCuando la función bfad_im_probe() falla durante la inicialización, la memoria apuntada por bfad->im es liberada sin establecer bfad->im a NULL.\n\nPosteriormente, durante la desinstalación del controlador, cuando la máquina de estados entra en el estado bfad_sm_stopping y llama a la función bfad_im_probe_undo(), intenta liberar la memoria apuntada por bfad->im de nuevo, lo que desencadena una vulnerabilidad de doble liberación.\n\nEstablezca bfad->im a NULL si el sondeo falla.","source":"nvd"}],"published":"2025-09-04T15:32:51.420Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","fixed":"684c92bb08a25ed3c0356bc7eb532ed5b19588dd","status":"affected"},{"type":"git","introduced":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","fixed":"9337c2affbaebe00b75fdf84ea0e2fcf93c140af","status":"affected"},{"type":"git","introduced":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","fixed":"ba024d92564580bb90ec367248ace8efe16ce815","status":"affected"},{"type":"git","introduced":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","fixed":"8e03dd9fadf76db5b9799583074a1a2a54f787f1","status":"affected"},{"type":"git","introduced":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","fixed":"39cfe2c83146aad956318f866d0ee471b7a61fa5","status":"affected"},{"type":"git","introduced":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","fixed":"13f613228cf3c96a038424cd97aa4d6aadc66294","status":"affected"},{"type":"git","introduced":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","fixed":"8456f862cb95bcc3a831e1ba87c0c17068be0f3f","status":"affected"},{"type":"git","introduced":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","fixed":"50d9bd48321038bd6e15af5a454bbcd180cf6f80","status":"affected"},{"type":"git","introduced":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e","fixed":"add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.32","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.32","status":"unaffected"},{"type":"semver","introduced":"5.4.297","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.241","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.190","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.149","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.103","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.43","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.11","lastAffected":"6.15.*","status":"unaffected"},{"type":"semver","introduced":"6.16.2","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.33","fixed":"5.4.297"},{"status":"affected","introduced":"5.5","fixed":"5.10.241"},{"status":"affected","introduced":"5.11","fixed":"5.15.190"},{"status":"affected","introduced":"5.16","fixed":"6.1.149"},{"status":"affected","introduced":"6.2","fixed":"6.6.103"},{"status":"affected","introduced":"6.7","fixed":"6.12.43"},{"status":"affected","introduced":"6.13","fixed":"6.15.11"},{"status":"affected","introduced":"6.16","fixed":"6.16.2"},{"status":"affected","version":"2.6.32"},{"status":"affected","version":"2.6.32"},{"status":"affected","version":"2.6.32"},{"status":"affected","version":"2.6.32"},{"status":"affected","version":"2.6.32"},{"status":"affected","version":"2.6.32"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/684c92bb08a25ed3c0356bc7eb532ed5b19588dd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9337c2affbaebe00b75fdf84ea0e2fcf93c140af","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba024d92564580bb90ec367248ace8efe16ce815","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8e03dd9fadf76db5b9799583074a1a2a54f787f1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/39cfe2c83146aad956318f866d0ee471b7a61fa5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13f613228cf3c96a038424cd97aa4d6aadc66294","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8456f862cb95bcc3a831e1ba87c0c17068be0f3f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/50d9bd48321038bd6e15af5a454bbcd180cf6f80","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38699","url":"https://www.cve.org/CVERecord?id=CVE-2025-38699","licence":"CVE Terms of Use","modified":"2026-05-12T12:05:36.591Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38699","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38699","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.145Z","epss":{"score":0.0029,"percentile":0.14087,"date":"2026-11-30T12:00:22.000Z"}}