{
  "id": "CVE-2025-39685",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39685",
  "published_at": "2025-09-05T17:20:51.954Z",
  "title": "comedi: pcl726: Prevent invalid irq number",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: pcl726: Prevent invalid irq number\n\nThe reproducer passed in an irq number(0x80008000) that was too large,\nwhich triggered the oob.\n\nAdded an interrupt number check to prevent users from passing in an irq\nnumber that was too large.\n\nIf `it-\u003eoptions[1]` is 31, then `1 \u003c\u003c it-\u003eoptions[1]` is still invalid\nbecause it shifts a 1-bit into the sign bit (which is UB in C).\nPossible solutions include reducing the upper bound on the\n`it-\u003eoptions[1]` value to 30 or lower, or using `1U \u003c\u003c it-\u003eoptions[1]`.\n\nThe old code would just not attempt to request the IRQ if the\n`options[1]` value were invalid.  And it would still configure the\ndevice without interrupts even if the call to `request_irq` returned an\nerror.  So it would be better to combine this test with the test below.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= fff46207245cd9e39c05b638afaee2478e64914b, \u003c bab220b0bb5af652007e278e8e8357f952b0e1ea",
          "\u003e= fff46207245cd9e39c05b638afaee2478e64914b, \u003c 5a33d07c94ba91306093e823112a7aa9727549f6",
          "\u003e= fff46207245cd9e39c05b638afaee2478e64914b, \u003c 0eb4ed2aa261dee228f1668dbfa6d87353e8162d",
          "\u003e= fff46207245cd9e39c05b638afaee2478e64914b, \u003c a3cfcd0c78c80ca7cd80372dc28f77d01be57bf6",
          "\u003e= fff46207245cd9e39c05b638afaee2478e64914b, \u003c d8992c9a01f81128f36acb7c5755530e21fcd059",
          "\u003e= fff46207245cd9e39c05b638afaee2478e64914b, \u003c 96cb948408b3adb69df7e451ba7da9d21f814d00"
        ],
        "fixed_in": [
          "bab220b0bb5af652007e278e8e8357f952b0e1ea",
          "5a33d07c94ba91306093e823112a7aa9727549f6",
          "0eb4ed2aa261dee228f1668dbfa6d87353e8162d",
          "a3cfcd0c78c80ca7cd80372dc28f77d01be57bf6",
          "d8992c9a01f81128f36acb7c5755530e21fcd059",
          "96cb948408b3adb69df7e451ba7da9d21f814d00"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.13"
        ],
        "fixed_in": [
          "0",
          "5.15.190",
          "6.1.149",
          "6.6.103",
          "6.12.44",
          "6.16.4",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to bab220b0bb5af652007e278e8e8357f952b0e1ea or 5a33d07c94ba91306093e823112a7aa9727549f6 or 0eb4ed2aa261dee228f1668dbfa6d87353e8162d or a3cfcd0c78c80ca7cd80372dc28f77d01be57bf6 or d8992c9a01f81128f36acb7c5755530e21fcd059 or 96cb948408b3adb69df7e451ba7da9d21f814d00 or later.",
      "Upgrade Linux to 0 or 5.15.190 or 6.1.149 or 6.6.103 or 6.12.44 or 6.16.4 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
