{
  "id": "CVE-2026-46036",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-46036",
  "published_at": "2026-05-27T12:56:46.381Z",
  "title": "vfio/cdx: Serialize VFIO_DEVICE_SET_IRQS with a per-device mutex",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nvfio/cdx: Serialize VFIO_DEVICE_SET_IRQS with a per-device mutex\n\nvfio_cdx_set_msi_trigger() reads vdev-\u003econfig_msi and operates on the\nvdev-\u003ecdx_irqs array based on its value, but provides no serialization\nagainst concurrent VFIO_DEVICE_SET_IRQS ioctls.  Two callers can race\nsuch that one observes config_msi as set while another clears it and\nfrees cdx_irqs via vfio_cdx_msi_disable(), resulting in a use-after-free\nof the cdx_irqs array.\n\nAdd a cdx_irqs_lock mutex to struct vfio_cdx_device and acquire it in\nvfio_cdx_set_msi_trigger(), which is the single chokepoint through\nwhich all updates to config_msi, cdx_irqs, and msi_count flow, covering\nboth the ioctl path and the close-device cleanup path.  This keeps the\ntest of config_msi atomic with the subsequent enable, disable, or\ntrigger operations.\n\nDrop the pre-call !cdx_irqs test from vfio_cdx_irqs_cleanup() as part\nof this change: the optimization it provided is redundant with the\n!config_msi early-return inside vfio_cdx_msi_disable(), and leaving the\ntest in place would be an unsynchronized read of state the new lock is\nmeant to protect.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 848e447e000c41894ff931dc7c004fd42c8840f8, \u003c ddf96e23c366c566283fce8377928851fa7f5e81",
          "\u003e= 848e447e000c41894ff931dc7c004fd42c8840f8, \u003c 7b436ade16cc81095d79b79f8efa3af0a4f5c5a2",
          "\u003e= 848e447e000c41894ff931dc7c004fd42c8840f8, \u003c 7530f34ec0ca1438d45a75dcb43183a1cc92eced",
          "\u003e= 848e447e000c41894ff931dc7c004fd42c8840f8, \u003c 670e8864b1a218d72f08db40d0103adf38fa1d9b"
        ],
        "fixed_in": [
          "ddf96e23c366c566283fce8377928851fa7f5e81",
          "7b436ade16cc81095d79b79f8efa3af0a4f5c5a2",
          "7530f34ec0ca1438d45a75dcb43183a1cc92eced",
          "670e8864b1a218d72f08db40d0103adf38fa1d9b"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.10"
        ],
        "fixed_in": [
          "0",
          "6.12.86",
          "6.18.27",
          "7.0.4",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to ddf96e23c366c566283fce8377928851fa7f5e81 or 7b436ade16cc81095d79b79f8efa3af0a4f5c5a2 or 7530f34ec0ca1438d45a75dcb43183a1cc92eced or 670e8864b1a218d72f08db40d0103adf38fa1d9b or later.",
      "Upgrade Linux to 0 or 6.12.86 or 6.18.27 or 7.0.4 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
