Bug 2320236 (CVE-2024-49855) - CVE-2024-49855 kernel: nbd: fix race between timeout and normal completion
Summary: CVE-2024-49855 kernel: nbd: fix race between timeout and normal completion
Keywords:
Status: NEW
Alias: CVE-2024-49855
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2320386
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-21 13:04 UTC by OSIDB Bzimport
Modified: 2024-10-24 04:32 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-10-21 13:04:27 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.