CVE-2025-38699
scsi: bfa: Double-free fix
Check your servers for CVE-2025-38699
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38699 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.9% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, before 684c92bb08a25ed3c0356bc7eb532ed5b19588dd affected from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, before 9337c2affbaebe00b75fdf84ea0e2fcf93c140af affected from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, before ba024d92564580bb90ec367248ace8efe16ce815 affected from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, before 8e03dd9fadf76db5b9799583074a1a2a54f787f1 affected from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, before 39cfe2c83146aad956318f866d0ee471b7a61fa5 affected from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, before 13f613228cf3c96a038424cd97aa4d6aadc66294 affected from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, before 8456f862cb95bcc3a831e1ba87c0c17068be0f3f affected from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, before 50d9bd48321038bd6e15af5a454bbcd180cf6f80 affected from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, before add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9
Other versions: unaffected
|
| Linux |
affected 2.6.32 unaffected before 2.6.32 unaffected from 5.4.297 up to and including 5.4.* unaffected from 5.10.241 up to and including 5.10.* unaffected from 5.15.190 up to and including 5.15.* unaffected from 6.1.149 up to and including 6.1.* unaffected from 6.6.103 up to and including 6.6.* unaffected from 6.12.43 up to and including 6.12.* unaffected from 6.15.11 up to and including 6.15.* unaffected from 6.16.2 up to and including 6.16.* unaffected 6.17 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38699 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38699
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38699
trivy image --scanners vuln IMAGE | grep CVE-2025-38699
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/684c92bb08a25ed3c0356bc7eb532ed5b19588dd git.kernel.org
- https://git.kernel.org/stable/c/9337c2affbaebe00b75fdf84ea0e2fcf93c140af git.kernel.org
- https://git.kernel.org/stable/c/ba024d92564580bb90ec367248ace8efe16ce815 git.kernel.org
- https://git.kernel.org/stable/c/8e03dd9fadf76db5b9799583074a1a2a54f787f1 git.kernel.org
- https://git.kernel.org/stable/c/39cfe2c83146aad956318f866d0ee471b7a61fa5 git.kernel.org
- https://git.kernel.org/stable/c/13f613228cf3c96a038424cd97aa4d6aadc66294 git.kernel.org
- https://git.kernel.org/stable/c/8456f862cb95bcc3a831e1ba87c0c17068be0f3f git.kernel.org
- https://git.kernel.org/stable/c/50d9bd48321038bd6e15af5a454bbcd180cf6f80 git.kernel.org
- https://git.kernel.org/stable/c/add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html cert-portal.siemens.com
Source: the record CVE-2025-38699 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse