CVE-2026-31747
comedi: me4000: Fix potential overrun of firmware buffer
Mitigation
- Upgrade Linux to 3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7 or later.
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
Vulnerability facts
- Affected
- Linux >= ac584af599452748187cf6d7865b1607c54ee443, < 8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6; >= ac584af599452748187cf6d7865b1607c54ee443, < 64b24b713e1a3ea6624480594b4f8c2ff86502f2; >= ac584af599452748187cf6d7865b1607c54ee443, < f72b5567f7c117b46b4058dc6a0c7554f8565561; >= ac584af599452748187cf6d7865b1607c54ee443, < 1603dd471f47762e9d1f52304edb3e49a7e62655; >= ac584af599452748187cf6d7865b1607c54ee443, < 99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5; >= ac584af599452748187cf6d7865b1607c54ee443, < eae19cab44204537f79146f15a51811b13227c38; >= ac584af599452748187cf6d7865b1607c54ee443, < de3f923ae7d91480ed3ecea1b1e1fc0dc25b597d; >= ac584af599452748187cf6d7865b1607c54ee443, < 3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7; Linux 3.19
- Fixed in
- Linux 8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6, Linux 64b24b713e1a3ea6624480594b4f8c2ff86502f2, Linux 1603dd471f47762e9d1f52304edb3e49a7e62655, Linux 99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5, Linux 3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.18% chance of exploitation in 30 days (percentile 4, 2026-11-26)
- CWE
- CWE-787
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= ac584af599452748187cf6d7865b1607c54ee443, < 8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6; >= ac584af599452748187cf6d7865b1607c54ee443, < 64b24b713e1a3ea6624480594b4f8c2ff86502f2; >= ac584af599452748187cf6d7865b1607c54ee443, < f72b5567f7c117b46b4058dc6a0c7554f8565561; >= ac584af599452748187cf6d7865b1607c54ee443, < 1603dd471f47762e9d1f52304edb3e49a7e62655; >= ac584af599452748187cf6d7865b1607c54ee443, < 99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5; >= ac584af599452748187cf6d7865b1607c54ee443, < eae19cab44204537f79146f15a51811b13227c38; >= ac584af599452748187cf6d7865b1607c54ee443, < de3f923ae7d91480ed3ecea1b1e1fc0dc25b597d; >= ac584af599452748187cf6d7865b1607c54ee443, < 3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7 | — | cvelist |
| Linux | 3.19 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/8ddfe6495c245226a30d8b36e2f4a7aa7712e8d6
- https://git.kernel.org/stable/c/64b24b713e1a3ea6624480594b4f8c2ff86502f2
- https://git.kernel.org/stable/c/f72b5567f7c117b46b4058dc6a0c7554f8565561
- https://git.kernel.org/stable/c/1603dd471f47762e9d1f52304edb3e49a7e62655
- https://git.kernel.org/stable/c/99f31aa98ab6e3805c455b65bcd01b3d48bdf1a5
- https://git.kernel.org/stable/c/eae19cab44204537f79146f15a51811b13227c38
- https://git.kernel.org/stable/c/de3f923ae7d91480ed3ecea1b1e1fc0dc25b597d
- https://git.kernel.org/stable/c/3fb43a7a5b44713f892c58ead2e5f3a1bc9f4ee7
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.