CVE-2023-54302 (GCVE-0-2023-54302)

Vulnerability from cvelistv5 – Published: 2025-12-30 12:23 – Updated: 2025-12-30 12:23
VLAI?
Title
RDMA/irdma: Fix data race on CQP completion stats
Summary
In the Linux kernel, the following vulnerability has been resolved: RDMA/irdma: Fix data race on CQP completion stats CQP completion statistics is read lockesly in irdma_wait_event and irdma_check_cqp_progress while it can be updated in the completion thread irdma_sc_ccq_get_cqe_info on another CPU as KCSAN reports. Make completion statistics an atomic variable to reflect coherent updates to it. This will also avoid load/store tearing logic bug potentially possible by compiler optimizations. [77346.170861] BUG: KCSAN: data-race in irdma_handle_cqp_op [irdma] / irdma_sc_ccq_get_cqe_info [irdma] [77346.171383] write to 0xffff8a3250b108e0 of 8 bytes by task 9544 on cpu 4: [77346.171483] irdma_sc_ccq_get_cqe_info+0x27a/0x370 [irdma] [77346.171658] irdma_cqp_ce_handler+0x164/0x270 [irdma] [77346.171835] cqp_compl_worker+0x1b/0x20 [irdma] [77346.172009] process_one_work+0x4d1/0xa40 [77346.172024] worker_thread+0x319/0x700 [77346.172037] kthread+0x180/0x1b0 [77346.172054] ret_from_fork+0x22/0x30 [77346.172136] read to 0xffff8a3250b108e0 of 8 bytes by task 9838 on cpu 2: [77346.172234] irdma_handle_cqp_op+0xf4/0x4b0 [irdma] [77346.172413] irdma_cqp_aeq_cmd+0x75/0xa0 [irdma] [77346.172592] irdma_create_aeq+0x390/0x45a [irdma] [77346.172769] irdma_rt_init_hw.cold+0x212/0x85d [irdma] [77346.172944] irdma_probe+0x54f/0x620 [irdma] [77346.173122] auxiliary_bus_probe+0x66/0xa0 [77346.173137] really_probe+0x140/0x540 [77346.173154] __driver_probe_device+0xc7/0x220 [77346.173173] driver_probe_device+0x5f/0x140 [77346.173190] __driver_attach+0xf0/0x2c0 [77346.173208] bus_for_each_dev+0xa8/0xf0 [77346.173225] driver_attach+0x29/0x30 [77346.173240] bus_add_driver+0x29c/0x2f0 [77346.173255] driver_register+0x10f/0x1a0 [77346.173272] __auxiliary_driver_register+0xbc/0x140 [77346.173287] irdma_init_module+0x55/0x1000 [irdma] [77346.173460] do_one_initcall+0x7d/0x410 [77346.173475] do_init_module+0x81/0x2c0 [77346.173491] load_module+0x1232/0x12c0 [77346.173506] __do_sys_finit_module+0x101/0x180 [77346.173522] __x64_sys_finit_module+0x3c/0x50 [77346.173538] do_syscall_64+0x39/0x90 [77346.173553] entry_SYSCALL_64_after_hwframe+0x63/0xcd [77346.173634] value changed: 0x0000000000000094 -> 0x0000000000000095
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 915cc7ac0f8e2a23675ee896e87f17c7d3c47089 , < bf0f9f65b7fe36ea9d2e23263dcefc90255d7b1f (git)
Affected: 915cc7ac0f8e2a23675ee896e87f17c7d3c47089 , < 4e1a5842a359ee18d5a9e75097d7cf4d93e233bb (git)
Affected: 915cc7ac0f8e2a23675ee896e87f17c7d3c47089 , < 2623ca92cd8f9668edabe9e4f4a3cf77fd7115f2 (git)
Affected: 915cc7ac0f8e2a23675ee896e87f17c7d3c47089 , < f2c3037811381f9149243828c7eb9a1631df9f9c (git)
Create a notification for this product.
    Linux Linux Affected: 5.14
Unaffected: 0 , < 5.14 (semver)
Unaffected: 5.15.124 , ≤ 5.15.* (semver)
Unaffected: 6.1.43 , ≤ 6.1.* (semver)
Unaffected: 6.4.8 , ≤ 6.4.* (semver)
Unaffected: 6.5 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/infiniband/hw/irdma/ctrl.c",
            "drivers/infiniband/hw/irdma/defs.h",
            "drivers/infiniband/hw/irdma/type.h",
            "drivers/infiniband/hw/irdma/utils.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "bf0f9f65b7fe36ea9d2e23263dcefc90255d7b1f",
              "status": "affected",
              "version": "915cc7ac0f8e2a23675ee896e87f17c7d3c47089",
              "versionType": "git"
            },
            {
              "lessThan": "4e1a5842a359ee18d5a9e75097d7cf4d93e233bb",
              "status": "affected",
              "version": "915cc7ac0f8e2a23675ee896e87f17c7d3c47089",
              "versionType": "git"
            },
            {
              "lessThan": "2623ca92cd8f9668edabe9e4f4a3cf77fd7115f2",
              "status": "affected",
              "version": "915cc7ac0f8e2a23675ee896e87f17c7d3c47089",
              "versionType": "git"
            },
            {
              "lessThan": "f2c3037811381f9149243828c7eb9a1631df9f9c",
              "status": "affected",
              "version": "915cc7ac0f8e2a23675ee896e87f17c7d3c47089",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/infiniband/hw/irdma/ctrl.c",
            "drivers/infiniband/hw/irdma/defs.h",
            "drivers/infiniband/hw/irdma/type.h",
            "drivers/infiniband/hw/irdma/utils.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.14"
            },
            {
              "lessThan": "5.14",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.124",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.43",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.4.*",
              "status": "unaffected",
              "version": "6.4.8",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.5",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.124",
                  "versionStartIncluding": "5.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.43",
                  "versionStartIncluding": "5.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4.8",
                  "versionStartIncluding": "5.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.5",
                  "versionStartIncluding": "5.14",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/irdma: Fix data race on CQP completion stats\n\nCQP completion statistics is read lockesly in irdma_wait_event and\nirdma_check_cqp_progress while it can be updated in the completion\nthread irdma_sc_ccq_get_cqe_info on another CPU as KCSAN reports.\n\nMake completion statistics an atomic variable to reflect coherent updates\nto it. This will also avoid load/store tearing logic bug potentially\npossible by compiler optimizations.\n\n[77346.170861] BUG: KCSAN: data-race in irdma_handle_cqp_op [irdma] / irdma_sc_ccq_get_cqe_info [irdma]\n\n[77346.171383] write to 0xffff8a3250b108e0 of 8 bytes by task 9544 on cpu 4:\n[77346.171483]  irdma_sc_ccq_get_cqe_info+0x27a/0x370 [irdma]\n[77346.171658]  irdma_cqp_ce_handler+0x164/0x270 [irdma]\n[77346.171835]  cqp_compl_worker+0x1b/0x20 [irdma]\n[77346.172009]  process_one_work+0x4d1/0xa40\n[77346.172024]  worker_thread+0x319/0x700\n[77346.172037]  kthread+0x180/0x1b0\n[77346.172054]  ret_from_fork+0x22/0x30\n\n[77346.172136] read to 0xffff8a3250b108e0 of 8 bytes by task 9838 on cpu 2:\n[77346.172234]  irdma_handle_cqp_op+0xf4/0x4b0 [irdma]\n[77346.172413]  irdma_cqp_aeq_cmd+0x75/0xa0 [irdma]\n[77346.172592]  irdma_create_aeq+0x390/0x45a [irdma]\n[77346.172769]  irdma_rt_init_hw.cold+0x212/0x85d [irdma]\n[77346.172944]  irdma_probe+0x54f/0x620 [irdma]\n[77346.173122]  auxiliary_bus_probe+0x66/0xa0\n[77346.173137]  really_probe+0x140/0x540\n[77346.173154]  __driver_probe_device+0xc7/0x220\n[77346.173173]  driver_probe_device+0x5f/0x140\n[77346.173190]  __driver_attach+0xf0/0x2c0\n[77346.173208]  bus_for_each_dev+0xa8/0xf0\n[77346.173225]  driver_attach+0x29/0x30\n[77346.173240]  bus_add_driver+0x29c/0x2f0\n[77346.173255]  driver_register+0x10f/0x1a0\n[77346.173272]  __auxiliary_driver_register+0xbc/0x140\n[77346.173287]  irdma_init_module+0x55/0x1000 [irdma]\n[77346.173460]  do_one_initcall+0x7d/0x410\n[77346.173475]  do_init_module+0x81/0x2c0\n[77346.173491]  load_module+0x1232/0x12c0\n[77346.173506]  __do_sys_finit_module+0x101/0x180\n[77346.173522]  __x64_sys_finit_module+0x3c/0x50\n[77346.173538]  do_syscall_64+0x39/0x90\n[77346.173553]  entry_SYSCALL_64_after_hwframe+0x63/0xcd\n\n[77346.173634] value changed: 0x0000000000000094 -\u003e 0x0000000000000095"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-30T12:23:37.165Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/bf0f9f65b7fe36ea9d2e23263dcefc90255d7b1f"
        },
        {
          "url": "https://git.kernel.org/stable/c/4e1a5842a359ee18d5a9e75097d7cf4d93e233bb"
        },
        {
          "url": "https://git.kernel.org/stable/c/2623ca92cd8f9668edabe9e4f4a3cf77fd7115f2"
        },
        {
          "url": "https://git.kernel.org/stable/c/f2c3037811381f9149243828c7eb9a1631df9f9c"
        }
      ],
      "title": "RDMA/irdma: Fix data race on CQP completion stats",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-54302",
    "datePublished": "2025-12-30T12:23:37.165Z",
    "dateReserved": "2025-12-30T12:06:44.529Z",
    "dateUpdated": "2025-12-30T12:23:37.165Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-54302\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-30T13:16:19.330\",\"lastModified\":\"2025-12-30T13:16:19.330\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nRDMA/irdma: Fix data race on CQP completion stats\\n\\nCQP completion statistics is read lockesly in irdma_wait_event and\\nirdma_check_cqp_progress while it can be updated in the completion\\nthread irdma_sc_ccq_get_cqe_info on another CPU as KCSAN reports.\\n\\nMake completion statistics an atomic variable to reflect coherent updates\\nto it. This will also avoid load/store tearing logic bug potentially\\npossible by compiler optimizations.\\n\\n[77346.170861] BUG: KCSAN: data-race in irdma_handle_cqp_op [irdma] / irdma_sc_ccq_get_cqe_info [irdma]\\n\\n[77346.171383] write to 0xffff8a3250b108e0 of 8 bytes by task 9544 on cpu 4:\\n[77346.171483]  irdma_sc_ccq_get_cqe_info+0x27a/0x370 [irdma]\\n[77346.171658]  irdma_cqp_ce_handler+0x164/0x270 [irdma]\\n[77346.171835]  cqp_compl_worker+0x1b/0x20 [irdma]\\n[77346.172009]  process_one_work+0x4d1/0xa40\\n[77346.172024]  worker_thread+0x319/0x700\\n[77346.172037]  kthread+0x180/0x1b0\\n[77346.172054]  ret_from_fork+0x22/0x30\\n\\n[77346.172136] read to 0xffff8a3250b108e0 of 8 bytes by task 9838 on cpu 2:\\n[77346.172234]  irdma_handle_cqp_op+0xf4/0x4b0 [irdma]\\n[77346.172413]  irdma_cqp_aeq_cmd+0x75/0xa0 [irdma]\\n[77346.172592]  irdma_create_aeq+0x390/0x45a [irdma]\\n[77346.172769]  irdma_rt_init_hw.cold+0x212/0x85d [irdma]\\n[77346.172944]  irdma_probe+0x54f/0x620 [irdma]\\n[77346.173122]  auxiliary_bus_probe+0x66/0xa0\\n[77346.173137]  really_probe+0x140/0x540\\n[77346.173154]  __driver_probe_device+0xc7/0x220\\n[77346.173173]  driver_probe_device+0x5f/0x140\\n[77346.173190]  __driver_attach+0xf0/0x2c0\\n[77346.173208]  bus_for_each_dev+0xa8/0xf0\\n[77346.173225]  driver_attach+0x29/0x30\\n[77346.173240]  bus_add_driver+0x29c/0x2f0\\n[77346.173255]  driver_register+0x10f/0x1a0\\n[77346.173272]  __auxiliary_driver_register+0xbc/0x140\\n[77346.173287]  irdma_init_module+0x55/0x1000 [irdma]\\n[77346.173460]  do_one_initcall+0x7d/0x410\\n[77346.173475]  do_init_module+0x81/0x2c0\\n[77346.173491]  load_module+0x1232/0x12c0\\n[77346.173506]  __do_sys_finit_module+0x101/0x180\\n[77346.173522]  __x64_sys_finit_module+0x3c/0x50\\n[77346.173538]  do_syscall_64+0x39/0x90\\n[77346.173553]  entry_SYSCALL_64_after_hwframe+0x63/0xcd\\n\\n[77346.173634] value changed: 0x0000000000000094 -\u003e 0x0000000000000095\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/2623ca92cd8f9668edabe9e4f4a3cf77fd7115f2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/4e1a5842a359ee18d5a9e75097d7cf4d93e233bb\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/bf0f9f65b7fe36ea9d2e23263dcefc90255d7b1f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f2c3037811381f9149243828c7eb9a1631df9f9c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

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…