nfsd: fix possible badness in FREE_STATEID
In the Linux kernel, the following vulnerability has been resolved: nfsd: fix possible badness in FREE_STATEID When multiple FREE_STATEIDs are sent for the same delegation stateid, it can lead to a possible either use-after-free or counter refcount underflow errors. In nfsd4_free_stateid() under the client lock we find a delegation stateid, however the code drops the lock before calling nfs4_put_stid(), that allows another FREE_STATE to find the stateid again. The first one will proceed to then free the stateid which leads to either use-after-free or decrementing already zeroed counter.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.11.4
- CVEs
- CVE-2024-50043
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 17:25 UTC · Revision 1
Source evidence
nfsd: fix possible badness in FREE_STATEID
core-osv · Original sourcePublished 21 Oct 2024, 19:39 UTC
In the Linux kernel, the following vulnerability has been resolved: nfsd: fix possible badness in FREE_STATEID When multiple FREE_STATEIDs are sent for the same delegation stateid, it can lead to a possible either use-after-free or counter refcount underflow errors. In nfsd4_free_stateid() under the client lock we find a delegation stateid, however the code drops the lock before calling nfs4_put_stid(), that allows another FREE_STATE to find the stateid again. The first one will proceed to then free the stateid which leads to either use-after-free or decrementing already zeroed counter.
osv:CVE-2024-50043
Kernel
Fixed versions: 6.11.4
Complete source record
{
"id": "58e1b5928863fbfa91803d4749eefe548cd7f00ab731f723962d4782edfdacce",
"url": "https://osv.dev/vulnerability/CVE-2024-50043",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "nfsd: fix possible badness in FREE_STATEID",
"summary": "In the Linux kernel, the following vulnerability has been resolved: nfsd: fix possible badness in FREE_STATEID When multiple FREE_STATEIDs are sent for the same delegation stateid, it can lead to a possible either use-after-free or counter refcount underflow errors. In nfsd4_free_stateid() under the client lock we find a delegation stateid, however the code drops the lock before calling nfs4_put_stid(), that allows another FREE_STATE to find the stateid again. The first one will proceed to then free the stateid which leads to either use-after-free or decrementing already zeroed counter.",
"evidence": "osv:CVE-2024-50043",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.11.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "CVE-2024-50043",
"aliases": [
"CVE-2024-50043"
],
"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": "3f29cc82a84c23cfd12b903029dd26002ca825f5"
},
{
"fixed": "7ca9e472ce5c67daa3188a348ece8c02a0765039"
},
{
"fixed": "c88c150a467fcb670a1608e2272beeee3e86df6e"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6.6.160"
},
{
"fixed": "6.7"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "172d038b7c4d3cfa9fc5ac210577c5c4f8256320"
}
]
}
],
"versions": [
"v6.6.160"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50043.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.9.0"
},
{
"fixed": "6.11.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50043.json"
}
}
],
"modified": "2026-10-28T02:30:21.376725761Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/7ca9e472ce5c67daa3188a348ece8c02a0765039",
"https://git.kernel.org/stable/c/c88c150a467fcb670a1608e2272beeee3e86df6e",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50043.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-50043",
"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/2024/50xxx/CVE-2024-50043.json"
}
},
"related_cves": [
{
"value": "CVE-2024-50043",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 487746,
"published_at": "2024-10-21T19:39:41.758+00:00"
}