{"id":"CVE-2026-31747","aliases":["CVE-2026-31747"],"related":[],"kind":"vulnerability","state":"published","title":"comedi: me4000: Fix potential overrun of firmware buffer","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncomedi: me4000: Corrige un posible desbordamiento del búfer de firmware\n\n“me4000_xilinx_download()” carga el firmware que fue solicitado por “request_firmware()”. Es posible que desborde el búfer de origen porque confía ciegamente en el formato del archivo. Lee una longitud de flujo de datos de los primeros 4 bytes en la variable “file_length” y lee el contenido del flujo de datos de longitud “file_length” desde el desplazamiento 16 en adelante.\n\nAñade una prueba para asegurar que el firmware suministrado sea lo suficientemente largo para contener la cabecera y el flujo de datos. En caso de fallo, registra un error y devuelve “-EINVAL”.\n\nNota: La carga del firmware estaba totalmente rota antes del commit ac584af59945 (’staging: comedi: me4000: fix firmware downloading’), pero ese es el objetivo más sensato para esta corrección.","source":"nvd"}],"published":"2026-05-01T14:14:40.844Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"ac584af599452748187cf6d7865b1607c54ee443","fixed":"8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6","status":"affected"},{"type":"git","introduced":"ac584af599452748187cf6d7865b1607c54ee443","fixed":"64b24b713e1a3ea6624480594b4f8c2ff86502f2","status":"affected"},{"type":"git","introduced":"ac584af599452748187cf6d7865b1607c54ee443","fixed":"f72b5567f7c117b46b4058dc6a0c7554f8565561","status":"affected"},{"type":"git","introduced":"ac584af599452748187cf6d7865b1607c54ee443","fixed":"1603dd471f47762e9d1f52304edb3e49a7e62655","status":"affected"},{"type":"git","introduced":"ac584af599452748187cf6d7865b1607c54ee443","fixed":"99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5","status":"affected"},{"type":"git","introduced":"ac584af599452748187cf6d7865b1607c54ee443","fixed":"eae19cab44204537f79146f15a51811b13227c38","status":"affected"},{"type":"git","introduced":"ac584af599452748187cf6d7865b1607c54ee443","fixed":"de3f923ae7d91480ed3ecea1b1e1fc0dc25b597d","status":"affected"},{"type":"git","introduced":"ac584af599452748187cf6d7865b1607c54ee443","fixed":"3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.19","status":"unaffected"},{"type":"semver","introduced":"5.10.253","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.168","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.134","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.81","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.22","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.12","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.19","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.168"},{"status":"affected","introduced":"6.2","fixed":"6.6.134"},{"status":"affected","introduced":"6.7","fixed":"6.12.81"},{"status":"affected","introduced":"6.13","fixed":"6.18.22"},{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/64b24b713e1a3ea6624480594b4f8c2ff86502f2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f72b5567f7c117b46b4058dc6a0c7554f8565561","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1603dd471f47762e9d1f52304edb3e49a7e62655","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eae19cab44204537f79146f15a51811b13227c38","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de3f923ae7d91480ed3ecea1b1e1fc0dc25b597d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31747","url":"https://www.cve.org/CVERecord?id=CVE-2026-31747","licence":"CVE Terms of Use","modified":"2026-05-11T22:14:59.031Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31747","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31747","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.367Z","epss":{"score":0.00134,"percentile":0.03134,"date":"2026-12-01T12:00:22.000Z"}}