{
  "id": "CVE-2026-31747",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31747",
  "published_at": "2026-05-01T14:14:40.844Z",
  "title": "comedi: me4000: Fix potential overrun of firmware buffer",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "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\ncomedi: me4000: Fix potential overrun of firmware buffer\n\n`me4000_xilinx_download()` loads the firmware that was requested by\n`request_firmware()`.  It is possible for it to overrun the source\nbuffer because it blindly trusts the file format.  It reads a data\nstream length from the first 4 bytes into variable `file_length` and\nreads the data stream contents of length `file_length` from offset 16\nonwards.\n\nAdd a test to ensure that the supplied firmware is long enough to\ncontain the header and the data stream.  On failure, log an error and\nreturn `-EINVAL`.\n\nNote: The firmware loading was totally broken before commit ac584af59945\n(\"staging: comedi: me4000: fix firmware downloading\"), but that is the\nmost sensible target for this fix.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= ac584af599452748187cf6d7865b1607c54ee443, \u003c 8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6",
          "\u003e= ac584af599452748187cf6d7865b1607c54ee443, \u003c 64b24b713e1a3ea6624480594b4f8c2ff86502f2",
          "\u003e= ac584af599452748187cf6d7865b1607c54ee443, \u003c f72b5567f7c117b46b4058dc6a0c7554f8565561",
          "\u003e= ac584af599452748187cf6d7865b1607c54ee443, \u003c 1603dd471f47762e9d1f52304edb3e49a7e62655",
          "\u003e= ac584af599452748187cf6d7865b1607c54ee443, \u003c 99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5",
          "\u003e= ac584af599452748187cf6d7865b1607c54ee443, \u003c eae19cab44204537f79146f15a51811b13227c38",
          "\u003e= ac584af599452748187cf6d7865b1607c54ee443, \u003c de3f923ae7d91480ed3ecea1b1e1fc0dc25b597d",
          "\u003e= ac584af599452748187cf6d7865b1607c54ee443, \u003c 3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7"
        ],
        "fixed_in": [
          "8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6",
          "64b24b713e1a3ea6624480594b4f8c2ff86502f2",
          "f72b5567f7c117b46b4058dc6a0c7554f8565561",
          "1603dd471f47762e9d1f52304edb3e49a7e62655",
          "99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5",
          "eae19cab44204537f79146f15a51811b13227c38",
          "de3f923ae7d91480ed3ecea1b1e1fc0dc25b597d",
          "3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.19"
        ],
        "fixed_in": [
          "0",
          "5.10.253",
          "5.15.203",
          "6.1.168",
          "6.6.134",
          "6.12.81",
          "6.18.22",
          "6.19.12",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6 or 64b24b713e1a3ea6624480594b4f8c2ff86502f2 or f72b5567f7c117b46b4058dc6a0c7554f8565561 or 1603dd471f47762e9d1f52304edb3e49a7e62655 or 99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5 or eae19cab44204537f79146f15a51811b13227c38 or de3f923ae7d91480ed3ecea1b1e1fc0dc25b597d or 3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7 or later.",
      "Upgrade Linux to 0 or 5.10.253 or 5.15.203 or 6.1.168 or 6.6.134 or 6.12.81 or 6.18.22 or 6.19.12 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
