Skip to content
Heist/ feed
Back to feed
UnratedFix available

comedi: pcl726: Prevent invalid irq number

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.190, 6.1.149, 6.12.44, 6.16.4, 6.6.103
CVEs
CVE-2025-39685
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 14:36 UTC · Revision 1

Source evidence

comedi: pcl726: Prevent invalid irq number

core-osv · Original source

Published 5 Sept 2025, 17:20 UTC

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.

osv:CVE-2025-39685

Kernel

Fixed versions: 5.15.190, 6.1.149, 6.6.103, 6.12.44, 6.16.4

Complete source record
{
  "id": "49f9e0b22c9ce8a088308f23b8fb57c5f65d57c40cdd38e92d712d9c55764959",
  "url": "https://osv.dev/vulnerability/CVE-2025-39685",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "comedi: pcl726: Prevent invalid irq number",
    "summary": "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.",
    "evidence": "osv:CVE-2025-39685",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.190",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.149",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.103",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.44",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.16.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-39685",
      "aliases": [
        "CVE-2025-39685"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "fff46207245cd9e39c05b638afaee2478e64914b"
                },
                {
                  "fixed": "bab220b0bb5af652007e278e8e8357f952b0e1ea"
                },
                {
                  "fixed": "5a33d07c94ba91306093e823112a7aa9727549f6"
                },
                {
                  "fixed": "0eb4ed2aa261dee228f1668dbfa6d87353e8162d"
                },
                {
                  "fixed": "a3cfcd0c78c80ca7cd80372dc28f77d01be57bf6"
                },
                {
                  "fixed": "d8992c9a01f81128f36acb7c5755530e21fcd059"
                },
                {
                  "fixed": "96cb948408b3adb69df7e451ba7da9d21f814d00"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39685.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.13.0"
                },
                {
                  "fixed": "5.15.190"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.149"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.103"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.44"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.16.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39685.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.544613091Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-032379.html",
        "https://git.kernel.org/stable/c/0eb4ed2aa261dee228f1668dbfa6d87353e8162d",
        "https://git.kernel.org/stable/c/5a33d07c94ba91306093e823112a7aa9727549f6",
        "https://git.kernel.org/stable/c/96cb948408b3adb69df7e451ba7da9d21f814d00",
        "https://git.kernel.org/stable/c/a3cfcd0c78c80ca7cd80372dc28f77d01be57bf6",
        "https://git.kernel.org/stable/c/bab220b0bb5af652007e278e8e8357f952b0e1ea",
        "https://git.kernel.org/stable/c/d8992c9a01f81128f36acb7c5755530e21fcd059",
        "https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39685.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-39685",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39685.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-39685",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 496432,
  "published_at": "2025-09-05T17:20:51.954+00:00"
}