CVE-2025-39999

Source
https://cve.org/CVERecord?id=CVE-2025-39999
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39999.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-39999
Downstream
Related
Published
2025-10-15T07:58:23.038Z
Modified
2026-03-08T15:58:59.285558Z
Summary
blk-mq: fix blk_mq_tags double free while nr_requests grown
Details

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

blk-mq: fix blkmqtags double free while nr_requests grown

In the case user trigger tags grow by queue sysfs attribute nrrequests, hctx->schedtags will be freed directly and replaced with a new allocated tags, see blkmqtagupdatedepth().

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/

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39999.json"
}
References

Affected packages

Git / 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
58567d8e95c096ad234963df90a2ca518901f4b6
Fixed
8faee580d63bc2a54a59dcdb7f9ce4de29384fec
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f5a6604f7a4405450e4a1f54e5430f47290c500f
Fixed
392b1d64911f4de8887fe8b68299fa8bd6e5b923
Fixed
ba28afbd9eff2a6370f23ef4e6a036ab0cfda409

Affected versions

v6.*
v6.16.10
v6.16.4
v6.16.5
v6.16.6
v6.16.7
v6.16.8
v6.16.9
v6.17
v6.17-rc1
v6.17-rc2
v6.17-rc3
v6.17-rc4
v6.17-rc5
v6.17-rc6
v6.17-rc7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39999.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.16.11
Type
ECOSYSTEM
Events
Introduced
6.17.0
Fixed
6.17.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39999.json"