Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-40925

HIGH 7.8EPSS 18%

block: fix request.queuelist usage in flush

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < fe1e395563ccb051e9dbd8fa99859f5caaad2e71; >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < 87907bd69721a8506618a954d41a1de3040e88aa; >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < d0321c812d89c5910d8da8e4b10c891c6b96ff70
  • Anyone running Linux 6.6

Vulnerability facts

Affected
Linux >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < fe1e395563ccb051e9dbd8fa99859f5caaad2e71; >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < 87907bd69721a8506618a954d41a1de3040e88aa; >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < d0321c812d89c5910d8da8e4b10c891c6b96ff70; Linux 6.6
Fixed in
Linux 87907bd69721a8506618a954d41a1de3040e88aa
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.33% chance of exploitation in 30 days (percentile 18, 2026-11-26)
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 81ada09cc25e4bf2de7d2951925fb409338a545d, < fe1e395563ccb051e9dbd8fa99859f5caaad2e71; >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < 87907bd69721a8506618a954d41a1de3040e88aa; >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < d0321c812d89c5910d8da8e4b10c891c6b96ff70—cvelist
Linux6.6—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-40925. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-40925.md
Affected: Linux >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < fe1e395563ccb051e9dbd8fa99859f5caaad2e71; >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < 87907bd69721a8506618a954d41a1de3040e88aa; >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < d0321c812d89c5910d8da8e4b10c891c6b96ff70; Linux 6.6
Fixed in: Linux 87907bd69721a8506618a954d41a1de3040e88aa

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-40925 being exploited?

There is no confirmed exploitation: CVE-2024-40925 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-40925?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-40925?

Linux >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < fe1e395563ccb051e9dbd8fa99859f5caaad2e71; >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < 87907bd69721a8506618a954d41a1de3040e88aa; >= 81ada09cc25e4bf2de7d2951925fb409338a545d, < d0321c812d89c5910d8da8e4b10c891c6b96ff70; Linux 6.6.

Is there a fix for CVE-2024-40925?

Yes. Fixed in Linux 87907bd69721a8506618a954d41a1de3040e88aa. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2024-40925?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors