CVE-2023-52781

usb: config: fix iteration issue in 'usb_get_bos_descriptor()'

MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: usb: config: fix iteration issue in 'usb_get_bos_descriptor()' The BOS descriptor defines a root descriptor and is the base descriptor for accessing a family of related descriptors. Function 'usb_get_bos_descriptor()' encounters an iteration issue when skipping the 'USB_DT_DEVICE_CAPABILITY' descriptor type. This results in the same descriptor being read repeatedly. To address this issue, a 'goto' statement is introduced to ensure that the pointer and the amount read is updated correctly. This ensures that the function iterates to the next descriptor instead of reading the same descriptor repeatedly.

Weaknesses (CWE)

  • CWE-670 — Always-Incorrect Control Flow Implementation

References

Scores

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

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 3dd550a2d36596a1b0ee7955da3b611c031d3873 < 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223 ; affected 3dd550a2d36596a1b0ee7955da3b611c031d3873 < 64c27b7b2357ddb38b6afebaf46d5bff4d250702 ; affected 3dd550a2d36596a1b0ee7955da3b611c031d3873 < f89fef7710b2ba0f7a1e46594e530dcf2f77be91 ; affected 3dd550a2d36596a1b0ee7955da3b611c031d3873 < 7c0244cc311a4038505b73682b7c8ceaa5c7a8c8 ; affected 3dd550a2d36596a1b0ee7955da3b611c031d3873 < 974bba5c118f4c2baf00de0356e3e4f7928b4cbc ; affected 77ce180d68beffd1af620d0121590e16683fc6b8
Linux · Linuxaffected 5.4 ; unaffected 0 < 5.4 ; unaffected 5.10.203 ≤ 5.10.* ; unaffected 5.15.142 ≤ 5.15.* ; unaffected 6.1.66 ≤ 6.1.* ; unaffected 6.6.4 ≤ 6.6.*

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