Wind River Support Network

Meet the Support Network

Home CVE Database CVE-2024-40925

CVE-2024-40925

Description

In the Linux kernel, the following vulnerability has been resolved: block: fix request.queuelist usage in flush Friedrich Weber reported a kernel crash problem and bisected to commit 81ada09cc25e (blk-flush: reuse rq queuelist in flush state machine). The root cause is that we use list_move_tail(&rq->queuelist, pending) in the PREFLUSH/POSTFLUSH sequences. But rq->queuelist.next == xxx since it\'s popped out from plug->cached_rq in __blk_mq_alloc_requests_batch(). We don\'t initialize its queuelist just for this first request, although the queuelist of all later popped requests will be initialized. Fix it by changing to use list_add_tail(&rq->queuelist, pending) so rq->queuelist doesn\'t need to be initialized. It should be ok since rq can\'t be on any list when PREFLUSH or POSTFLUSH, has no move actually. Please note the commit 81ada09cc25e (blk-flush: reuse rq queuelist in flush state machine) also has another requirement that no drivers would touch rq->queuelist after blk_mq_end_request() since we will reuse it to add rq to the post-flush pending list in POSTFLUSH. If this is not true, we will have to revert that commit IMHO. This updated version adds list_del_init(&rq->queuelist) in flush rq callback since the dm layer may submit request of a weird invalid format (REQ_FSEQ_PREFLUSH | REQ_FSEQ_POSTFLUSH), which causes double list_add if without this list_del_init(&rq->queuelist). The weird invalid format problem should be fixed in dm layer.

Priority: --
CVSS v3: --
Component: linux
Publish Date: Jul 12, 2024
Related ID: --
CVSS v2: --
Modified Date: Jul 12, 2024

Find out more about CVE-2024-40925 from the MITRE-CVE dictionary and NIST NVD


Products Affected

Login may be required to access defects or downloads.

Product Name Status Defect Fixed Downloads
Linux
Wind River Linux LTS 17 Requires LTSS -- -- --
Wind River Linux 8 Requires LTSS -- -- --
Wind River Linux 9 Requires LTSS -- -- --
Wind River Linux 7 Requires LTSS -- -- --
Wind River Linux LTS 21 Investigate -- -- --
Wind River Linux LTS 22 Not Vulnerable -- -- --
Wind River Linux LTS 18 Requires LTSS -- -- --
Wind River Linux LTS 19 Investigate -- -- --
Wind River Linux CD release N/A -- -- --
Wind River Linux 6 Requires LTSS -- -- --
Wind River Linux LTS 23 Not Vulnerable -- -- --
VxWorks
VxWorks 7 Not Vulnerable -- -- --
VxWorks 6.9 Not Vulnerable -- -- --
Helix Virtualization Platform Cert Edition
Helix Virtualization Platform Cert Edition Not Vulnerable -- -- --
eLxr
eLxr 12 Not Vulnerable -- -- --

Related Products

Product Name Status Defect Fixed Downloads

Notes
Requires LTSS - customers must have active LTSS (Long Term Security Shield) Support to receive up-to-date information about vulnerabilities that may affect legacy software. Please contact your Wind River account team or see https://docs.windriver.com/bundle/Support_and_Maintenance_Supplemental_Terms_and_Conditions and https://support2.windriver.com/index.php?page=plc for more information.
Live chat
Online