CVE-2024-49855: nbd: fix race between timeout and normal completion
In the Linux kernel, the following vulnerability has been resolved:
nbd: fix race between timeout and normal completion
If request timetout is handled by nbdrequeuecmd(), 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 NBDCMDINFLIGHT in nbdrequeuecmd(), meantime make sure that cmd->lock is grabbed for clearing the flag and the requeue.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-49855?
CVE-2024-49855 has been rated with a medium severity due to its potential to lead to use-after-free conditions.
How do I fix CVE-2024-49855?
To fix CVE-2024-49855, upgrade the Linux kernel to a version that includes the patch addressing this vulnerability.
Which versions of the Linux kernel are affected by CVE-2024-49855?
CVE-2024-49855 affects various versions of the Linux kernel between 5.17.15 and 6.11.2.
What type of vulnerability is CVE-2024-49855?
CVE-2024-49855 is a race condition vulnerability linked to the handling of request timeouts in the nbd module.
Can CVE-2024-49855 lead to remote exploitation?
CVE-2024-49855 could potentially be exploited remotely due to its nature of affecting command requests in the Linux kernel.