# CVE-2024-26623: pds_core: Prevent race issues involving the adminq

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-03-06T06:45:32.278Z
- Modified: 2026-08-05T11:26:20.441Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 01ba61b55b2041a39c54aefb3153c770dd59a0ef before 22cd6046eb2148b18990257505834dd45c672a1b; from 01ba61b55b2041a39c54aefb3153c770dd59a0ef before 5939feb63ea1f011027576c64b68b681cbad31ca; from 01ba61b55b2041a39c54aefb3153c770dd59a0ef before 7e82a8745b951b1e794cc780d46f3fbee5e93447; 6.4 (not affected: before 6.4; from 6.6.16 up to 6.6.*; from 6.7.4 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 6.4 before 6.6.16; from 6.7 before 6.7.4; 6.8

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/22cd6046eb2148b18990257505834dd45c672a1b> (mailing-list, patch)
- <https://git.kernel.org/stable/c/5939feb63ea1f011027576c64b68b681cbad31ca> (mailing-list, patch)
- <https://git.kernel.org/stable/c/7e82a8745b951b1e794cc780d46f3fbee5e93447> (mailing-list, patch)

## Sources

- CVE List: [CVE-2024-26623](https://www.cve.org/CVERecord?id=CVE-2024-26623), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-26623](https://nvd.nist.gov/vuln/detail/CVE-2024-26623), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-26623 · Whole record: https://cve.day/CVE-2024-26623.json · Rebuilt by cve.day 2026-11-25T22:58:37.290Z
