{"id":"CVE-2025-38405","summary":"nvmet: fix memory leak of bio integrity","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: fix memory leak of bio integrity\n\nIf nvmet receives commands with metadata there is a continuous memory\nleak of kmalloc-128 slab or more precisely bio-\u003ebi_integrity.\n\nSince commit bf4c89fc8797 (\"block: don't call bio_uninit from bio_endio\")\neach user of bio_init has to use bio_uninit as well. Otherwise the bio\nintegrity is not getting free. Nvmet uses bio_init for inline bios.\n\nUninit the inline bio to complete deallocation of integrity in bio.","modified":"2026-04-02T12:47:58.041542Z","published":"2025-07-25T13:12:07.926Z","related":["SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38405.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/190f4c2c863af7cc5bb354b70e0805f06419c038"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2e2028fcf924d1c6df017033c8d6e28b735a0508"},{"type":"WEB","url":"https://git.kernel.org/stable/c/431e58d56fcb5ff1f9eb630724a922e0d2a941df"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38405.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38405"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f"},{"fixed":"431e58d56fcb5ff1f9eb630724a922e0d2a941df"},{"fixed":"2e2028fcf924d1c6df017033c8d6e28b735a0508"},{"fixed":"190f4c2c863af7cc5bb354b70e0805f06419c038"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"64149da0fddbbfe43e11c0348d8c8b4171dae3a2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38405.json"}}],"schema_version":"1.7.5"}