{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "b0eed085903e7758532696d64397901a75bba8ba"
            },
            {
              "fixed": "8f09ff41154f97258efeab05e965a7991d5ab51b"
            },
            {
              "fixed": "8197c76ab20bc6040b1e136e823f164703482ac2"
            },
            {
              "fixed": "e1d2d60b1f50296828d3f7ff26c45d1a90f142ef"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.18.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139403.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nhisi_acc_vfio_pci: fix NULL dereference in reset_prepare on PF passthrough\n\nWhen a PF is bound to the driver via driver_override and passed\nthrough to a VM, its pf_qm stays NULL. The PCI error handler\nreset_prepare() runs during open_device through\npci_try_reset_function(), before the mig_ops gate, and dereferences\nthe NULL pf_qm for the timeout log, crashing the kernel.\n\nMove the mig_ops check to the entry of reset_prepare() and\naer_reset_done() so non-migration devices skip the QM_RESETTING\ncoordination. The dev local resolved \u0026qm-\u003epdev-\u003edev before the\ngate, so open code it at the dev_err() call where qm is known\nvalid. Also clear set_reset_flag together with QM_RESETTING in\naer_reset_done(); the flag was never cleared before, so a later\ntimed-out reset could release a foreign lock.",
  "id": "CVE-2026-139403",
  "modified": "2026-11-30T14:45:19.483434482Z",
  "published": "2026-11-30T13:34:26.107Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8197c76ab20bc6040b1e136e823f164703482ac2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8f09ff41154f97258efeab05e965a7991d5ab51b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e1d2d60b1f50296828d3f7ff26c45d1a90f142ef"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139403.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139403"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "hisi_acc_vfio_pci: fix NULL dereference in reset_prepare on PF passthrough"
}