{"id":"CVE-2024-50043","title":"nfsd: fix possible badness in FREE_STATEID","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: fix possible badness in FREE_STATEID\n\nWhen multiple FREE_STATEIDs are sent for the same delegation stateid,\nit can lead to a possible either use-after-free or cou…","severity":"critical","cvss":9.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvssSource":"cna","vendor":"Linux","product":"Linux","affected":["Linux >= 3f29cc82a84c23cfd12b903029dd26002ca825f5 < 7ca9e472ce5c67daa3188a348ece8c02a0765039","Linux >= 3f29cc82a84c23cfd12b903029dd26002ca825f5 < c88c150a467fcb670a1608e2272beeee3e86df6e","Linux 172d038b7c4d3cfa9fc5ac210577c5c4f8256320","Linux >= 6.6.160 < 6.7","Linux 6.9"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-22T13:24:30.411615Z"},"published":"2024-10-21","updated":"2026-10-21","sourceUpdated":"2026-10-21T12:35:27.778Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-50043","references":[{"url":"https://git.kernel.org/stable/c/7ca9e472ce5c67daa3188a348ece8c02a0765039"},{"url":"https://git.kernel.org/stable/c/c88c150a467fcb670a1608e2272beeee3e86df6e"}],"tags":["cve.org"],"epss":0.00498,"epssPercentile":0.4249,"ingestedAt":"2026-10-21T12:48:53.727Z","slug":"CVE-2024-50043","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: fix possible badness in FREE_STATEID\n\nWhen multiple FREE_STATEIDs are sent for the same delegation stateid,\nit can lead to a possible either use-after-free or counter refcount\nunderflow errors.\n\nIn nfsd4_free_stateid() under the client lock we find a delegation\nstateid, however the code drops the lock before calling nfs4_put_stid(),\nthat allows another FREE_STATE to find the stateid again. The first one\nwill proceed to then free the stateid which leads to either\nuse-after-free or decrementing already zeroed counter.\n\n## Affected\n\n- `Linux >= 3f29cc82a84c23cfd12b903029dd26002ca825f5 < 7ca9e472ce5c67daa3188a348ece8c02a0765039`\n- `Linux >= 3f29cc82a84c23cfd12b903029dd26002ca825f5 < c88c150a467fcb670a1608e2272beeee3e86df6e`\n- `Linux 172d038b7c4d3cfa9fc5ac210577c5c4f8256320`\n- `Linux >= 6.6.160 < 6.7`\n- `Linux 6.9`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"midnight","depthScore":54,"depthScoreParts":{"impact":53.9,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}