nvmet: avoid potential UAF in nvmet_req_complete()
In the Linux kernel, the following vulnerability has been resolved: nvmet: avoid potential UAF in nvmet_req_complete() An nvme target ->queue_response() operation implementation may free the request passed as argument. Such implementation potentially could result in a use after free of the request pointer when percpu_ref_put() is called in nvmet_req_complete(). Avoid such problem by using a local variable to save the sq pointer before calling __nvmet_req_complete(), thus avoiding dereferencing the req pointer after that function call.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.311, 4.19.279, 5.10.176, 5.15.104, 5.4.238, 6.1.21, 6.2.8
- CVEs
- CVE-2023-53116
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 15:47 UTC · Revision 1
Source evidence
nvmet: avoid potential UAF in nvmet_req_complete()
core-osv · Original sourcePublished 2 May 2025, 15:55 UTC
In the Linux kernel, the following vulnerability has been resolved: nvmet: avoid potential UAF in nvmet_req_complete() An nvme target ->queue_response() operation implementation may free the request passed as argument. Such implementation potentially could result in a use after free of the request pointer when percpu_ref_put() is called in nvmet_req_complete(). Avoid such problem by using a local variable to save the sq pointer before calling __nvmet_req_complete(), thus avoiding dereferencing the req pointer after that function call.
osv:CVE-2023-53116
Kernel
Fixed versions: 4.14.311, 4.19.279, 5.4.238, 5.10.176, 5.15.104, 6.1.21, 6.2.8
Complete source record
{
"id": "ff5566adc2ecf9426af549db8cde1b7c1322a6238183e6519fbdf542456bce84",
"url": "https://osv.dev/vulnerability/CVE-2023-53116",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "nvmet: avoid potential UAF in nvmet_req_complete()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: nvmet: avoid potential UAF in nvmet_req_complete() An nvme target ->queue_response() operation implementation may free the request passed as argument. Such implementation potentially could result in a use after free of the request pointer when percpu_ref_put() is called in nvmet_req_complete(). Avoid such problem by using a local variable to save the sq pointer before calling __nvmet_req_complete(), thus avoiding dereferencing the req pointer after that function call.",
"evidence": "osv:CVE-2023-53116",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.14.311",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.279",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.238",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.176",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.104",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.21",
"evidence": "/affected/1/ranges"
},
{
"value": "6.2.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "CVE-2023-53116",
"aliases": [
"CVE-2023-53116"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "a07b4970f464f13640e28e16dad6cfa33647cc99"
},
{
"fixed": "e5d99b29012bbf0e86929403209723b2806500c1"
},
{
"fixed": "fafcb4b26393870c45462f9af6a48e581dbbcf7e"
},
{
"fixed": "04c394208831d5e0d5cfee46722eb0f033cd4083"
},
{
"fixed": "a6317235da8aa7cb97529ebc8121cc2a4c4c437a"
},
{
"fixed": "f1d5888a5efe345b63c430b256e95acb0a475642"
},
{
"fixed": "bcd535f07c58342302a2cd2bdd8894fe0872c8a9"
},
{
"fixed": "8ed9813871038b25a934b21ab76b5b7dbf44fc3a"
},
{
"fixed": "6173a77b7e9d3e202bdb9897b23f2a8afe7bf286"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53116.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.8.0"
},
{
"fixed": "4.14.311"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.279"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.238"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.176"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.104"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.21"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.2.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53116.json"
}
}
],
"modified": "2026-10-28T02:30:30.331374074Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/04c394208831d5e0d5cfee46722eb0f033cd4083",
"https://git.kernel.org/stable/c/6173a77b7e9d3e202bdb9897b23f2a8afe7bf286",
"https://git.kernel.org/stable/c/8ed9813871038b25a934b21ab76b5b7dbf44fc3a",
"https://git.kernel.org/stable/c/a6317235da8aa7cb97529ebc8121cc2a4c4c437a",
"https://git.kernel.org/stable/c/bcd535f07c58342302a2cd2bdd8894fe0872c8a9",
"https://git.kernel.org/stable/c/e5d99b29012bbf0e86929403209723b2806500c1",
"https://git.kernel.org/stable/c/f1d5888a5efe345b63c430b256e95acb0a475642",
"https://git.kernel.org/stable/c/fafcb4b26393870c45462f9af6a48e581dbbcf7e",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53116.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-53116",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53116.json"
}
},
"related_cves": [
{
"value": "CVE-2023-53116",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496983,
"published_at": "2025-05-02T15:55:54.858+00:00"
}