{"id":"CVE-2025-38405","revision":"a9b00f704088449b9268b8663a7e2d97","records":[{"revision":"a9b00f704088449b9268b8663a7e2d97","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-38405","aliases":[],"title":"nvmet: fix memory leak of bio integrity","description":"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->bi_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.","state":0,"publishedAt":"2025-07-25T13:12:07.926+00:00","modifiedAt":"2026-10-15T21:52:15.336+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/nvme/target/nvmet.h\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f\",\n                            \"lessThan\": \"431e58d56fcb5ff1f9eb630724a922e0d2a941df\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f\",\n                            \"lessThan\": \"2e2028fcf924d1c6df017033c8d6e28b735a0508\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f\",\n                            \"lessThan\": \"190f4c2c863af7cc5bb354b70e0805f06419c038\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"64149da0fddbbfe43e11c0348d8c8b4171dae3a2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6.10.10\",\n                            \"lessThan\": \"6.11\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/nvme/target/nvmet.h\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.11\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.11\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.37\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.15.6\",\n                            \"lessThanOrEqual\": \"6.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.16\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/431e58d56fcb5ff1f9eb630724a922e0d2a941df","https://git.kernel.org/stable/c/2e2028fcf924d1c6df017033c8d6e28b735a0508","https://git.kernel.org/stable/c/190f4c2c863af7cc5bb354b70e0805f06419c038"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-38405","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-38405","identifiers":["CVE-2025-38405"]},"retained":false,"historicalAffected":[]}],"coverage":[]}