9.8critical
nbd: fix race between timeout and normal completion
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.47% (higher than 42% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 and 2 more 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 * | CVE List |
| 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 | NVD |
All scores
| Linux | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nbd: se corrige la ejecución entre el tiempo de espera y la finalización normal. Si el tiempo de espera de la solicitud lo maneja nbd_requeue_cmd(), la finalización normal debe detenerse para evitar completar esta solicitud en cola; se pueden activar otros use after free. Corrija la ejecución borrando NBD_CMD_INFLIGHT en nbd_requeue_cmd(); mientras tanto, asegúrese de que cmd->lock se captura para borrar la bandera y la puesta en cola.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-49855 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-49855 changed 2026-08-04 | Public domain |