All reports
Medium

kernel: nbd: fix race between timeout and normal completion

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-49855

Probability of exploitation in the next 30 days: 0.47%

FIRST EPSS · 2026-11-21

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.

A flaw was found in the Network Block Device (NBD) driver within the Linux kernel. A race condition exists between the handling of request timeouts and normal completion. This timing issue can allow a local attacker to trigger a use-after-free vulnerability, potentially leading to memory corruption or a denial of service.