comedi: das16m1: Fix bit shift out of bounds (Linux Linux)

CVE-2025-38483
HIGH 7.1

At a glance

Source
NVD
EPSS
EPSS 0.19 % · percentile 9 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 729988507680b2ce934bce61d9ce0ea7b235914c < 539bdff832adac9ea653859fa0b6bc62e743329c ; affected 729988507680b2ce934bce61d9ce0ea7b235914c < d1291c69f46d6572b2cf75960dd8975d7ab2176b ; affected 729988507680b2ce934bce61d9ce0ea7b235914c < b3c95fa508e5dc3da60520eea92a5241095ceef1 ; affected 729988507680b2ce934bce61d9ce0ea7b235914c < 65c03e6fc524eb2868abedffd8a4613d78abc288 ; affected 729988507680b2ce934bce61d9ce0ea7b235914c < adb7df8a8f9d788423e161b779764527dd3ec2d0 ; affected 729988507680b2ce934bce61d9ce0ea7b235914c < 076b13ee60eb01ed0d140ef261f95534562a3077
Linux · Linuxaffected 3.14 ; unaffected 0 < 3.14 ; unaffected 5.4.297 ≤ 5.4.* ; unaffected 5.10.241 ≤ 5.10.* ; unaffected 5.15.190 ≤ 5.15.* ; unaffected 6.1.147 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD