CVE-2025-40171

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-40171
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40171.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40171
Downstream
Published
2025-11-12T10:46:52.289Z
Modified
2025-11-28T02:34:58.039935Z
Summary
nvmet-fc: move lsop put work to nvmet_fc_ls_req_op
Details

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

nvmet-fc: move lsop put work to nvmetfclsreqop

It’s possible for more than one async command to be in flight from _nvmetfcsendls_req. For each command, a tgtport reference is taken.

In the current code, only one put work item is queued at a time, which results in a leaked reference.

To fix this, move the work item to the nvmetfclsreqop struct, which already tracks all resources related to the command.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40171.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
5e0bc09a52b6169ce90f7ac6e195791adb16cec4
Fixed
11269c08013f4ee8b8f5edc6c56700acb34092d0
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9e6987f8937a7bd7516aa52f25cb7e12c0c92ee8
Fixed
a28112cc55013cd8cbd5d36b5115a5b851151bd9
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
eaf0971fdabf2a93c1429dc6bedf3bbe85dffa30
Fixed
060ecc81240ef9d60d9485a3a5eb55a0d6e7a25c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
710c69dbaccdac312e32931abcb8499c1525d397
Fixed
7331925c247b03b7767b8cd93cfe1b7aa2377850
Fixed
7a619f8c869117ffed08365b377f66b7e1d941b4
Fixed
db5a5406fb7e5337a074385c7a3e53c77f2c1bd3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
1d86f79287206deec36d63b89c741cf542b6cadd

Database specific

source

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.15.195
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.156
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.112
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.53
Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.17.3

Database specific

source

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