# CVE-2025-39999: blk-mq: fix blk\_mq\_tags double free while nr\_requests grown

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-10-15T07:58:23.038Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 58567d8e95c096ad234963df90a2ca518901f4b6, \< 8faee580d63bc2a54a59dcdb7f9ce4de29384fec; \>= f5a6604f7a4405450e4a1f54e5430f47290c500f, \< 392b1d64911f4de8887fe8b68299fa8bd6e5b923; \>= f5a6604f7a4405450e4a1f54e5430f47290c500f, \< ba28afbd9eff2a6370f23ef4e6a036ab0cfda409; \>= 6.16.4, \< 6.16.11
- Anyone running Linux 6.17

## Description

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

blk-mq: fix blk\_mq\_tags double free while nr\_requests grown

In the case user trigger tags grow by queue sysfs attribute nr\_requests,
hctx-\>sched\_tags will be freed directly and replaced with a new
allocated tags, see blk\_mq\_tag\_update\_depth().

The problem is that hctx-\>sched\_tags is from elevator-\>et-\>tags, while
et-\>tags is still the freed tags, hence later elevator exit will try to
free the tags again, causing kernel panic.

Fix this problem by replacing et-\>tags with new allocated tags as well.

Noted there are still some long term problems that will require some
refactor to be fixed thoroughly\[1\].

\[1\] https://lore.kernel.org/all/20250815080216.410665-1-yukuai1@huaweicloud.com/

## Affected and fixed versions

- Linux: \>= 58567d8e95c096ad234963df90a2ca518901f4b6, \< 8faee580d63bc2a54a59dcdb7f9ce4de29384fec; \>= f5a6604f7a4405450e4a1f54e5430f47290c500f, \< 392b1d64911f4de8887fe8b68299fa8bd6e5b923; \>= f5a6604f7a4405450e4a1f54e5430f47290c500f, \< ba28afbd9eff2a6370f23ef4e6a036ab0cfda409; \>= 6.16.4, \< 6.16.11 (cvelist)
- Linux: 6.17 (cvelist)

## Mitigation

- Upgrade Linux to 6.16.11 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-39999.md
Affected: Linux >= 58567d8e95c096ad234963df90a2ca518901f4b6, < 8faee580d63bc2a54a59dcdb7f9ce4de29384fec; >= f5a6604f7a4405450e4a1f54e5430f47290c500f, < 392b1d64911f4de8887fe8b68299fa8bd6e5b923; >= f5a6604f7a4405450e4a1f54e5430f47290c500f, < ba28afbd9eff2a6370f23ef4e6a036ab0cfda409; >= 6.16.4, < 6.16.11; Linu…
Fixed in: Linux 8faee580d63bc2a54a59dcdb7f9ce4de29384fec, Linux 392b1d64911f4de8887fe8b68299fa8bd6e5b923, Linux 6.16.11

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-39999 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 58567d8e95c096ad234963df90a2ca518901f4b6, \< 8faee580d63bc2a54a59dcdb7f9ce4de29384fec; \>= f5a6604f7a4405450e4a1f54e5430f47290c500f, \< 392b1d64911f4de8887fe8b68299fa8bd6e5b923; \>= f5a6604f7a4405450e4a1f54e5430f47290c500f, \< ba28afbd9eff2a6370f23ef4e6a036ab0cfda409; \>= 6.16.4, \< 6.16.11; Linux 6.17.

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

Yes. Fixed in Linux 8faee580d63bc2a54a59dcdb7f9ce4de29384fec, Linux 392b1d64911f4de8887fe8b68299fa8bd6e5b923, Linux 6.16.11. Upgrade Linux to 6.16.11 or later.

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

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

- other: <https://git.kernel.org/stable/c/8faee580d63bc2a54a59dcdb7f9ce4de29384fec>
- other: <https://git.kernel.org/stable/c/392b1d64911f4de8887fe8b68299fa8bd6e5b923>
- other: <https://git.kernel.org/stable/c/ba28afbd9eff2a6370f23ef4e6a036ab0cfda409>

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

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