{"id":"CVE-2024-50043","summary":"nfsd: fix possible badness in FREE_STATEID","details":"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 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.","modified":"2026-04-02T12:21:14.352450Z","published":"2024-10-21T19:39:41.758Z","related":["USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50043.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/7ca9e472ce5c67daa3188a348ece8c02a0765039"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c88c150a467fcb670a1608e2272beeee3e86df6e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50043.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50043"},{"type":"PACKAGE","url":"https://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":"3f29cc82a84c23cfd12b903029dd26002ca825f5"},{"fixed":"7ca9e472ce5c67daa3188a348ece8c02a0765039"},{"fixed":"c88c150a467fcb670a1608e2272beeee3e86df6e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50043.json"}}],"schema_version":"1.7.5"}