CVE-2024-39508 (GCVE-0-2024-39508)

Vulnerability from cvelistv5 – Published: 2024-07-12 12:20 – Updated: 2026-08-05 11:33
VLAI
Title
io_uring/io-wq: Use set_bit() and test_bit() at worker->flags
Summary
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.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator (v2.0.3)
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 2b188cc1bb857a9d4701ae59aa7768b5124e262e , < ab702c3483db9046bab9f40306f1a28b22dbbdc0 (git)
Affected: 2b188cc1bb857a9d4701ae59aa7768b5124e262e , < 1cbb0affb15470a9621267fe0a8568007553a4bf (git)
Affected: 2b188cc1bb857a9d4701ae59aa7768b5124e262e , < 8a565304927fbd28c9f028c492b5c1714002cbab (git)
Create a notification for this product.
Linux Linux Affected: 5.1
Unaffected: 0 , < 5.1 (semver)
Unaffected: 6.6.35 , ≤ 6.6.* (semver)
Unaffected: 6.9.6 , ≤ 6.9.* (semver)
Unaffected: 6.10 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T04:26:15.901Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/ab702c3483db9046bab9f40306f1a28b22dbbdc0"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/1cbb0affb15470a9621267fe0a8568007553a4bf"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/8a565304927fbd28c9f028c492b5c1714002cbab"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-39508",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T17:06:48.077960Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:32:47.742Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "io_uring/io-wq.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ab702c3483db9046bab9f40306f1a28b22dbbdc0",
              "status": "affected",
              "version": "2b188cc1bb857a9d4701ae59aa7768b5124e262e",
              "versionType": "git"
            },
            {
              "lessThan": "1cbb0affb15470a9621267fe0a8568007553a4bf",
              "status": "affected",
              "version": "2b188cc1bb857a9d4701ae59aa7768b5124e262e",
              "versionType": "git"
            },
            {
              "lessThan": "8a565304927fbd28c9f028c492b5c1714002cbab",
              "status": "affected",
              "version": "2b188cc1bb857a9d4701ae59aa7768b5124e262e",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "io_uring/io-wq.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.1"
            },
            {
              "lessThan": "5.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.35",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.9.*",
              "status": "unaffected",
              "version": "6.9.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.10",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.35",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.9.6",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/io-wq: Use set_bit() and test_bit() at worker-\u003eflags\n\nUtilize set_bit() and test_bit() on worker-\u003eflags within io_uring/io-wq\nto address potential data races.\n\nThe structure io_worker-\u003eflags may be accessed through various data\npaths, leading to concurrency issues. When KCSAN is enabled, it reveals\ndata races occurring in io_worker_handle_work and\nio_wq_activate_free_worker functions.\n\n\t BUG: KCSAN: data-race in io_worker_handle_work / io_wq_activate_free_worker\n\t write to 0xffff8885c4246404 of 4 bytes by task 49071 on cpu 28:\n\t io_worker_handle_work (io_uring/io-wq.c:434 io_uring/io-wq.c:569)\n\t io_wq_worker (io_uring/io-wq.c:?)\n\u003csnip\u003e\n\n\t read to 0xffff8885c4246404 of 4 bytes by task 49024 on cpu 5:\n\t io_wq_activate_free_worker (io_uring/io-wq.c:? io_uring/io-wq.c:285)\n\t io_wq_enqueue (io_uring/io-wq.c:947)\n\t io_queue_iowq (io_uring/io_uring.c:524)\n\t io_req_task_submit (io_uring/io_uring.c:1511)\n\t io_handle_tw_list (io_uring/io_uring.c:1198)\n\u003csnip\u003e\n\nLine numbers against commit 18daea77cca6 (\"Merge tag \u0027for-linus\u0027 of\ngit://git.kernel.org/pub/scm/virt/kvm/kvm\").\n\nThese races involve writes and reads to the same memory location by\ndifferent tasks running on different CPUs. To mitigate this, refactor\nthe code to use atomic operations such as set_bit(), test_bit(), and\nclear_bit() instead of basic \"and\" and \"or\" operations. This ensures\nthread-safe manipulation of worker flags.\n\nAlso, move `create_index` to avoid holes in the structure."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The race is reached only through local io_uring syscalls (`io_uring_setup(2)`/`io_uring_enter(2)`) on a ring the attacker owns, via `io_queue_iowq()` \u2192 `io_wq_enqueue()` \u2192 `io_wq_activate_free_worker()`. No network or adjacent-network data path touches `io_uring/io-wq.c`.\nAC:L - The attacker controls both sides of the race: it creates the io-wq workers, forces async punting with `IOSQE_ASYNC`, and submits from multiple threads so that `io_wq_activate_free_worker()` walks `wq-\u003efree_list` on one CPU while a worker executes the non-atomic `worker-\u003eflags \u0026= ~IO_WORKER_F_FREE` in `__io_worker_busy()` on another. The window can be hit repeatedly at no cost, exactly as KCSAN observed under ordinary load.\nPR:L - Only an unprivileged local account is required \u2014 `io_uring_setup()` performs no capability check and `sysctl_io_uring_disabled` defaults to 0, permitting io_uring for all users; io-wq worker threads are created on demand for that user\u0027s own ring.\nUI:N - The attacking task performs every step itself \u2014 creating the ring, spawning submitter threads, and queueing async work \u2014 with no action required from any other user or administrator.\nS:U - The raced state and all its consequences live in the kernel\u0027s own io-wq bookkeeping for the calling task\u0027s ring; no VM, hypervisor, IOMMU, or sandbox boundary is crossed.\nC:H - The raced field is the sole guard on `wq-\u003efree_list` membership \u2014 `io_worker_exit()` unlinks `worker-\u003enulls_node` only `if (worker-\u003eflags \u0026 IO_WORKER_F_FREE)` before `kfree_rcu(worker, rcu)` \u2014 so an indeterminate value leaves a freed `io_worker` linked and read by `io_wq_activate_free_worker()` from other tasks, which after slab reuse discloses attacker-observable kernel heap contents through `worker-\u003ewq` and `worker-\u003etask`.\nI:H - The same stale-flag path lets other tasks operate on a freed `io_worker`: `io_worker_get()` performs `refcount_inc_not_zero` into a reallocated slab object and `wake_up_process(worker-\u003etask)` dereferences a sprayable pointer into the scheduler, yielding a write and control-flow primitive.\nA:H - A wrong `IO_WORKER_F_BOUND` read makes `io_wq_activate_free_worker()` wake a worker from the other accounting class and return true, so `io_wq_enqueue()` skips `io_wq_create_worker()` and the queued work is left with no worker to run it \u2014 an indefinite hang of the io_uring request plus `acct-\u003enr_running` imbalance, triggerable at will by an unprivileged user."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:33:51.352Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ab702c3483db9046bab9f40306f1a28b22dbbdc0"
        },
        {
          "url": "https://git.kernel.org/stable/c/1cbb0affb15470a9621267fe0a8568007553a4bf"
        },
        {
          "url": "https://git.kernel.org/stable/c/8a565304927fbd28c9f028c492b5c1714002cbab"
        }
      ],
      "title": "io_uring/io-wq: Use set_bit() and test_bit() at worker-\u003eflags",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-39508",
    "datePublished": "2024-07-12T12:20:39.607Z",
    "dateReserved": "2024-06-25T14:23:23.753Z",
    "dateUpdated": "2026-08-05T11:33:51.352Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2024-39508",
      "date": "2026-08-08",
      "epss": "0.00224",
      "percentile": "0.13056"
    },
    "microsoft_vex": {
      "current_release_date": "2026-03-31T15:18:10.000Z",
      "cve": "CVE-2024-39508",
      "id": "msrc_CVE-2024-39508",
      "initial_release_date": "2024-07-01T07:00:00.000Z",
      "product_status:known_affected": "3",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "io_uring/io-wq: Use set_bit() and test_bit() at worker-\u003eflags",
      "url": "https://msrc.microsoft.com/csaf/vex/2024/msrc_cve-2024-39508.json",
      "version": "3"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-39508\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-07-12T13:15:13.130\",\"lastModified\":\"2026-06-17T07:42:04.430\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nio_uring/io-wq: Use set_bit() and test_bit() at worker-\u003eflags\\n\\nUtilize set_bit() and test_bit() on worker-\u003eflags within io_uring/io-wq\\nto address potential data races.\\n\\nThe structure io_worker-\u003eflags may be accessed through various data\\npaths, leading to concurrency issues. When KCSAN is enabled, it reveals\\ndata races occurring in io_worker_handle_work and\\nio_wq_activate_free_worker functions.\\n\\n\\t BUG: KCSAN: data-race in io_worker_handle_work / io_wq_activate_free_worker\\n\\t write to 0xffff8885c4246404 of 4 bytes by task 49071 on cpu 28:\\n\\t io_worker_handle_work (io_uring/io-wq.c:434 io_uring/io-wq.c:569)\\n\\t io_wq_worker (io_uring/io-wq.c:?)\\n\u003csnip\u003e\\n\\n\\t read to 0xffff8885c4246404 of 4 bytes by task 49024 on cpu 5:\\n\\t io_wq_activate_free_worker (io_uring/io-wq.c:? io_uring/io-wq.c:285)\\n\\t io_wq_enqueue (io_uring/io-wq.c:947)\\n\\t io_queue_iowq (io_uring/io_uring.c:524)\\n\\t io_req_task_submit (io_uring/io_uring.c:1511)\\n\\t io_handle_tw_list (io_uring/io_uring.c:1198)\\n\u003csnip\u003e\\n\\nLine numbers against commit 18daea77cca6 (\\\"Merge tag \u0027for-linus\u0027 of\\ngit://git.kernel.org/pub/scm/virt/kvm/kvm\\\").\\n\\nThese races involve writes and reads to the same memory location by\\ndifferent tasks running on different CPUs. To mitigate this, refactor\\nthe code to use atomic operations such as set_bit(), test_bit(), and\\nclear_bit() instead of basic \\\"and\\\" and \\\"or\\\" operations. This ensures\\nthread-safe manipulation of worker flags.\\n\\nAlso, move `create_index` to avoid holes in the structure.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: io_uring/io-wq: use set_bit() y test_bit() en trabajador-\u0026gt;flags Utilice set_bit() y test_bit() en trabajador-\u0026gt;flags dentro de io_uring/io-wq para abordar posibles ejecuci\u00f3ns de datos. Se puede acceder a la estructura io_worker-\u0026gt;flags a trav\u00e9s de varias rutas de datos, lo que genera problemas de concurrencia. Cuando KCSAN est\u00e1 habilitado, revela ejecuci\u00f3ns de datos que ocurren en las funciones io_worker_handle_work y io_wq_activate_free_worker. ERROR: KCSAN: ejecuci\u00f3n de datos en io_worker_handle_work/io_wq_activate_free_worker escribe en 0xffff8885c4246404 de 4 bytes por tarea 49071 en la CPU 28: io_worker_handle_work (io_uring/io-wq.c:434 io_uring/io-wq.c:569) (io_durante/io -wq.c:?)  leer en 0xffff8885c4246404 de 4 bytes por tarea 49024 en la 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)  N\u00fameros de l\u00ednea contra El commit 18daea77cca6 (\\\"Etiqueta de combinaci\u00f3n \u0027para -linus\u0027 de git://git.kernel.org/pub/scm/virt/kvm/kvm\\\"). Estas ejecuciones implican escrituras y lecturas en la misma ubicaci\u00f3n de memoria mediante diferentes tareas que se ejecutan en diferentes CPU. Para mitigar esto, refactorice el c\u00f3digo para usar operaciones at\u00f3micas como set_bit(), test_bit() y clear_bit() en lugar de operaciones b\u00e1sicas \\\"y\\\" y \\\"o\\\". Esto garantiza una manipulaci\u00f3n segura para subprocesos de los indicadores de los trabajadores. Adem\u00e1s, mueva `create_index` para evitar agujeros en la estructura.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"io_uring/io-wq.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"2b188cc1bb857a9d4701ae59aa7768b5124e262e\",\"lessThan\":\"ab702c3483db9046bab9f40306f1a28b22dbbdc0\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2b188cc1bb857a9d4701ae59aa7768b5124e262e\",\"lessThan\":\"1cbb0affb15470a9621267fe0a8568007553a4bf\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2b188cc1bb857a9d4701ae59aa7768b5124e262e\",\"lessThan\":\"8a565304927fbd28c9f028c492b5c1714002cbab\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"io_uring/io-wq.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.1\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.1\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.35\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.9.6\",\"lessThanOrEqual\":\"6.9.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.10\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":4.7,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"HIGH\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.0,\"impactScore\":3.6}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2024-09-10T17:06:48.077960Z\",\"id\":\"CVE-2024-39508\",\"options\":[{\"exploitation\":\"none\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"partial\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-362\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.1\",\"versionEndExcluding\":\"6.6.35\",\"matchCriteriaId\":\"8A1DF348-9444-4E81-908D-E55FC0BAE7EB\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.9.6\",\"matchCriteriaId\":\"0ABBBA1D-F79D-4BDB-AA41-D1EDCC4A6975\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1cbb0affb15470a9621267fe0a8568007553a4bf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/8a565304927fbd28c9f028c492b5c1714002cbab\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ab702c3483db9046bab9f40306f1a28b22dbbdc0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/1cbb0affb15470a9621267fe0a8568007553a4bf\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/8a565304927fbd28c9f028c492b5c1714002cbab\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ab702c3483db9046bab9f40306f1a28b22dbbdc0\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-04T18:48:40+00:00",
      "cve": "CVE-2024-39508",
      "id": "CVE-2024-39508",
      "initial_release_date": "2024-07-12T00:00:00+00:00",
      "product_status:fixed": "280",
      "product_status:known_affected": "22",
      "product_status:known_not_affected": "98",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: io_uring/io-wq: Use set_bit() and test_bit() at worker-\u003eflags",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-39508.json",
      "version": "3"
    },
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/ab702c3483db9046bab9f40306f1a28b22dbbdc0\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/1cbb0affb15470a9621267fe0a8568007553a4bf\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/8a565304927fbd28c9f028c492b5c1714002cbab\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T04:26:15.901Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-39508\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T17:06:48.077960Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:12.464Z\"}}], \"cna\": {\"title\": \"io_uring/io-wq: Use set_bit() and test_bit() at worker-\u003eflags\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"2b188cc1bb857a9d4701ae59aa7768b5124e262e\", \"lessThan\": \"ab702c3483db9046bab9f40306f1a28b22dbbdc0\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"2b188cc1bb857a9d4701ae59aa7768b5124e262e\", \"lessThan\": \"1cbb0affb15470a9621267fe0a8568007553a4bf\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"2b188cc1bb857a9d4701ae59aa7768b5124e262e\", \"lessThan\": \"8a565304927fbd28c9f028c492b5c1714002cbab\", \"versionType\": \"git\"}], \"programFiles\": [\"io_uring/io-wq.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.1\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.1\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.6.35\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.9.6\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.9.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"io_uring/io-wq.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/ab702c3483db9046bab9f40306f1a28b22dbbdc0\"}, {\"url\": \"https://git.kernel.org/stable/c/1cbb0affb15470a9621267fe0a8568007553a4bf\"}, {\"url\": \"https://git.kernel.org/stable/c/8a565304927fbd28c9f028c492b5c1714002cbab\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nio_uring/io-wq: Use set_bit() and test_bit() at worker-\u003eflags\\n\\nUtilize set_bit() and test_bit() on worker-\u003eflags within io_uring/io-wq\\nto address potential data races.\\n\\nThe structure io_worker-\u003eflags may be accessed through various data\\npaths, leading to concurrency issues. When KCSAN is enabled, it reveals\\ndata races occurring in io_worker_handle_work and\\nio_wq_activate_free_worker functions.\\n\\n\\t BUG: KCSAN: data-race in io_worker_handle_work / io_wq_activate_free_worker\\n\\t write to 0xffff8885c4246404 of 4 bytes by task 49071 on cpu 28:\\n\\t io_worker_handle_work (io_uring/io-wq.c:434 io_uring/io-wq.c:569)\\n\\t io_wq_worker (io_uring/io-wq.c:?)\\n\u003csnip\u003e\\n\\n\\t read to 0xffff8885c4246404 of 4 bytes by task 49024 on cpu 5:\\n\\t io_wq_activate_free_worker (io_uring/io-wq.c:? io_uring/io-wq.c:285)\\n\\t io_wq_enqueue (io_uring/io-wq.c:947)\\n\\t io_queue_iowq (io_uring/io_uring.c:524)\\n\\t io_req_task_submit (io_uring/io_uring.c:1511)\\n\\t io_handle_tw_list (io_uring/io_uring.c:1198)\\n\u003csnip\u003e\\n\\nLine numbers against commit 18daea77cca6 (\\\"Merge tag \u0027for-linus\u0027 of\\ngit://git.kernel.org/pub/scm/virt/kvm/kvm\\\").\\n\\nThese races involve writes and reads to the same memory location by\\ndifferent tasks running on different CPUs. To mitigate this, refactor\\nthe code to use atomic operations such as set_bit(), test_bit(), and\\nclear_bit() instead of basic \\\"and\\\" and \\\"or\\\" operations. This ensures\\nthread-safe manipulation of worker flags.\\n\\nAlso, move `create_index` to avoid holes in the structure.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-03-06T15:37:15.877Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-39508\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-03-06T15:37:15.877Z\", \"dateReserved\": \"2024-06-25T14:23:23.753Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-07-12T12:20:39.607Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…