{"id":"CVE-2025-38699","summary":"scsi: bfa: Double-free fix","details":"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.","modified":"2026-04-16T04:37:04.193582182Z","published":"2025-09-04T15:32:51.420Z","related":["SUSE-SU-2025:21040-1","SUSE-SU-2025:21052-1","SUSE-SU-2025:21056-1","SUSE-SU-2025:21064-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4128-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4140-1","SUSE-SU-2025:4141-1","SUSE-SU-2025:4189-1","SUSE-SU-2025:4301-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38699.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/13f613228cf3c96a038424cd97aa4d6aadc66294"},{"type":"WEB","url":"https://git.kernel.org/stable/c/39cfe2c83146aad956318f866d0ee471b7a61fa5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/50d9bd48321038bd6e15af5a454bbcd180cf6f80"},{"type":"WEB","url":"https://git.kernel.org/stable/c/684c92bb08a25ed3c0356bc7eb532ed5b19588dd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8456f862cb95bcc3a831e1ba87c0c17068be0f3f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8e03dd9fadf76db5b9799583074a1a2a54f787f1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9337c2affbaebe00b75fdf84ea0e2fcf93c140af"},{"type":"WEB","url":"https://git.kernel.org/stable/c/add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ba024d92564580bb90ec367248ace8efe16ce815"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38699.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38699"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7725ccfda59715ecf8f99e3b520a0b84cc2ea79e"},{"fixed":"684c92bb08a25ed3c0356bc7eb532ed5b19588dd"},{"fixed":"9337c2affbaebe00b75fdf84ea0e2fcf93c140af"},{"fixed":"ba024d92564580bb90ec367248ace8efe16ce815"},{"fixed":"8e03dd9fadf76db5b9799583074a1a2a54f787f1"},{"fixed":"39cfe2c83146aad956318f866d0ee471b7a61fa5"},{"fixed":"13f613228cf3c96a038424cd97aa4d6aadc66294"},{"fixed":"8456f862cb95bcc3a831e1ba87c0c17068be0f3f"},{"fixed":"50d9bd48321038bd6e15af5a454bbcd180cf6f80"},{"fixed":"add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38699.json"}}],"schema_version":"1.7.5"}