CVE-2024-26623 (GCVE-0-2024-26623)
Vulnerability from cvelistv5
Published
2024-03-06 06:45
Modified
2026-08-05 11:26
Summary
In the Linux kernel, the following vulnerability has been resolved: pds_core: Prevent race issues involving the adminq There are multiple paths that can result in using the pdsc's adminq. [1] pdsc_adminq_isr and the resulting work from queue_work(), i.e. pdsc_work_thread()->pdsc_process_adminq() [2] pdsc_adminq_post() When the device goes through reset via PCIe reset and/or a fw_down/fw_up cycle due to bad PCIe state or bad device state the adminq is destroyed and recreated. A NULL pointer dereference can happen if [1] or [2] happens after the adminq is already destroyed. In order to fix this, add some further state checks and implement reference counting for adminq uses. Reference counting was used because multiple threads can attempt to access the adminq at the same time via [1] or [2]. Additionally, multiple clients (i.e. pds-vfio-pci) can be using [2] at the same time. The adminq_refcnt is initialized to 1 when the adminq has been allocated and is ready to use. Users/clients of the adminq (i.e. [1] and [2]) will increment the refcnt when they are using the adminq. When the driver goes into a fw_down cycle it will set the PDSC_S_FW_DEAD bit and then wait for the adminq_refcnt to hit 1. Setting the PDSC_S_FW_DEAD before waiting will prevent any further adminq_refcnt increments. Waiting for the adminq_refcnt to hit 1 allows for any current users of the adminq to finish before the driver frees the adminq. Once the adminq_refcnt hits 1 the driver clears the refcnt to signify that the adminq is deleted and cannot be used. On the fw_up cycle the driver will once again initialize the adminq_refcnt to 1 allowing the adminq to be used again.
Impacted products
Vendor Product Version
Linux Linux Version: 01ba61b55b2041a39c54aefb3153c770dd59a0ef
Version: 01ba61b55b2041a39c54aefb3153c770dd59a0ef
Version: 01ba61b55b2041a39c54aefb3153c770dd59a0ef
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-26623",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-03-06T14:15:26.675181Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-06-04T17:48:43.755Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T00:07:19.860Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/22cd6046eb2148b18990257505834dd45c672a1b"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/5939feb63ea1f011027576c64b68b681cbad31ca"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/7e82a8745b951b1e794cc780d46f3fbee5e93447"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/amd/pds_core/adminq.c",
            "drivers/net/ethernet/amd/pds_core/core.c",
            "drivers/net/ethernet/amd/pds_core/core.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "22cd6046eb2148b18990257505834dd45c672a1b",
              "status": "affected",
              "version": "01ba61b55b2041a39c54aefb3153c770dd59a0ef",
              "versionType": "git"
            },
            {
              "lessThan": "5939feb63ea1f011027576c64b68b681cbad31ca",
              "status": "affected",
              "version": "01ba61b55b2041a39c54aefb3153c770dd59a0ef",
              "versionType": "git"
            },
            {
              "lessThan": "7e82a8745b951b1e794cc780d46f3fbee5e93447",
              "status": "affected",
              "version": "01ba61b55b2041a39c54aefb3153c770dd59a0ef",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/amd/pds_core/adminq.c",
            "drivers/net/ethernet/amd/pds_core/core.c",
            "drivers/net/ethernet/amd/pds_core/core.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.4"
            },
            {
              "lessThan": "6.4",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.7.*",
              "status": "unaffected",
              "version": "6.7.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.8",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.16",
                  "versionStartIncluding": "6.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.7.4",
                  "versionStartIncluding": "6.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.8",
                  "versionStartIncluding": "6.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\npds_core: Prevent race issues involving the adminq\n\nThere are multiple paths that can result in using the pdsc\u0027s\nadminq.\n\n[1] pdsc_adminq_isr and the resulting work from queue_work(),\n    i.e. pdsc_work_thread()-\u003epdsc_process_adminq()\n\n[2] pdsc_adminq_post()\n\nWhen the device goes through reset via PCIe reset and/or\na fw_down/fw_up cycle due to bad PCIe state or bad device\nstate the adminq is destroyed and recreated.\n\nA NULL pointer dereference can happen if [1] or [2] happens\nafter the adminq is already destroyed.\n\nIn order to fix this, add some further state checks and\nimplement reference counting for adminq uses. Reference\ncounting was used because multiple threads can attempt to\naccess the adminq at the same time via [1] or [2]. Additionally,\nmultiple clients (i.e. pds-vfio-pci) can be using [2]\nat the same time.\n\nThe adminq_refcnt is initialized to 1 when the adminq has been\nallocated and is ready to use. Users/clients of the adminq\n(i.e. [1] and [2]) will increment the refcnt when they are using\nthe adminq. When the driver goes into a fw_down cycle it will\nset the PDSC_S_FW_DEAD bit and then wait for the adminq_refcnt\nto hit 1. Setting the PDSC_S_FW_DEAD before waiting will prevent\nany further adminq_refcnt increments. Waiting for the\nadminq_refcnt to hit 1 allows for any current users of the adminq\nto finish before the driver frees the adminq. Once the\nadminq_refcnt hits 1 the driver clears the refcnt to signify that\nthe adminq is deleted and cannot be used. On the fw_up cycle the\ndriver will once again initialize the adminq_refcnt to 1 allowing\nthe adminq to be used again."
        }
      ],
      "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 adminq is driven from local interfaces only \u2014 vhost-vdpa ioctls via drivers/vdpa/pds, VFIO migration commands via drivers/vfio/pci/pds/cmds.c, and devlink/PCI reset paths; no remote peer data reaches this code.\nAC:L - A local attacker controls one side of the race directly (unbounded concurrent pdsc_adminq_post() calls from multiple client threads) and can influence the teardown side, since command timeouts/ENXIO queue health_work and a VFIO/vDPA holder can induce device resets, so the window is repeatedly retryable at will.\nPR:L - An unprivileged local user holding a vhost-vdpa or VFIO device fd \u2014 a normal delegation to a VMM or container in cloud/virtualization deployments where these AMD Pensando cards are used \u2014 can post adminq commands; no root or init-namespace capability is required.\nUI:N - Exploitation only requires the attacker\u0027s own concurrent adminq activity across a firmware-recovery or PCIe reset cycle; no victim action is involved.\nS:U - The corruption and crash occur in the host kernel that owns the driver; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - Racing pdsc_process_notifyq()/pdsc_process_adminq() read cq-\u003einfo and the completion buffer after vfree()/dma_free_coherent(), so freed and potentially reallocated kernel memory is read and its contents propagated to client drivers through pdsc_notify(), giving a use-after-free read primitive.\nI:H - __pdsc_adminq_post() writes q_info-\u003ewc, q_info-\u003edest and a 64-byte partly attacker-controlled memcpy into vfree\u0027d descriptor memory and freed DMA-coherent pages, and pdsc_process_adminq() calls complete_all() through a pointer taken from freed memory \u2014 a use-after-free write usable for heap grooming and control-flow corruption.\nA:H - The commit states a NULL pointer dereference occurs when the adminq is used after destruction; additionally intr_ctrl/info_regs are dereferenced after iounmap and kern_dbpage is NULL, each producing a kernel oops or panic."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:26:20.441Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/22cd6046eb2148b18990257505834dd45c672a1b"
        },
        {
          "url": "https://git.kernel.org/stable/c/5939feb63ea1f011027576c64b68b681cbad31ca"
        },
        {
          "url": "https://git.kernel.org/stable/c/7e82a8745b951b1e794cc780d46f3fbee5e93447"
        }
      ],
      "title": "pds_core: Prevent race issues involving the adminq",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-26623",
    "datePublished": "2024-03-06T06:45:32.278Z",
    "dateReserved": "2024-02-19T14:20:24.134Z",
    "dateUpdated": "2026-08-05T11:26:20.441Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/22cd6046eb2148b18990257505834dd45c672a1b\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/5939feb63ea1f011027576c64b68b681cbad31ca\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/7e82a8745b951b1e794cc780d46f3fbee5e93447\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T00:07:19.860Z\"}}, {\"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-26623\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-03-06T14:15:26.675181Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-23T19:01:10.765Z\"}, \"title\": \"CISA ADP Vulnrichment\"}], \"cna\": {\"title\": \"pds_core: Prevent race issues involving the adminq\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.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\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:L - The adminq is driven from local interfaces only \\u2014 vhost-vdpa ioctls via drivers/vdpa/pds, VFIO migration commands via drivers/vfio/pci/pds/cmds.c, and devlink/PCI reset paths; no remote peer data reaches this code.\\nAC:L - A local attacker controls one side of the race directly (unbounded concurrent pdsc_adminq_post() calls from multiple client threads) and can influence the teardown side, since command timeouts/ENXIO queue health_work and a VFIO/vDPA holder can induce device resets, so the window is repeatedly retryable at will.\\nPR:L - An unprivileged local user holding a vhost-vdpa or VFIO device fd \\u2014 a normal delegation to a VMM or container in cloud/virtualization deployments where these AMD Pensando cards are used \\u2014 can post adminq commands; no root or init-namespace capability is required.\\nUI:N - Exploitation only requires the attacker\u0027s own concurrent adminq activity across a firmware-recovery or PCIe reset cycle; no victim action is involved.\\nS:U - The corruption and crash occur in the host kernel that owns the driver; no VM, IOMMU, or sandbox boundary is crossed.\\nC:H - Racing pdsc_process_notifyq()/pdsc_process_adminq() read cq-\u003einfo and the completion buffer after vfree()/dma_free_coherent(), so freed and potentially reallocated kernel memory is read and its contents propagated to client drivers through pdsc_notify(), giving a use-after-free read primitive.\\nI:H - __pdsc_adminq_post() writes q_info-\u003ewc, q_info-\u003edest and a 64-byte partly attacker-controlled memcpy into vfree\u0027d descriptor memory and freed DMA-coherent pages, and pdsc_process_adminq() calls complete_all() through a pointer taken from freed memory \\u2014 a use-after-free write usable for heap grooming and control-flow corruption.\\nA:H - The commit states a NULL pointer dereference occurs when the adminq is used after destruction; additionally intr_ctrl/info_regs are dereferenced after iounmap and kern_dbpage is NULL, each producing a kernel oops or panic.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"01ba61b55b2041a39c54aefb3153c770dd59a0ef\", \"lessThan\": \"22cd6046eb2148b18990257505834dd45c672a1b\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"01ba61b55b2041a39c54aefb3153c770dd59a0ef\", \"lessThan\": \"5939feb63ea1f011027576c64b68b681cbad31ca\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"01ba61b55b2041a39c54aefb3153c770dd59a0ef\", \"lessThan\": \"7e82a8745b951b1e794cc780d46f3fbee5e93447\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/net/ethernet/amd/pds_core/adminq.c\", \"drivers/net/ethernet/amd/pds_core/core.c\", \"drivers/net/ethernet/amd/pds_core/core.h\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.4\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.4\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.6.16\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.7.4\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.7.*\"}, {\"status\": \"unaffected\", \"version\": \"6.8\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/net/ethernet/amd/pds_core/adminq.c\", \"drivers/net/ethernet/amd/pds_core/core.c\", \"drivers/net/ethernet/amd/pds_core/core.h\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/22cd6046eb2148b18990257505834dd45c672a1b\"}, {\"url\": \"https://git.kernel.org/stable/c/5939feb63ea1f011027576c64b68b681cbad31ca\"}, {\"url\": \"https://git.kernel.org/stable/c/7e82a8745b951b1e794cc780d46f3fbee5e93447\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\npds_core: Prevent race issues involving the adminq\\n\\nThere are multiple paths that can result in using the pdsc\u0027s\\nadminq.\\n\\n[1] pdsc_adminq_isr and the resulting work from queue_work(),\\n    i.e. pdsc_work_thread()-\u003epdsc_process_adminq()\\n\\n[2] pdsc_adminq_post()\\n\\nWhen the device goes through reset via PCIe reset and/or\\na fw_down/fw_up cycle due to bad PCIe state or bad device\\nstate the adminq is destroyed and recreated.\\n\\nA NULL pointer dereference can happen if [1] or [2] happens\\nafter the adminq is already destroyed.\\n\\nIn order to fix this, add some further state checks and\\nimplement reference counting for adminq uses. Reference\\ncounting was used because multiple threads can attempt to\\naccess the adminq at the same time via [1] or [2]. Additionally,\\nmultiple clients (i.e. pds-vfio-pci) can be using [2]\\nat the same time.\\n\\nThe adminq_refcnt is initialized to 1 when the adminq has been\\nallocated and is ready to use. Users/clients of the adminq\\n(i.e. [1] and [2]) will increment the refcnt when they are using\\nthe adminq. When the driver goes into a fw_down cycle it will\\nset the PDSC_S_FW_DEAD bit and then wait for the adminq_refcnt\\nto hit 1. Setting the PDSC_S_FW_DEAD before waiting will prevent\\nany further adminq_refcnt increments. Waiting for the\\nadminq_refcnt to hit 1 allows for any current users of the adminq\\nto finish before the driver frees the adminq. Once the\\nadminq_refcnt hits 1 the driver clears the refcnt to signify that\\nthe adminq is deleted and cannot be used. On the fw_up cycle the\\ndriver will once again initialize the adminq_refcnt to 1 allowing\\nthe adminq to be used again.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.16\", \"versionStartIncluding\": \"6.4\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.7.4\", \"versionStartIncluding\": \"6.4\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.8\", \"versionStartIncluding\": \"6.4\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T11:26:20.441Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-26623\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-05T11:26:20.441Z\", \"dateReserved\": \"2024-02-19T14:20:24.134Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-03-06T06:45:32.278Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…