# CVE-2025-38209: nvme-tcp: remove tag set when second admin queue config fails

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.57% (percentile 41, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-07-04T13:37:28.853Z
- **Modified:** 2026-10-15T22:18:35.113Z

## Who should check

- Anyone running Linux \>= 104d0e2f622233477ef7e57e59e8a4c3bb062c82, \< db1da838b6012e4570c6f81e28ffe1d0ff595948; \>= 104d0e2f622233477ef7e57e59e8a4c3bb062c82, \< e7143706702a209c814ed2c3fc6486c2a7decf6c
- Anyone running Linux 6.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

nvme-tcp: remove tag set when second admin queue config fails

Commit 104d0e2f6222 ("nvme-fabrics: reset admin connection for secure
concatenation") modified nvme\_tcp\_setup\_ctrl() to call
nvme\_tcp\_configure\_admin\_queue() twice. The first call prepares for
DH-CHAP negotitation, and the second call is required for secure
concatenation. However, this change triggered BUG KASAN slab-use-after-
free in blk\_mq\_queue\_tag\_busy\_iter(). This BUG can be recreated by
repeating the blktests test case nvme/063 a few times \[1\].

When the BUG happens, nvme\_tcp\_create\_ctrl() fails in the call chain
below:

nvme\_tcp\_create\_ctrl()
 nvme\_tcp\_alloc\_ctrl() new=true             ... Alloc nvme\_tcp\_ctrl and admin\_tag\_set
 nvme\_tcp\_setup\_ctrl() new=true
  nvme\_tcp\_configure\_admin\_queue() new=true ... Succeed
   nvme\_alloc\_admin\_tag\_set()               ... Alloc the tag set for admin\_tag\_set
  nvme\_stop\_keep\_alive()
  nvme\_tcp\_teardown\_admin\_queue() remove=false
  nvme\_tcp\_configure\_admin\_queue() new=false
   nvme\_tcp\_alloc\_admin\_queue()             ... Fail, but do not call nvme\_remove\_admin\_tag\_set()
 nvme\_uninit\_ctrl()
 nvme\_put\_ctrl()                            ... Free up the nvme\_tcp\_ctrl and admin\_tag\_set

The first call of nvme\_tcp\_configure\_admin\_queue() succeeds with
new=true argument. The second call fails with new=false argument. This
second call does not call nvme\_remove\_admin\_tag\_set() on failure, due to
the new=false argument. Then the admin tag set is not removed. However,
nvme\_tcp\_create\_ctrl() assumes that nvme\_tcp\_setup\_ctrl() would call
nvme\_remove\_admin\_tag\_set(). Then it frees up struct nvme\_tcp\_ctrl which
has admin\_tag\_set field. Later on, the timeout handler accesses the
admin\_tag\_set field and causes the BUG KASAN slab-use-after-free.

To not leave the admin tag set, call nvme\_remove\_admin\_tag\_set() when
the second nvme\_tcp\_configure\_admin\_queue() call fails. Do not return
from nvme\_tcp\_setup\_ctrl() on failure. Instead, jump to "destroy\_admin"
go-to label to call nvme\_tcp\_teardown\_admin\_queue() which calls
nvme\_remove\_admin\_tag\_set().

## Affected and fixed versions

- Linux: \>= 104d0e2f622233477ef7e57e59e8a4c3bb062c82, \< db1da838b6012e4570c6f81e28ffe1d0ff595948; \>= 104d0e2f622233477ef7e57e59e8a4c3bb062c82, \< e7143706702a209c814ed2c3fc6486c2a7decf6c (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38209. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38209.md
Affected: Linux >= 104d0e2f622233477ef7e57e59e8a4c3bb062c82, < db1da838b6012e4570c6f81e28ffe1d0ff595948; >= 104d0e2f622233477ef7e57e59e8a4c3bb062c82, < e7143706702a209c814ed2c3fc6486c2a7decf6c; Linux 6.15
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38209 being exploited?

There is no confirmed exploitation: CVE-2025-38209 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.57% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38209?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-38209?

Linux \>= 104d0e2f622233477ef7e57e59e8a4c3bb062c82, \< db1da838b6012e4570c6f81e28ffe1d0ff595948; \>= 104d0e2f622233477ef7e57e59e8a4c3bb062c82, \< e7143706702a209c814ed2c3fc6486c2a7decf6c; Linux 6.15.

### Is there a fix for CVE-2025-38209?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38209?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/db1da838b6012e4570c6f81e28ffe1d0ff595948>
- patch: <https://git.kernel.org/stable/c/e7143706702a209c814ed2c3fc6486c2a7decf6c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38209>

HTML: <https://flawdb.com/CVE-2025-38209> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38209>
