CVE-2025-39685

comedi: pcl726: Prevent invalid irq number

No CVSS score yet EPSS 0.18%

Published 5 Sep 2025 Updated 12 May 2026 CNA: Linux

Check your servers for CVE-2025-39685

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-39685 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.17% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from fff46207245cd9e39c05b638afaee2478e64914b, before bab220b0bb5af652007e278e8e8357f952b0e1ea
affected from fff46207245cd9e39c05b638afaee2478e64914b, before 5a33d07c94ba91306093e823112a7aa9727549f6
affected from fff46207245cd9e39c05b638afaee2478e64914b, before 0eb4ed2aa261dee228f1668dbfa6d87353e8162d
affected from fff46207245cd9e39c05b638afaee2478e64914b, before a3cfcd0c78c80ca7cd80372dc28f77d01be57bf6
affected from fff46207245cd9e39c05b638afaee2478e64914b, before d8992c9a01f81128f36acb7c5755530e21fcd059
affected from fff46207245cd9e39c05b638afaee2478e64914b, before 96cb948408b3adb69df7e451ba7da9d21f814d00
Other versions: unaffected
Linux
affected 3.13
unaffected before 3.13
unaffected from 5.15.190 up to and including 5.15.*
unaffected from 6.1.149 up to and including 6.1.*
unaffected from 6.6.103 up to and including 6.6.*
unaffected from 6.12.44 up to and including 6.12.*
unaffected from 6.16.4 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-39685 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39685

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-39685
trivy image --scanners vuln IMAGE | grep CVE-2025-39685

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-39685 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.