---
id: CVE-2025-38405
title: |-
  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_integr…
summary: |-
  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_integr…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-401
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 6.10.10, < 6.12.37'
  - 'linux_kernel >= 6.13, < 6.15.6'
  - linux_kernel = 6.16
patched:
  - linux_kernel 6.15.6
published: '2025-07-25'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T22:18:40.150'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-38405'
references:
  - url: 'https://git.kernel.org/stable/c/190f4c2c863af7cc5bb354b70e0805f06419c038'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/2e2028fcf924d1c6df017033c8d6e28b735a0508'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/431e58d56fcb5ff1f9eb630724a922e0d2a941df'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
  - cve.org
epss: 0.00429
epssPercentile: 0.36973
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-10-15T21:50:03.788370Z'
ingestedAt: '2026-10-15T22:48:25.505Z'
---

## Overview

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.

## Affected

- `linux_kernel >= 6.10.10, < 6.12.37`
- `linux_kernel >= 6.13, < 6.15.6`
- `linux_kernel = 6.16`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.15.6`
