{
  "cveId": "CVE-2024-46704",
  "url": "https://patchblox.com/security/cve/CVE-2024-46704",
  "summary": "CVE-2024-46704 is fixed in linux on 1 platform, first by DEBIAN-CVE-2024-46704, released September 13, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  workqueue: Fix spruious data race in __flush_wor...",
  "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 (\u0022workqueue: Allow cancel_work_sync() and disable_work() from atomic contexts on BH work items\u0022) added a read of @work-\u003Edata to determine whether to use busy wait for BH work items that are being canceled. While the read is safe when @from_cancel, @work-\u003Edata was read before testing @from_cancel to simplify code structure:  \tdata = *work_data_bits(work); \tif (from_cancel \u0026\u0026 \t    !WARN_ON_ONCE(data \u0026 WORK_STRUCT_PWQ) \u0026\u0026 (data \u0026 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\u002B0x30b/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\u002B0x42a/0x570 kernel/workqueue.c:4188    flush_work kernel/workqueue.c:4229 [inline]    flush_delayed_work\u002B0x66/0x70 kernel/workqueue.c:4251    ...    value changed: 0x0000000000400000 -\u003E 0xffff88810006c00d  Reorganize the code so that @from_cancel is tested before @work-\u003Edata is accessed. The only problem is triggering KCSAN detection spuriously. This shouldn\u0027t need READ_ONCE() or other access qualifiers.  No functional changes.",
  "published": "2024-09-13T07:15:05Z",
  "severity": "medium",
  "cvss": 4.7,
  "cvssVector": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "epss": 0.00175,
  "epssPercentile": 0.0704,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.10.7-1",
      "fix": "DEBIAN-CVE-2024-46704",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-46704",
      "released": "2024-09-13T07:15:05Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.10.7-1",
      "fix": "DEBIAN-CVE-2024-46704",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-46704",
      "released": "2024-09-13T07:15:05Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T13:06:02Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}