# CVE-2025-38482: comedi: das6402: Fix bit shift out of bounds

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-07-28T11:21:47.026Z
- Modified: 2026-06-17T09:16:57.173Z
- Weaknesses: CWE-125
- Assigned by: Linux

## Description

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

comedi: das6402: Fix bit shift out of bounds

When checking for a supported IRQ number, the following test is used:

	/* IRQs 2,3,5,6,7, 10,11,15 are valid for "enhanced" mode */
	if ((1 << it->options[1]) & 0x8cec) {

However, `it->options[i]` is an unchecked `int` value from userspace, so
the shift amount could be negative or out of bounds.  Fix the test by
requiring `it->options[1]` to be within bounds before proceeding with
the original test.  Valid `it->options[1]` values that select the IRQ
will be in the range [1,15]. The value 0 explicitly disables the use of
interrupts.

(As written by CVE List.)

## Affected

- Linux Linux: from 79e5e6addbb18bf56075f0ff552094a28636dd03 before a15e9c175f783298c4ee48146be6841335400406; from 79e5e6addbb18bf56075f0ff552094a28636dd03 before de8da1063cce9234d55c8270d9bdf4cf84411c80; from 79e5e6addbb18bf56075f0ff552094a28636dd03 before 73f34d609397805c20d6b2ef5c07a4cbf7c4d63a; from 79e5e6addbb18bf56075f0ff552094a28636dd03 before a18a42e77545afcacd6a2b8d9fc16191b87454df; from 79e5e6addbb18bf56075f0ff552094a28636dd03 before 8a3637027ceeba4ca5e500b23cb7d24c25592513; from 79e5e6addbb18bf56075f0ff552094a28636dd03 before 3eab654f5d199ecd45403c6588cda63e491fcfca; from 79e5e6addbb18bf56075f0ff552094a28636dd03 before 4a3c18cde02e35aba87e0ad5672b3e1c72dda5a4; from 79e5e6addbb18bf56075f0ff552094a28636dd03 before 70f2b28b5243df557f51c054c20058ae207baaac; 3.15 (not affected: before 3.15; from 5.4.297 up to 5.4.*; from 5.10.241 up to 5.10.*; from 5.15.190 up to 5.15.*; from 6.1.147 up to 6.1.*; from 6.6.100 up to 6.6.*; from 6.12.40 up to 6.12.*; from 6.15.8 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 3.15 before 5.4.297; from 5.5 before 5.10.241; from 5.11 before 5.15.190; from 5.16 before 6.1.147; from 6.2 before 6.6.100; from 6.7 before 6.12.40; from 6.13 before 6.15.8; 6.16
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/a15e9c175f783298c4ee48146be6841335400406> (patch)
- <https://git.kernel.org/stable/c/de8da1063cce9234d55c8270d9bdf4cf84411c80> (patch)
- <https://git.kernel.org/stable/c/73f34d609397805c20d6b2ef5c07a4cbf7c4d63a> (patch)
- <https://git.kernel.org/stable/c/a18a42e77545afcacd6a2b8d9fc16191b87454df> (patch)
- <https://git.kernel.org/stable/c/8a3637027ceeba4ca5e500b23cb7d24c25592513> (patch)
- <https://git.kernel.org/stable/c/3eab654f5d199ecd45403c6588cda63e491fcfca> (patch)
- <https://git.kernel.org/stable/c/4a3c18cde02e35aba87e0ad5672b3e1c72dda5a4> (patch)
- <https://git.kernel.org/stable/c/70f2b28b5243df557f51c054c20058ae207baaac> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38482](https://www.cve.org/CVERecord?id=CVE-2025-38482), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38482](https://nvd.nist.gov/vuln/detail/CVE-2025-38482), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38482 · Whole record: https://cve.day/CVE-2025-38482.json · Rebuilt by cve.day 2026-11-25T22:59:01.803Z
