CVE-2026-31747 comedi: me4000: Fix potential overrun of firmware buffer
A buffer overrun in the Linux kernel me4000 driver allows attackers to corrupt memory via crafted firmware, potentially leading to code execution or system crashes.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-31747?
CVE-2026-31747 is a high-severity memory corruption vulnerability in Linux kernel, published on 1 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-787
Which versions are affected by CVE-2026-31747?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2026-31747?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2026-31747 being exploited?
There is no known exploitation of CVE-2026-31747 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2026-31747, DEBIAN-CVE-2026-31747, GHSA-28wg-v83v-vrgh, ROOT-OS-DEBIAN-11-CVE-2026-31747, ROOT-OS-UBUNTU-2204-CVE-2026-31747, ROOT-OS-UBUNTU-2404-CVE-2026-31747 and 1 more.