{"id":"CVE-2024-49855","summary":"nbd: fix race between timeout and normal completion","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnbd: fix race between timeout and normal completion\n\nIf request timetout is handled by nbd_requeue_cmd(), normal completion\nhas to be stopped for avoiding to complete this requeued request, other\nuse-after-free can be triggered.\n\nFix the race by clearing NBD_CMD_INFLIGHT in nbd_requeue_cmd(), meantime\nmake sure that cmd-\u003elock is grabbed for clearing the flag and the\nrequeue.","modified":"2026-03-20T12:39:24.252999Z","published":"2024-10-21T12:18:47.391Z","related":["MGASA-2024-0344","MGASA-2024-0345","SUSE-SU-2024:3984-1","SUSE-SU-2024:3986-1","SUSE-SU-2024:4315-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4364-1","SUSE-SU-2024:4376-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:01840-1","SUSE-SU-2025:01853-1","SUSE-SU-2025:01869-1","SUSE-SU-2025:01873-1","SUSE-SU-2025:01930-1","SUSE-SU-2025:01932-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1","SUSE-SU-2025:20381-1","SUSE-SU-2025:20384-1","SUSE-SU-2025:20386-1","SUSE-SU-2025:20388-1","SUSE-SU-2025:20397-1","SUSE-SU-2025:20400-1","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/49xxx/CVE-2024-49855.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/5236ada8ebbd9e7461f17477357582f5be4f46f7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6e73b946a379a1dfbb62626af93843bdfb53753d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9a74c3e6c0d686c26ba2aab66d15ddb89dc139cc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9c25faf72d780a9c71081710cd48759d61ff6e9b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c9ea57c91f03bcad415e1a20113bdb2077bcf990"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49855.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49855"},{"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":"2895f1831e911ca87d4efdf43e35eb72a0c7e66e"},{"fixed":"9c25faf72d780a9c71081710cd48759d61ff6e9b"},{"fixed":"6e73b946a379a1dfbb62626af93843bdfb53753d"},{"fixed":"5236ada8ebbd9e7461f17477357582f5be4f46f7"},{"fixed":"9a74c3e6c0d686c26ba2aab66d15ddb89dc139cc"},{"fixed":"c9ea57c91f03bcad415e1a20113bdb2077bcf990"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"cdf62c535a9bfd5ff0eef4b91669da39d8abc0c3"},{"last_affected":"5171ef20bae852ff38f4cfdb368bcdcc744776d0"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-49855.json"}}],"schema_version":"1.7.5"}