Skip to main content
Network Thinking Solutions Logo

CVE-2025-38481

In the Linux kernel, the following vulnerability has been resolved: comedi: Fail COMEDI_INSNLIST ioctl if n_insns is too large The handling of the `COMEDI_INSNLIST` ioctl allocates a kernel buffer to hold the array of `struct comedi_insn`, getting the length from the `n_insns` member of the `struct comedi_insnlist` supplied by the user.

All CVEs
CVE-2025-38481Published 7/28/2025

In the Linux kernel, the following vulnerability has been resolved: comedi: Fail COMEDI_INSNLIST ioctl if n_insns is too large The handling of the `COMEDI_INSNLIST` ioctl allocates a kernel buffer to hold the array of `struct comedi_insn`, getting the length from the `n_insns` member of the `struct comedi_insnlist` supplied by the user.

Vendor advisory
CVSS5.5Medium

Overview

In the Linux kernel, the following vulnerability has been resolved: comedi: Fail COMEDI_INSNLIST ioctl if n_insns is too large The handling of the `COMEDI_INSNLIST` ioctl allocates a kernel buffer to hold the array of `struct comedi_insn`, getting the length from the `n_insns` member of the `struct comedi_insnlist` supplied by the user. The allocation will fail with a WARNING and a stack dump if it is too large. Avoid that by failing with an `-EINVAL` error if the supplied `n_insns` value is unreasonable. Define the limit on the `n_insns` value in the `MAX_INSNS` macro. Set this to the same value as `MAX_SAMPLES` (65536), which is the maximum allowed sum of the values of the member `n` in the array of `struct comedi_insn`, and sensible comedi instructions will have an `n` of at least 1.

Published
7/28/2025
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 2.6.29, < 5.4.297

Verify advisory

Source
linux kernel
linux
≥ 5.5, < 5.10.241

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.190

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 6.1.147

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.100

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.12.40

Verify advisory

Source
linux kernel
linux
≥ 6.13, < 6.15.8

Verify advisory

Source
linux kernel
linux
6.16

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
debian linux
debian
11.0

Verify advisory

Source
Linux
Linux
≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 454d732dfd0aef7d7aa950c409215ca06d717e93

Verify advisory

Source
Linux
Linux
≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < c68257588e87f45530235701a42496b7e9e56adb

Verify advisory

Source
Linux
Linux
≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 69dc06b9514522de532e997a21d035cd29b0db44

Verify advisory

Source
Linux
Linux
≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < d4c73ce13f5b5a0fe0319f1f352ff602f0ace8e3

Verify advisory

Source
Linux
Linux
≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < c9d3d9667443caafa804cd07940aeaef8e53aa90

Verify advisory

Source
Linux
Linux
≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 992d600f284e719242a434166e86c1999649b71c

Verify advisory

Source
Linux
Linux
≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < e3b8322cc8081d142ee4c1a43e1d702bdba1ed76

Verify advisory

Source
Linux
Linux
≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 08ae4b20f5e82101d77326ecab9089e110f224cc

Verify advisory

Source
Linux
Linux
2.6.29

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.