{"id":"CVE-2026-31748","aliases":["CVE-2026-31748"],"related":[],"kind":"vulnerability","state":"published","title":"comedi: me_daq: Fix potential overrun of firmware buffer","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: me_daq: Fix potential overrun of firmware buffer\n\n`me2600_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.  Although it checks that the supplied firmware is at least 16\nbytes long, it does not check that it is long enough to contain the data\nstream.\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`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: me_daq: Fix potential overrun of firmware buffer\n\n`me2600_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.  Although it checks that the supplied firmware is at least 16\nbytes long, it does not check that it is long enough to contain the data\nstream.\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`.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncomedi: me_daq: Soluciona un posible desbordamiento del búfer de firmware\n\n’me2600_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. Aunque comprueba que el firmware suministrado tiene al menos 16 bytes de longitud, no comprueba que sea lo suficientemente largo para contener el flujo de datos.\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’.","source":"nvd"}],"published":"2026-05-01T14:14:41.545Z","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":"85acac61096f946a78cf0c4b65f7cebe580693b6","fixed":"2fc25a4c2e055cd42ea39a1b42c89bfef70e0319","status":"affected"},{"type":"git","introduced":"85acac61096f946a78cf0c4b65f7cebe580693b6","fixed":"9f39fa07259eb342908e4aa0271dee038a8ce4f8","status":"affected"},{"type":"git","introduced":"85acac61096f946a78cf0c4b65f7cebe580693b6","fixed":"f3f8ec00cfb8d8e826e30b1138a56355b88e9ba8","status":"affected"},{"type":"git","introduced":"85acac61096f946a78cf0c4b65f7cebe580693b6","fixed":"c16ac4e173a05011437a2d868f70cc415339065a","status":"affected"},{"type":"git","introduced":"85acac61096f946a78cf0c4b65f7cebe580693b6","fixed":"1bf8761eb59e94bf7b8c17b2a1ee48f14378b172","status":"affected"},{"type":"git","introduced":"85acac61096f946a78cf0c4b65f7cebe580693b6","fixed":"a47ae40339c1048f519df33ff8840731720f57cb","status":"affected"},{"type":"git","introduced":"85acac61096f946a78cf0c4b65f7cebe580693b6","fixed":"c8c607a77aab783f2e38cc2e0f24aa6c8f6d200b","status":"affected"},{"type":"git","introduced":"85acac61096f946a78cf0c4b65f7cebe580693b6","fixed":"cc797d4821c754c701d9714b58bea947e31dbbe0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.29","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.29","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":"2.6.29","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/2fc25a4c2e055cd42ea39a1b42c89bfef70e0319","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f39fa07259eb342908e4aa0271dee038a8ce4f8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f3f8ec00cfb8d8e826e30b1138a56355b88e9ba8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c16ac4e173a05011437a2d868f70cc415339065a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1bf8761eb59e94bf7b8c17b2a1ee48f14378b172","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a47ae40339c1048f519df33ff8840731720f57cb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c8c607a77aab783f2e38cc2e0f24aa6c8f6d200b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc797d4821c754c701d9714b58bea947e31dbbe0","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31748","url":"https://www.cve.org/CVERecord?id=CVE-2026-31748","licence":"CVE Terms of Use","modified":"2026-05-11T22:15:00.272Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31748","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31748","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.368Z","epss":{"score":0.00134,"percentile":0.03134,"date":"2026-12-01T12:00:22.000Z"}}