CVE-2025-38481
comedi: Fail COMEDI_INSNLIST ioctl if n_insns is too large
Mitigation
- Upgrade Linux to 08ae4b20f5e82101d77326ecab9089e110f224cc or later.
Who should check
- Anyone running Linux >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 454d732dfd0aef7d7aa950c409215ca06d717e93; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < c68257588e87f45530235701a42496b7e9e56adb; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 69dc06b9514522de532e997a21d035cd29b0db44; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < d4c73ce13f5b5a0fe0319f1f352ff602f0ace8e3; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < c9d3d9667443caafa804cd07940aeaef8e53aa90; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 992d600f284e719242a434166e86c1999649b71c; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < e3b8322cc8081d142ee4c1a43e1d702bdba1ed76; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 08ae4b20f5e82101d77326ecab9089e110f224cc
- Anyone running Linux 2.6.29
Vulnerability facts
- Affected
- Linux >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 454d732dfd0aef7d7aa950c409215ca06d717e93; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < c68257588e87f45530235701a42496b7e9e56adb; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 69dc06b9514522de532e997a21d035cd29b0db44; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < d4c73ce13f5b5a0fe0319f1f352ff602f0ace8e3; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < c9d3d9667443caafa804cd07940aeaef8e53aa90; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 992d600f284e719242a434166e86c1999649b71c; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < e3b8322cc8081d142ee4c1a43e1d702bdba1ed76; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 08ae4b20f5e82101d77326ecab9089e110f224cc; Linux 2.6.29
- Fixed in
- Linux 454d732dfd0aef7d7aa950c409215ca06d717e93, Linux 69dc06b9514522de532e997a21d035cd29b0db44, Linux 992d600f284e719242a434166e86c1999649b71c, Linux 08ae4b20f5e82101d77326ecab9089e110f224cc
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 454d732dfd0aef7d7aa950c409215ca06d717e93; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < c68257588e87f45530235701a42496b7e9e56adb; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 69dc06b9514522de532e997a21d035cd29b0db44; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < d4c73ce13f5b5a0fe0319f1f352ff602f0ace8e3; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < c9d3d9667443caafa804cd07940aeaef8e53aa90; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 992d600f284e719242a434166e86c1999649b71c; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < e3b8322cc8081d142ee4c1a43e1d702bdba1ed76; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 08ae4b20f5e82101d77326ecab9089e110f224cc | — | cvelist |
| Linux | 2.6.29 | — | 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-2025-38481. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-38481.md Affected: Linux >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 454d732dfd0aef7d7aa950c409215ca06d717e93; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < c68257588e87f45530235701a42496b7e9e56adb; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 69dc06b9514522de532e997a21d035cd29b0db44; >= ed9eccbe8970f6eedc1b978… Fixed in: Linux 454d732dfd0aef7d7aa950c409215ca06d717e93, Linux 69dc06b9514522de532e997a21d035cd29b0db44, Linux 992d600f284e719242a434166e86c1999649b71c, Linux 08ae4b20f5e82101d77326ecab9089e110f224cc 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/454d732dfd0aef7d7aa950c409215ca06d717e93
- https://git.kernel.org/stable/c/c68257588e87f45530235701a42496b7e9e56adb
- https://git.kernel.org/stable/c/69dc06b9514522de532e997a21d035cd29b0db44
- https://git.kernel.org/stable/c/d4c73ce13f5b5a0fe0319f1f352ff602f0ace8e3
- https://git.kernel.org/stable/c/c9d3d9667443caafa804cd07940aeaef8e53aa90
- https://git.kernel.org/stable/c/992d600f284e719242a434166e86c1999649b71c
- https://git.kernel.org/stable/c/e3b8322cc8081d142ee4c1a43e1d702bdba1ed76
- https://git.kernel.org/stable/c/08ae4b20f5e82101d77326ecab9089e110f224cc
FAQ
Is CVE-2025-38481 being exploited?
There is no confirmed exploitation: CVE-2025-38481 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-38481?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-38481?
Linux >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 454d732dfd0aef7d7aa950c409215ca06d717e93; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < c68257588e87f45530235701a42496b7e9e56adb; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 69dc06b9514522de532e997a21d035cd29b0db44; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < d4c73ce13f5b5a0fe0319f1f352ff602f0ace8e3; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < c9d3d9667443caafa804cd07940aeaef8e53aa90; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 992d600f284e719242a434166e86c1999649b71c; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < e3b8322cc8081d142ee4c1a43e1d702bdba1ed76; >= ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 08ae4b20f5e82101d77326ecab9089e110f224cc; Linux 2.6.29.
Is there a fix for CVE-2025-38481?
Yes. Fixed in Linux 454d732dfd0aef7d7aa950c409215ca06d717e93, Linux 69dc06b9514522de532e997a21d035cd29b0db44, Linux 992d600f284e719242a434166e86c1999649b71c, Linux 08ae4b20f5e82101d77326ecab9089e110f224cc. Upgrade Linux to 08ae4b20f5e82101d77326ecab9089e110f224cc or later.
How do I check if I'm affected by CVE-2025-38481?
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.