CVE-2024-46704
workqueue: Fix spruious data race in __flush_work()
Mitigation
- Upgrade Linux to 8bc35475ef1a23b0e224f3242eb11c76cab0ea88 or later.
Who should check
- Anyone running Linux >= 134874e2eee9380c2700411d4844cbc29297bc01, < 91d09642127a32fde231face2ff489af70eef316; >= 134874e2eee9380c2700411d4844cbc29297bc01, < 8bc35475ef1a23b0e224f3242eb11c76cab0ea88
- Anyone running Linux 6.10
Vulnerability facts
- Affected
- Linux >= 134874e2eee9380c2700411d4844cbc29297bc01, < 91d09642127a32fde231face2ff489af70eef316; >= 134874e2eee9380c2700411d4844cbc29297bc01, < 8bc35475ef1a23b0e224f3242eb11c76cab0ea88; Linux 6.10
- Fixed in
- Linux 91d09642127a32fde231face2ff489af70eef316, Linux 8bc35475ef1a23b0e224f3242eb11c76cab0ea88
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.7 (v3.1, NVD)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.24% chance of exploitation in 30 days (percentile 9, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: workqueue: Fix spruious data race in __flush_work() When flushing a work item for cancellation, __flush_work() knows that it exclusively owns the work item through its PENDING bit. 134874e2eee9 ("workqueue: Allow cancel_work_sync() and disable_work() from atomic contexts on BH work items") added a read of @work->data to determine whether to use busy wait for BH work items that are being canceled. While the read is safe when @from_cancel, @work->data was read before testing @from_cancel to simplify code structure: data = *work_data_bits(work); if (from_cancel && !WARN_ON_ONCE(data & WORK_STRUCT_PWQ) && (data & WORK_OFFQ_BH)) { While the read data was never used if !@from_cancel, this could trigger KCSAN data race detection spuriously: ================================================================== BUG: KCSAN: data-race in __flush_work / __flush_work write to 0xffff8881223aa3e8 of 8 bytes by task 3998 on cpu 0: instrument_write include/linux/instrumented.h:41 [inline] ___set_bit include/asm-generic/bitops/instrumented-non-atomic.h:28 [inline] insert_wq_barrier kernel/workqueue.c:3790 [inline] start_flush_work kernel/workqueue.c:4142 [inline] __flush_work+0x30b/0x570 kernel/workqueue.c:4178 flush_work kernel/workqueue.c:4229 [inline] ... read to 0xffff8881223aa3e8 of 8 bytes by task 50 on cpu 1: __flush_work+0x42a/0x570 kernel/workqueue.c:4188 flush_work kernel/workqueue.c:4229 [inline] flush_delayed_work+0x66/0x70 kernel/workqueue.c:4251 ... value changed: 0x0000000000400000 -> 0xffff88810006c00d Reorganize the code so that @from_cancel is tested before @work->data is accessed. The only problem is triggering KCSAN detection spuriously. This shouldn't need READ_ONCE() or other access qualifiers. No functional changes.
Affected and fixed versions
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-46704. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-46704.md Affected: Linux >= 134874e2eee9380c2700411d4844cbc29297bc01, < 91d09642127a32fde231face2ff489af70eef316; >= 134874e2eee9380c2700411d4844cbc29297bc01, < 8bc35475ef1a23b0e224f3242eb11c76cab0ea88; Linux 6.10 Fixed in: Linux 91d09642127a32fde231face2ff489af70eef316, Linux 8bc35475ef1a23b0e224f3242eb11c76cab0ea88 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-46704 being exploited?
There is no confirmed exploitation: CVE-2024-46704 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-46704?
Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2024-46704?
Linux >= 134874e2eee9380c2700411d4844cbc29297bc01, < 91d09642127a32fde231face2ff489af70eef316; >= 134874e2eee9380c2700411d4844cbc29297bc01, < 8bc35475ef1a23b0e224f3242eb11c76cab0ea88; Linux 6.10.
Is there a fix for CVE-2024-46704?
Yes. Fixed in Linux 91d09642127a32fde231face2ff489af70eef316, Linux 8bc35475ef1a23b0e224f3242eb11c76cab0ea88. Upgrade Linux to 8bc35475ef1a23b0e224f3242eb11c76cab0ea88 or later.
How do I check if I'm affected by CVE-2024-46704?
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.