# CVE-2025-39685: comedi: pcl726: Prevent invalid irq number

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-09-05T17:20:51.954Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= fff46207245cd9e39c05b638afaee2478e64914b, \< bab220b0bb5af652007e278e8e8357f952b0e1ea; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< 5a33d07c94ba91306093e823112a7aa9727549f6; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< 0eb4ed2aa261dee228f1668dbfa6d87353e8162d; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< a3cfcd0c78c80ca7cd80372dc28f77d01be57bf6; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< d8992c9a01f81128f36acb7c5755530e21fcd059; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< 96cb948408b3adb69df7e451ba7da9d21f814d00
- Anyone running Linux 3.13

## Description

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

comedi: pcl726: Prevent invalid irq number

The reproducer passed in an irq number(0x80008000) that was too large,
which triggered the oob.

Added an interrupt number check to prevent users from passing in an irq
number that was too large.

If \`it-\>options\[1\]\` is 31, then \`1 \<\< it-\>options\[1\]\` is still invalid
because it shifts a 1-bit into the sign bit (which is UB in C).
Possible solutions include reducing the upper bound on the
\`it-\>options\[1\]\` value to 30 or lower, or using \`1U \<\< it-\>options\[1\]\`.

The old code would just not attempt to request the IRQ if the
\`options\[1\]\` value were invalid.  And it would still configure the
device without interrupts even if the call to \`request\_irq\` returned an
error.  So it would be better to combine this test with the test below.

## Affected and fixed versions

- Linux: \>= fff46207245cd9e39c05b638afaee2478e64914b, \< bab220b0bb5af652007e278e8e8357f952b0e1ea; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< 5a33d07c94ba91306093e823112a7aa9727549f6; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< 0eb4ed2aa261dee228f1668dbfa6d87353e8162d; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< a3cfcd0c78c80ca7cd80372dc28f77d01be57bf6; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< d8992c9a01f81128f36acb7c5755530e21fcd059; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< 96cb948408b3adb69df7e451ba7da9d21f814d00 (cvelist)
- Linux: 3.13 (cvelist)

## Mitigation

- Upgrade Linux to 96cb948408b3adb69df7e451ba7da9d21f814d00 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-39685. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39685.md
Affected: Linux >= fff46207245cd9e39c05b638afaee2478e64914b, < bab220b0bb5af652007e278e8e8357f952b0e1ea; >= fff46207245cd9e39c05b638afaee2478e64914b, < 5a33d07c94ba91306093e823112a7aa9727549f6; >= fff46207245cd9e39c05b638afaee2478e64914b, < 0eb4ed2aa261dee228f1668dbfa6d87353e8162d; >= fff46207245cd9e39c05b63…
Fixed in: Linux 5a33d07c94ba91306093e823112a7aa9727549f6, Linux 0eb4ed2aa261dee228f1668dbfa6d87353e8162d, Linux 96cb948408b3adb69df7e451ba7da9d21f814d00

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.
```

## FAQ

### Is CVE-2025-39685 being exploited?

There is no confirmed exploitation: CVE-2025-39685 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-39685?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-39685?

Linux \>= fff46207245cd9e39c05b638afaee2478e64914b, \< bab220b0bb5af652007e278e8e8357f952b0e1ea; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< 5a33d07c94ba91306093e823112a7aa9727549f6; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< 0eb4ed2aa261dee228f1668dbfa6d87353e8162d; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< a3cfcd0c78c80ca7cd80372dc28f77d01be57bf6; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< d8992c9a01f81128f36acb7c5755530e21fcd059; \>= fff46207245cd9e39c05b638afaee2478e64914b, \< 96cb948408b3adb69df7e451ba7da9d21f814d00; Linux 3.13.

### Is there a fix for CVE-2025-39685?

Yes. Fixed in Linux 5a33d07c94ba91306093e823112a7aa9727549f6, Linux 0eb4ed2aa261dee228f1668dbfa6d87353e8162d, Linux 96cb948408b3adb69df7e451ba7da9d21f814d00. Upgrade Linux to 96cb948408b3adb69df7e451ba7da9d21f814d00 or later.

### How do I check if I'm affected by CVE-2025-39685?

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.

## References

- patch: <https://git.kernel.org/stable/c/bab220b0bb5af652007e278e8e8357f952b0e1ea>
- patch: <https://git.kernel.org/stable/c/5a33d07c94ba91306093e823112a7aa9727549f6>
- patch: <https://git.kernel.org/stable/c/0eb4ed2aa261dee228f1668dbfa6d87353e8162d>
- patch: <https://git.kernel.org/stable/c/a3cfcd0c78c80ca7cd80372dc28f77d01be57bf6>
- patch: <https://git.kernel.org/stable/c/d8992c9a01f81128f36acb7c5755530e21fcd059>
- patch: <https://git.kernel.org/stable/c/96cb948408b3adb69df7e451ba7da9d21f814d00>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-39685>

HTML: <https://flawdb.com/CVE-2025-39685> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-39685>
