vduse: Fix race in vduse_dev_msg_sync and vduse_dev_read_iter
3Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackepss 0.2%
exploitation probability
0.2%top 89% of all CVEs
observed exploitation
nono source reports it
In the Linux kernel, the following vulnerability has been resolved:
vduse: Fix race in vduse_dev_msg_sync and vduse_dev_read_iter
There is one race case in vduse_dev_msg_sync and vduse_dev_read_iter:
vduse_dev_read_iter():
lock(msg_lock);
dequeue_msg(send_list);
unlock(msg_lock);
vduse_dev_msg_sync():
wait_timeout() finish
lock(msg_lock);
check msg->complete is false
list_del(msg); <- double list_del() crash!
To fix this case, we shall ensure vduse_msg is on send_list or recv_list
outside the msg_lock critical section.
Affected products
Linux · LinuxReferences
https://git.kernel.org/stable/c/09723f26ed801c083e914cec4cc0e1af4b933dc7https://git.kernel.org/stable/c/3755965adbb617f4283ac6ccd351ed0676843cbahttps://git.kernel.org/stable/c/8062ff9d366c4bc4ae775e14eac9a769f20c60ddhttps://git.kernel.org/stable/c/ae9c13b6fd79087cc5a216ee1649b6f012c2a238https://git.kernel.org/stable/c/c83ad3dfa6d9953d5ce6839416bf5a1bfc50285ahttps://git.kernel.org/stable/c/d7e7c813834c6c05c26033456ab7169e2f9c99ebhttps://git.kernel.org/stable/c/d8715b5a8fdb23fef576700e71d0c253dbeddad4