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

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 44% of CVEs (2026-11-30)
- Published: 2025-07-25T13:12:07.926Z
- Modified: 2026-10-15T22:18:40.150Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f before 431e58d56fcb5ff1f9eb630724a922e0d2a941df; from bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f before 2e2028fcf924d1c6df017033c8d6e28b735a0508; from bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f before 190f4c2c863af7cc5bb354b70e0805f06419c038; 64149da0fddbbfe43e11c0348d8c8b4171dae3a2; from 6.10.10 before 6.11; 6.11 (not affected: before 6.11; from 6.12.37 up to 6.12.*; from 6.15.6 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.10.10 before 6.12.37; from 6.13 before 6.15.6; 6.16

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/431e58d56fcb5ff1f9eb630724a922e0d2a941df> (patch)
- <https://git.kernel.org/stable/c/2e2028fcf924d1c6df017033c8d6e28b735a0508> (patch)
- <https://git.kernel.org/stable/c/190f4c2c863af7cc5bb354b70e0805f06419c038> (patch)

## Sources

- CVE List: [CVE-2025-38405](https://www.cve.org/CVERecord?id=CVE-2025-38405), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38405](https://nvd.nist.gov/vuln/detail/CVE-2025-38405), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-38405 · Whole record: https://cve.day/CVE-2025-38405.json · Rebuilt by cve.day 2026-11-25T22:59:01.696Z
