CVE-2025-38699
JSON

7.8high

scsi: bfa: Double-free fix

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
0.29% (higher than 14% of CVEs)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: bfa: Double-free fix When the bfad_im_probe() function fails during initialization, the memory pointed to by bfad->im is freed without setting bfad->im to NULL. Subsequently, during driver uninstallation, when the state machine enters the bfad_sm_stopping state and calls the bfad_im_probe_undo() function, it attempts to free the memory pointed to by bfad->im again, thereby triggering a double-free vulnerability. Set bfad->im to NULL if probing fails.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 684c92bb08a25ed3c0356bc7eb532ed5b19588dd, from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 9337c2affbaebe00b75fdf84ea0e2fcf93c140af, from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before ba024d92564580bb90ec367248ace8efe16ce815, from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 8e03dd9fadf76db5b9799583074a1a2a54f787f1, from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 39cfe2c83146aad956318f866d0ee471b7a61fa5, from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 13f613228cf3c96a038424cd97aa4d6aadc66294, from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 8456f862cb95bcc3a831e1ba87c0c17068be0f3f, from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 50d9bd48321038bd6e15af5a454bbcd180cf6f80 and 2 more
Not affected: before 2.6.32, from 5.4.297 up to 5.4.*, from 5.10.241 up to 5.10.*, from 5.15.190 up to 5.15.*, from 6.1.149 up to 6.1.*, from 6.6.103 up to 6.6.*
CVE List
linux linux_kernelfrom 2.6.33 before 5.4.297, from 5.5 before 5.10.241, from 5.11 before 5.15.190, from 5.16 before 6.1.149, from 6.2 before 6.6.103, from 6.7 before 6.12.43, from 6.13 before 6.15.11, from 6.16 before 6.16.2 and 1 moreNVD
debian debian_linux11.0NVD

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: scsi: bfa: Double-free fix When the bfad_im_probe() function fails during initialization, the memory pointed to by bfad->im is freed without setting bfad->im to NULL. Subsequently, during driver uninstallation, when the state machine enters the bfad_sm_stopping state and calls the bfad_im_probe_undo() function, it attempts to free the memory pointed to by bfad->im again, thereby triggering a double-free vulnerability. Set bfad->im to NULL if probing fails.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: scsi: bfa: Corrección de doble liberación Cuando 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. Posteriormente, 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. Establezca bfad->im a NULL si el sondeo falla.

References

https://git.kernel.org/stable/c/684c92bb08a25ed3c0356bc7eb532ed5b19588ddpatch
https://git.kernel.org/stable/c/9337c2affbaebe00b75fdf84ea0e2fcf93c140afpatch
https://git.kernel.org/stable/c/ba024d92564580bb90ec367248ace8efe16ce815patch
https://git.kernel.org/stable/c/8e03dd9fadf76db5b9799583074a1a2a54f787f1patch
https://git.kernel.org/stable/c/39cfe2c83146aad956318f866d0ee471b7a61fa5patch
https://git.kernel.org/stable/c/13f613228cf3c96a038424cd97aa4d6aadc66294patch
https://git.kernel.org/stable/c/8456f862cb95bcc3a831e1ba87c0c17068be0f3fpatch
https://git.kernel.org/stable/c/50d9bd48321038bd6e15af5a454bbcd180cf6f80patch
https://git.kernel.org/stable/c/add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9patch
https://lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlthird-party-advisory
https://lists.debian.org/debian-lts-announce/2025/10/msg00007.htmlthird-party-advisory
https://cert-portal.siemens.com/productcert/html/ssa-032379.html

Sources

SourceRecordLicence
CVE ListCVE-2025-38699 changed 2026-05-12CVE Terms of Use
NVDCVE-2025-38699 changed 2026-10-19Public domain