In the Linux kernel, the following vulnerability has been resolved:
comedi: pcl812: Fix bit shift out of bounds
When checking for a supported IRQ number, the following test is used:
if ((1 << it->options[1]) & board->irq_bits) {
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.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e470d8efd10725b189ca8951973a8425932398a",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "113584863191721368609694580526604058011",
"length": 3784.0
},
"id": "CVE-2025-38530-00461c93",
"signature_type": "Function",
"target": {
"function": "pcl812_attach",
"file": "drivers/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b14b076ce593f72585412fc7fd3747e03a5e3632",
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46156398042769983135804298499397055836",
"119767132715064585426750935348402848376",
"290098051277864193564527447659110259886",
"207087645598664687542887003506351718891"
]
},
"id": "CVE-2025-38530-20a9954f",
"signature_type": "Line",
"target": {
"file": "drivers/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5bfa301e1e59a9b1a7b62a800b54852337c97416",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "113584863191721368609694580526604058011",
"length": 3784.0
},
"id": "CVE-2025-38530-32519945",
"signature_type": "Function",
"target": {
"function": "pcl812_attach",
"file": "drivers/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a27e27eee313fe1c450b6af1e80e64412546cab4",
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46156398042769983135804298499397055836",
"119767132715064585426750935348402848376",
"290098051277864193564527447659110259886",
"207087645598664687542887003506351718891"
]
},
"id": "CVE-2025-38530-3343548d",
"signature_type": "Line",
"target": {
"file": "drivers/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0489c30d080f07cc7f09d04de723d8c2ccdb61ef",
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"141745432577650283120954267519600906672",
"158247428179692341336715361603022766462",
"200596382450250720374235675155032955472",
"207087645598664687542887003506351718891"
]
},
"id": "CVE-2025-38530-4221699a",
"signature_type": "Line",
"target": {
"file": "drivers/staging/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5bfa301e1e59a9b1a7b62a800b54852337c97416",
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"141745432577650283120954267519600906672",
"158247428179692341336715361603022766462",
"200596382450250720374235675155032955472",
"207087645598664687542887003506351718891"
]
},
"id": "CVE-2025-38530-4b553082",
"signature_type": "Line",
"target": {
"file": "drivers/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@16c173abee315953fd17a279352fec4a1faee862",
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"46156398042769983135804298499397055836",
"119767132715064585426750935348402848376",
"290098051277864193564527447659110259886",
"207087645598664687542887003506351718891"
]
},
"id": "CVE-2025-38530-5f525590",
"signature_type": "Line",
"target": {
"file": "drivers/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@29ef03e5b84431171d6b77b822985b54bc44b793",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "113584863191721368609694580526604058011",
"length": 3784.0
},
"id": "CVE-2025-38530-64f8f6ba",
"signature_type": "Function",
"target": {
"function": "pcl812_attach",
"file": "drivers/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@29ef03e5b84431171d6b77b822985b54bc44b793",
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"141745432577650283120954267519600906672",
"158247428179692341336715361603022766462",
"200596382450250720374235675155032955472",
"207087645598664687542887003506351718891"
]
},
"id": "CVE-2025-38530-6843a007",
"signature_type": "Line",
"target": {
"file": "drivers/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@374d9b3eb4b08407997ef1fce96119d31e0c0bc4",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "113584863191721368609694580526604058011",
"length": 3784.0
},
"id": "CVE-2025-38530-829126af",
"signature_type": "Function",
"target": {
"function": "pcl812_attach",
"file": "drivers/staging/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b14b076ce593f72585412fc7fd3747e03a5e3632",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "55170638788299266218663751025735804010",
"length": 3814.0
},
"id": "CVE-2025-38530-9a7aef7b",
"signature_type": "Function",
"target": {
"function": "pcl812_attach",
"file": "drivers/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a27e27eee313fe1c450b6af1e80e64412546cab4",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "55170638788299266218663751025735804010",
"length": 3814.0
},
"id": "CVE-2025-38530-a13ee12b",
"signature_type": "Function",
"target": {
"function": "pcl812_attach",
"file": "drivers/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@374d9b3eb4b08407997ef1fce96119d31e0c0bc4",
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"141745432577650283120954267519600906672",
"158247428179692341336715361603022766462",
"200596382450250720374235675155032955472",
"207087645598664687542887003506351718891"
]
},
"id": "CVE-2025-38530-aabefe0b",
"signature_type": "Line",
"target": {
"file": "drivers/staging/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0489c30d080f07cc7f09d04de723d8c2ccdb61ef",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "113584863191721368609694580526604058011",
"length": 3784.0
},
"id": "CVE-2025-38530-af491c5e",
"signature_type": "Function",
"target": {
"function": "pcl812_attach",
"file": "drivers/staging/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e470d8efd10725b189ca8951973a8425932398a",
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"141745432577650283120954267519600906672",
"158247428179692341336715361603022766462",
"200596382450250720374235675155032955472",
"207087645598664687542887003506351718891"
]
},
"id": "CVE-2025-38530-f512a17c",
"signature_type": "Line",
"target": {
"file": "drivers/comedi/drivers/pcl812.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@16c173abee315953fd17a279352fec4a1faee862",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "55170638788299266218663751025735804010",
"length": 3814.0
},
"id": "CVE-2025-38530-fdf50d56",
"signature_type": "Function",
"target": {
"function": "pcl812_attach",
"file": "drivers/comedi/drivers/pcl812.c"
}
}
]