# CVE-2026-31747: comedi: me4000: Fix potential overrun of firmware buffer

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2026-05-01T14:14:40.844Z
- **Modified:** 2026-11-11T21:10:00.200Z

## Who should check

- Anyone running Linux \>= ac584af599452748187cf6d7865b1607c54ee443, \< 8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6; \>= ac584af599452748187cf6d7865b1607c54ee443, \< 64b24b713e1a3ea6624480594b4f8c2ff86502f2; \>= ac584af599452748187cf6d7865b1607c54ee443, \< f72b5567f7c117b46b4058dc6a0c7554f8565561; \>= ac584af599452748187cf6d7865b1607c54ee443, \< 1603dd471f47762e9d1f52304edb3e49a7e62655; \>= ac584af599452748187cf6d7865b1607c54ee443, \< 99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5; \>= ac584af599452748187cf6d7865b1607c54ee443, \< eae19cab44204537f79146f15a51811b13227c38; \>= ac584af599452748187cf6d7865b1607c54ee443, \< de3f923ae7d91480ed3ecea1b1e1fc0dc25b597d; \>= ac584af599452748187cf6d7865b1607c54ee443, \< 3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7
- Anyone running Linux 3.19

## Description

In the Linux kernel, the following vulnerability has been resolved:

comedi: me4000: Fix potential overrun of firmware buffer

\`me4000\_xilinx\_download()\` loads the firmware that was requested by
\`request\_firmware()\`.  It is possible for it to overrun the source
buffer because it blindly trusts the file format.  It reads a data
stream length from the first 4 bytes into variable \`file\_length\` and
reads the data stream contents of length \`file\_length\` from offset 16
onwards.

Add a test to ensure that the supplied firmware is long enough to
contain the header and the data stream.  On failure, log an error and
return \`-EINVAL\`.

Note: The firmware loading was totally broken before commit ac584af59945
("staging: comedi: me4000: fix firmware downloading"), but that is the
most sensible target for this fix.

## Affected and fixed versions

- Linux: \>= ac584af599452748187cf6d7865b1607c54ee443, \< 8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6; \>= ac584af599452748187cf6d7865b1607c54ee443, \< 64b24b713e1a3ea6624480594b4f8c2ff86502f2; \>= ac584af599452748187cf6d7865b1607c54ee443, \< f72b5567f7c117b46b4058dc6a0c7554f8565561; \>= ac584af599452748187cf6d7865b1607c54ee443, \< 1603dd471f47762e9d1f52304edb3e49a7e62655; \>= ac584af599452748187cf6d7865b1607c54ee443, \< 99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5; \>= ac584af599452748187cf6d7865b1607c54ee443, \< eae19cab44204537f79146f15a51811b13227c38; \>= ac584af599452748187cf6d7865b1607c54ee443, \< de3f923ae7d91480ed3ecea1b1e1fc0dc25b597d; \>= ac584af599452748187cf6d7865b1607c54ee443, \< 3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7 (cvelist)
- Linux: 3.19 (cvelist)

## Mitigation

- Upgrade Linux to 3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31747. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31747.md
Affected: Linux >= ac584af599452748187cf6d7865b1607c54ee443, < 8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6; >= ac584af599452748187cf6d7865b1607c54ee443, < 64b24b713e1a3ea6624480594b4f8c2ff86502f2; >= ac584af599452748187cf6d7865b1607c54ee443, < f72b5567f7c117b46b4058dc6a0c7554f8565561; >= ac584af599452748187cf6d…
Fixed in: Linux 8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6, Linux 64b24b713e1a3ea6624480594b4f8c2ff86502f2, Linux 1603dd471f47762e9d1f52304edb3e49a7e62655, Linux 99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5, Linux 3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31747 being exploited?

There is no confirmed exploitation: CVE-2026-31747 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31747?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-31747?

Linux \>= ac584af599452748187cf6d7865b1607c54ee443, \< 8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6; \>= ac584af599452748187cf6d7865b1607c54ee443, \< 64b24b713e1a3ea6624480594b4f8c2ff86502f2; \>= ac584af599452748187cf6d7865b1607c54ee443, \< f72b5567f7c117b46b4058dc6a0c7554f8565561; \>= ac584af599452748187cf6d7865b1607c54ee443, \< 1603dd471f47762e9d1f52304edb3e49a7e62655; \>= ac584af599452748187cf6d7865b1607c54ee443, \< 99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5; \>= ac584af599452748187cf6d7865b1607c54ee443, \< eae19cab44204537f79146f15a51811b13227c38; \>= ac584af599452748187cf6d7865b1607c54ee443, \< de3f923ae7d91480ed3ecea1b1e1fc0dc25b597d; \>= ac584af599452748187cf6d7865b1607c54ee443, \< 3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7; Linux 3.19.

### Is there a fix for CVE-2026-31747?

Yes. Fixed in Linux 8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6, Linux 64b24b713e1a3ea6624480594b4f8c2ff86502f2, Linux 1603dd471f47762e9d1f52304edb3e49a7e62655, Linux 99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5, Linux 3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7. Upgrade Linux to 3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7 or later.

### How do I check if I'm affected by CVE-2026-31747?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6>
- patch: <https://git.kernel.org/stable/c/64b24b713e1a3ea6624480594b4f8c2ff86502f2>
- patch: <https://git.kernel.org/stable/c/f72b5567f7c117b46b4058dc6a0c7554f8565561>
- patch: <https://git.kernel.org/stable/c/1603dd471f47762e9d1f52304edb3e49a7e62655>
- patch: <https://git.kernel.org/stable/c/99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5>
- patch: <https://git.kernel.org/stable/c/eae19cab44204537f79146f15a51811b13227c38>
- patch: <https://git.kernel.org/stable/c/de3f923ae7d91480ed3ecea1b1e1fc0dc25b597d>
- patch: <https://git.kernel.org/stable/c/3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31747>

HTML: <https://flawdb.com/CVE-2026-31747> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31747>
