# CVE-2024-49855: nbd: fix race between timeout and normal completion

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2024-10-21T12:18:47.391Z
- Modified: 2026-08-05T11:40:05.597Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

nbd: fix race between timeout and normal completion

If request timetout is handled by nbd_requeue_cmd(), normal completion
has to be stopped for avoiding to complete this requeued request, other
use-after-free can be triggered.

Fix the race by clearing NBD_CMD_INFLIGHT in nbd_requeue_cmd(), meantime
make sure that cmd->lock is grabbed for clearing the flag and the
requeue.

(As written by CVE List.)

## Affected

- Linux Linux: from 2895f1831e911ca87d4efdf43e35eb72a0c7e66e before 9c25faf72d780a9c71081710cd48759d61ff6e9b; from 2895f1831e911ca87d4efdf43e35eb72a0c7e66e before 6e73b946a379a1dfbb62626af93843bdfb53753d; from 2895f1831e911ca87d4efdf43e35eb72a0c7e66e before 5236ada8ebbd9e7461f17477357582f5be4f46f7; from 2895f1831e911ca87d4efdf43e35eb72a0c7e66e before 9a74c3e6c0d686c26ba2aab66d15ddb89dc139cc; from 2895f1831e911ca87d4efdf43e35eb72a0c7e66e before c9ea57c91f03bcad415e1a20113bdb2077bcf990; cdf62c535a9bfd5ff0eef4b91669da39d8abc0c3; 5171ef20bae852ff38f4cfdb368bcdcc744776d0; from 5.17.15 before 5.18; from 5.18.4 before 5.19; 5.19 (not affected: before 5.19; from 6.1.113 up to 6.1.*; from 6.6.54 up to 6.6.*; from 6.10.13 up to 6.10.*; from 6.11.2 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 5.18.4 before 5.19; from 5.19 before 6.1.113; from 6.2 before 6.6.54; from 6.7 before 6.10.13; from 6.11 before 6.11.2; 5.17.15

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/9c25faf72d780a9c71081710cd48759d61ff6e9b> (patch)
- <https://git.kernel.org/stable/c/6e73b946a379a1dfbb62626af93843bdfb53753d> (patch)
- <https://git.kernel.org/stable/c/5236ada8ebbd9e7461f17477357582f5be4f46f7> (patch)
- <https://git.kernel.org/stable/c/9a74c3e6c0d686c26ba2aab66d15ddb89dc139cc> (patch)
- <https://git.kernel.org/stable/c/c9ea57c91f03bcad415e1a20113bdb2077bcf990> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-49855](https://www.cve.org/CVERecord?id=CVE-2024-49855), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-49855](https://nvd.nist.gov/vuln/detail/CVE-2024-49855), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-49855 · Whole record: https://cve.day/CVE-2024-49855.json · Rebuilt by cve.day 2026-11-25T22:58:47.006Z
