CVE-2023-52781

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

MEDIUM
5.5
CVSS Score
Published: May 21, 2024 at 03:31 PM UTC
Updated: June 17, 2026 at 06:43 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 3.16.79v ≥ 4.14.146v ≥ 4.19.75v ≥ 4.4.194v ≥ 4.9.194v ≥ 5.2.17v ≥ 5.3.13.16.79 ≤ v < 3.174.14.146 ≤ v < 4.154.19.75 ≤ v < 4.204.4.194 ≤ v < 4.54.9.194 ≤ v < 4.105.11 ≤ v < 5.15.1425.16 ≤ v < 6.1.665.2.17 ≤ v < 5.35.3.1 ≤ v < 5.10.2035.3.1 ≤ v < 5.45.4 ≤ v < 5.10.2035.4 ≤ v < 5.15.1425.4 ≤ v < 6.1.665.4 ≤ v < 6.6.45.4 ≤ v < 6.76.2 ≤ v < 6.6.41fc15d29540a69cfb55c8b8f8c38f1af3317824320a07e1aadcd6990893c532d1b2b507bfa0651523.16.793dd550a2d36596a1b0ee7955da3b611c031d38734.14.1464.19.754.4.1944.9.1945.2.175.3.15.46.7 rc16.7 rc277ce180d68beffd1af620d0121590e16683fc6b877d4e2a058858b4a94fc469bc1bfc94a0958e2529f8dd40c68c176f2c3f1fc8b87bc81756856938fa5c051b6503c0ba543e993cfc295b64f096e0a29ea4a173d8358b756a780786baa3fc39d282bdbe3
Vendor states this is fixed in 64c27b7b2357ddb38b6afebaf46d5bff4d250702 (fixed)
Vendor states this is fixed in 7c0244cc311a4038505b73682b7c8ceaa5c7a8c8 (fixed)
Vendor states this is fixed in 974bba5c118f4c2baf00de0356e3e4f7928b4cbc (fixed)
Vendor states this is fixed in 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223 (fixed)
Vendor states this is fixed in f89fef7710b2ba0f7a1e46594e530dcf2f77be91 (fixed)
Affected range stops below 3.17, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.15, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.20, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.5, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.10.203 (unaffected)
Vendor states this is fixed in 5.15.142 (unaffected)
Affected range stops below 5.3, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.4 (unaffected)
Vendor states this is fixed in 6.1.66 (unaffected)
Vendor states this is fixed in 6.6.4 (unaffected)
Vendor states this is fixed in 6.7 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/64c27b7b2357ddb38b6afebaf46d5bff4d250702
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7c0244cc311a4038505b73682b7c8ceaa5c7a8c8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/974bba5c118f4c2baf00de0356e3e4f7928b4cbc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9ef94ec8e52eaf7b9abc5b5f8f5b911751112223
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f89fef7710b2ba0f7a1e46594e530dcf2f77be91

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-670

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card