Menu

Star on GitHub · 3.3k

CVE-2025-38481

5.5 · MEDIUM

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 buffe…

Published Jul 28, 2025EPSS 0.17%

Overview

CVE-2025-38481 is a medium-severity vulnerability. It was published on July 28, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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.

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-38481?

CVE-2025-38481 is a medium-severity vulnerability. It was published on July 28, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2025-38481?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-38481?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-38481?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-38481 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2025

View all