What’s Vulnerable › Vulnerabilities
CVE-2025-38405: nvmet: fix memory leak of bio integrity
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-07-25 · updated 2026-10-15
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: nvmet: fix memory leak of bio integrity If nvmet receives commands with metadata there is a continuous memory leak of kmalloc-128 slab or more precisely bio->bi_integrity. Since commit bf4c89fc8797 ("block: don't call bio_uninit from bio_endio") each user of bio_init has to use bio_uninit as well. Otherwise the bio integrity is not getting free. Nvmet uses bio_init for inline bios. Uninit the inline bio to complete deallocation of integrity in bio.
Affected products
- Linux kernel: from 6.10.10 before 6.12.37; from 6.13 before 6.15.6; 6.16-rc1, 6.16-rc2, 6.16-rc3, 6.16-rc4 — fixed in 6.12.37, 6.15.6
How to fix
Upgrade to a fixed version: Linux kernel 6.12.37, 6.15.6. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/190f4c2c863af7cc5bb354b70e0805f06419c038
- https://git.kernel.org/stable/c/2e2028fcf924d1c6df017033c8d6e28b735a0508
- https://git.kernel.org/stable/c/431e58d56fcb5ff1f9eb630724a922e0d2a941df
Get alerted when CVE-2025-38405 or the next vulnerability affects your stack