Linux
comedi: das16m1: Fix bit shift out of bounds
In the Linux kernel, the following vulnerability has been resolved: comedi: das16m1: Fix bit shift out of bounds When checking for a supported IRQ number, the following test is used: /* only irqs 2, 3, 4, 5, 6, 7, 10, 11, 12, 14, and 15 are valid */ if ((1 << it->options[1]) & 0xdcfc) { 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 729988507680b2ce934bce61d9ce0ea7b235914c, < 539bdff832adac9ea653859fa0b6bc62e743329c
- >= 729988507680b2ce934bce61d9ce0ea7b235914c, < d1291c69f46d6572b2cf75960dd8975d7ab2176b
- >= 729988507680b2ce934bce61d9ce0ea7b235914c, < b3c95fa508e5dc3da60520eea92a5241095ceef1
- >= 729988507680b2ce934bce61d9ce0ea7b235914c, < 65c03e6fc524eb2868abedffd8a4613d78abc288
- >= 729988507680b2ce934bce61d9ce0ea7b235914c, < adb7df8a8f9d788423e161b779764527dd3ec2d0
- >= 729988507680b2ce934bce61d9ce0ea7b235914c, < 076b13ee60eb01ed0d140ef261f95534562a3077
- >= 729988507680b2ce934bce61d9ce0ea7b235914c, < f211572818ed5bec2b3f5d4e0719ef8699b3c269
- >= 729988507680b2ce934bce61d9ce0ea7b235914c, < ed93c6f68a3be06e4e0c331c6e751f462dee3932
Fixed in 539bdff832adac9ea653859fa0b6bc62e743329c, d1291c69f46d6572b2cf75960dd8975d7ab2176b, b3c95fa508e5dc3da60520eea92a5241095ceef1, 65c03e6fc524eb2868abedffd8a4613d78abc288, adb7df8a8f9d788423e161b779764527dd3ec2d0, 076b13ee60eb01ed0d140ef261f95534562a3077, f211572818ed5bec2b3f5d4e0719ef8699b3c269, ed93c6f68a3be06e4e0c331c6e751f462dee3932
- 3.14
Fixed in 0, 5.4.297, 5.10.241, 5.15.190, 6.1.147, 6.6.100, 6.12.40, 6.15.8, 6.16
Mitigation
Upgrade Linux to 539bdff832adac9ea653859fa0b6bc62e743329c or d1291c69f46d6572b2cf75960dd8975d7ab2176b or b3c95fa508e5dc3da60520eea92a5241095ceef1 or 65c03e6fc524eb2868abedffd8a4613d78abc288 or adb7df8a8f9d788423e161b779764527dd3ec2d0 or 076b13ee60eb01ed0d140ef261f95534562a3077 or f211572818ed5bec2b3f5d4e0719ef8699b3c269 or ed93c6f68a3be06e4e0c331c6e751f462dee3932 or later.
Upgrade Linux to 0 or 5.4.297 or 5.10.241 or 5.15.190 or 6.1.147 or 6.6.100 or 6.12.40 or 6.15.8 or 6.16 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.