CVE-2026-31748: comedi: me_daq: Fix potential overrun of firmware buffer

Published May 1, 2026
·
Updated

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

comedi: medaq: Fix potential overrun of firmware buffer

me2600xilinxdownload() loads the firmware that was requested by requestfirmware(). 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 filelength and reads the data stream contents of length filelength from offset 16 onwards. Although it checks that the supplied firmware is at least 16 bytes long, it does not check that it is long enough to contain the data stream.

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.

Affected Software

15 affected componentsFixes available
Linux Linux kernel (comedi me_daq driver)
Linux Linux kernel>=2.6.29<5.10.253
Linux Linux kernel>=5.11<5.15.203
Linux Linux kernel>=5.16<6.1.168
Linux Linux kernel>=6.2<6.6.134
Linux Linux kernel>=6.7<6.12.81
Linux Linux kernel>=6.13<6.18.22
Linux Linux kernel>=6.19<6.19.12
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4
Linux Linux kernel=7.0-rc5
Linux Linux kernel=7.0-rc6
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
  2. Compensating control

    In me2600_xilinx_download(), validate that the supplied firmware length is sufficient for the 16-byte header plus the data stream length read from the first 4 bytes before reading file_length bytes from offset 16; on failure, log an error and return -EINVAL.

Event History

May 1, 2026
CVE Published
via MITRE·02:14 PM
Data Sourced
via MITRE·02:14 PM
Description
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What level of access is required to exploit this issue?

The vulnerability is rated with local attack vector and low privileges required. No user interaction is required.

2

What condition in a firmware file triggers the overrun risk?

The file is at least 16 bytes long but declares a data-stream length in its first four bytes that exceeds the bytes actually available from offset 16 onward. The vulnerable code trusts that declared length and can read beyond the firmware buffer.

3

How does the resolved code handle malformed firmware?

It verifies that the supplied firmware is large enough for both the 16-byte header and the declared data stream. If the check fails, it logs an error and returns -EINVAL.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203