Skip to content
Heist/ feed
Back to feed
UnratedFix available

pds_core: fix use-after-free on workqueue during remove

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: pds_core: fix use-after-free on workqueue during remove In pdsc_remove(), the workqueue is destroyed before pdsc_teardown() is called. This ordering allows two paths to queue work on the destroyed workqueue: 1. If pdsc_teardown() -> pdsc_devcmd_reset() times out, the error path in pdsc_devcmd_locked() queues health_work. 2. A NotifyQ event can trigger the ISR and queue work before free_irq() is called in pdsc_teardown(). Fix by moving destroy_workqueue() after pdsc_teardown() so the workqueue outlives every queuer; destroy_workqueue() then flushes any work still pending. Draining the queued work also requires ordering the teardown so the resources that work touches are freed last: - In pdsc_qcq_free(), after freeing the interrupt, cancel_work_sync() the queue's work and only then clear qcq->intx, so pdsc_process_adminq()'s read of qcq->intx for interrupt-credit return cannot race with the clear. - Free adminqcq before notifyqcq: the shared adminq ISR is released when adminqcq is freed, and the adminq work accesses notifyqcq, so both must be stopped before notifyqcq is freed.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.101, 6.18.42, 6.6.160, 7.1.6
CVEs
CVE-2026-68318
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 02:27 UTC · Revision 1

Source evidence

pds_core: fix use-after-free on workqueue during remove

core-osv · Original source

Published 10 Aug 2026, 12:02 UTC

In the Linux kernel, the following vulnerability has been resolved: pds_core: fix use-after-free on workqueue during remove In pdsc_remove(), the workqueue is destroyed before pdsc_teardown() is called. This ordering allows two paths to queue work on the destroyed workqueue: 1. If pdsc_teardown() -> pdsc_devcmd_reset() times out, the error path in pdsc_devcmd_locked() queues health_work. 2. A NotifyQ event can trigger the ISR and queue work before free_irq() is called in pdsc_teardown(). Fix by moving destroy_workqueue() after pdsc_teardown() so the workqueue outlives every queuer; destroy_workqueue() then flushes any work still pending. Draining the queued work also requires ordering the teardown so the resources that work touches are freed last: - In pdsc_qcq_free(), after freeing the interrupt, cancel_work_sync() the queue's work and only then clear qcq->intx, so pdsc_process_adminq()'s read of qcq->intx for interrupt-credit return cannot race with the clear. - Free adminqcq before notifyqcq: the shared adminq ISR is released when adminqcq is freed, and the adminq work accesses notifyqcq, so both must be stopped before notifyqcq is freed.

osv:CVE-2026-68318

Kernel

Fixed versions: 6.6.160, 6.12.101, 6.18.42, 7.1.6

Complete source record
{
  "id": "be1ea0539a855a081d321edf2927a91172f6e74f49c94b4b752fa37aa7ae9982",
  "url": "https://osv.dev/vulnerability/CVE-2026-68318",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "pds_core: fix use-after-free on workqueue during remove",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: pds_core: fix use-after-free on workqueue during remove In pdsc_remove(), the workqueue is destroyed before pdsc_teardown() is called. This ordering allows two paths to queue work on the destroyed workqueue: 1. If pdsc_teardown() -> pdsc_devcmd_reset() times out, the error path in pdsc_devcmd_locked() queues health_work. 2. A NotifyQ event can trigger the ISR and queue work before free_irq() is called in pdsc_teardown(). Fix by moving destroy_workqueue() after pdsc_teardown() so the workqueue outlives every queuer; destroy_workqueue() then flushes any work still pending. Draining the queued work also requires ordering the teardown so the resources that work touches are freed last: - In pdsc_qcq_free(), after freeing the interrupt, cancel_work_sync() the queue's work and only then clear qcq->intx, so pdsc_process_adminq()'s read of qcq->intx for interrupt-credit return cannot race with the clear. - Free adminqcq before notifyqcq: the shared adminq ISR is released when adminqcq is freed, and the adminq work accesses notifyqcq, so both must be stopped before notifyqcq is freed.",
    "evidence": "osv:CVE-2026-68318",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.6.160",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.101",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.42",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.1.6",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-68318",
      "aliases": [
        "CVE-2026-68318"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "01ba61b55b2041a39c54aefb3153c770dd59a0ef"
                },
                {
                  "fixed": "bac237c2aedb8225bfd2317c1361bbfce1e419ca"
                },
                {
                  "fixed": "224214eb4182ff20a665b615a90b66017539dd75"
                },
                {
                  "fixed": "9e0f80fac50ab95dd75537c8ecaf5051d01f19b5"
                },
                {
                  "fixed": "ecc7a7d7569ec1d6a61e18372696b9de97635156"
                },
                {
                  "fixed": "0ad134881508c36b65c1a8864f8bec53adbd3327"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68318.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.4.0"
                },
                {
                  "fixed": "6.6.160"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.101"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.42"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.1.6"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68318.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.746169586Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0ad134881508c36b65c1a8864f8bec53adbd3327",
        "https://git.kernel.org/stable/c/224214eb4182ff20a665b615a90b66017539dd75",
        "https://git.kernel.org/stable/c/9e0f80fac50ab95dd75537c8ecaf5051d01f19b5",
        "https://git.kernel.org/stable/c/bac237c2aedb8225bfd2317c1361bbfce1e419ca",
        "https://git.kernel.org/stable/c/ecc7a7d7569ec1d6a61e18372696b9de97635156",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68318.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-68318",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68318.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-68318",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 521778,
  "published_at": "2026-08-10T12:02:53.197+00:00"
}