CVE-2025-38405
nvmet: fix memory leak of bio integrity
Reported by linux · Published July 25, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.37-61.105.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f, bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f, bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f |
| Linux | Linux | 6.11, 0, 6.12.37 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| linux | linux_kernel | 6.11, 6.11, 6.11 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| Linux | Linux | 6.16, 0, 6.10.10 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel-livepatch-6.12.37-61.105 | 0 |
| amazon:2023 | perf6.12 | 0 |
Timeline
- Jul 25, 2025 CVE Published
- Jul 26, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (9 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (207 in total, the first dated here)
- Mar 29, 2026 Security Advisory (223 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38405
vulnetix vdb fixes CVE-2025-38405
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38405/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart