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-39508

HIGH 7.8EPSS 10%

io_uring/io-wq: Use set_bit() and test_bit() at worker->flags

Mitigation

  • Upgrade Linux to 8a565304927fbd28c9f028c492b5c1714002cbab or later.

Who should check

  • Anyone running Linux >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < ab702c3483db9046bab9f40306f1a28b22dbbdc0; >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < 1cbb0affb15470a9621267fe0a8568007553a4bf; >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < 8a565304927fbd28c9f028c492b5c1714002cbab
  • Anyone running Linux 5.1

Vulnerability facts

Affected
Linux >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < ab702c3483db9046bab9f40306f1a28b22dbbdc0; >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < 1cbb0affb15470a9621267fe0a8568007553a4bf; >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < 8a565304927fbd28c9f028c492b5c1714002cbab; Linux 5.1
Fixed in
Linux 1cbb0affb15470a9621267fe0a8568007553a4bf, Linux 8a565304927fbd28c9f028c492b5c1714002cbab
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.25% chance of exploitation in 30 days (percentile 10, 2026-11-26)
CWE
CWE-362
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: io_uring/io-wq: Use set_bit() and test_bit() at worker->flags Utilize set_bit() and test_bit() on worker->flags within io_uring/io-wq to address potential data races. The structure io_worker->flags may be accessed through various data paths, leading to concurrency issues. When KCSAN is enabled, it reveals data races occurring in io_worker_handle_work and io_wq_activate_free_worker functions. BUG: KCSAN: data-race in io_worker_handle_work / io_wq_activate_free_worker write to 0xffff8885c4246404 of 4 bytes by task 49071 on cpu 28: io_worker_handle_work (io_uring/io-wq.c:434 io_uring/io-wq.c:569) io_wq_worker (io_uring/io-wq.c:?) <snip> read to 0xffff8885c4246404 of 4 bytes by task 49024 on cpu 5: io_wq_activate_free_worker (io_uring/io-wq.c:? io_uring/io-wq.c:285) io_wq_enqueue (io_uring/io-wq.c:947) io_queue_iowq (io_uring/io_uring.c:524) io_req_task_submit (io_uring/io_uring.c:1511) io_handle_tw_list (io_uring/io_uring.c:1198) <snip> Line numbers against commit 18daea77cca6 ("Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm"). These races involve writes and reads to the same memory location by different tasks running on different CPUs. To mitigate this, refactor the code to use atomic operations such as set_bit(), test_bit(), and clear_bit() instead of basic "and" and "or" operations. This ensures thread-safe manipulation of worker flags. Also, move `create_index` to avoid holes in the structure.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < ab702c3483db9046bab9f40306f1a28b22dbbdc0; >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < 1cbb0affb15470a9621267fe0a8568007553a4bf; >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < 8a565304927fbd28c9f028c492b5c1714002cbab—cvelist
Linux5.1—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-39508. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-39508.md
Affected: Linux >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < ab702c3483db9046bab9f40306f1a28b22dbbdc0; >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < 1cbb0affb15470a9621267fe0a8568007553a4bf; >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < 8a565304927fbd28c9f028c492b5c1714002cbab; Linux 5.1
Fixed in: Linux 1cbb0affb15470a9621267fe0a8568007553a4bf, Linux 8a565304927fbd28c9f028c492b5c1714002cbab

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-39508 being exploited?

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

How serious is CVE-2024-39508?

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

Which versions are affected by CVE-2024-39508?

Linux >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < ab702c3483db9046bab9f40306f1a28b22dbbdc0; >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < 1cbb0affb15470a9621267fe0a8568007553a4bf; >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < 8a565304927fbd28c9f028c492b5c1714002cbab; Linux 5.1.

Is there a fix for CVE-2024-39508?

Yes. Fixed in Linux 1cbb0affb15470a9621267fe0a8568007553a4bf, Linux 8a565304927fbd28c9f028c492b5c1714002cbab. Upgrade Linux to 8a565304927fbd28c9f028c492b5c1714002cbab or later.

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

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