Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-52781

MEDIUM 5.5EPSS 16%

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

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 64c27b7b2357ddb38b6afebaf46d5bff4d250702; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < f89fef7710b2ba0f7a1e46594e530dcf2f77be91; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 7c0244cc311a4038505b73682b7c8ceaa5c7a8c8; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 974bba5c118f4c2baf00de0356e3e4f7928b4cbc; 77ce180d68beffd1af620d0121590e16683fc6b8; 20a07e1aadcd6990893c532d1b2b507bfa065152; a5c051b6503c0ba543e993cfc295b64f096e0a29; ea4a173d8358b756a780786baa3fc39d282bdbe3; 77d4e2a058858b4a94fc469bc1bfc94a0958e252; …
  • Anyone running Linux 5.4

Vulnerability facts

Affected
Linux >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 64c27b7b2357ddb38b6afebaf46d5bff4d250702; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < f89fef7710b2ba0f7a1e46594e530dcf2f77be91; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 7c0244cc311a4038505b73682b7c8ceaa5c7a8c8; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 974bba5c118f4c2baf00de0356e3e4f7928b4cbc; 77ce180d68beffd1af620d0121590e16683fc6b8; 20a07e1aadcd6990893c532d1b2b507bfa065152; a5c051b6503c0ba543e993cfc295b64f096e0a29; ea4a173d8358b756a780786baa3fc39d282bdbe3; 77d4e2a058858b4a94fc469bc1bfc94a0958e252; …; Linux 5.4
Fixed in
Linux 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223, Linux 64c27b7b2357ddb38b6afebaf46d5bff4d250702, Linux 7c0244cc311a4038505b73682b7c8ceaa5c7a8c8, Linux 974bba5c118f4c2baf00de0356e3e4f7928b4cbc
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.30% chance of exploitation in 30 days (percentile 16, 2026-11-26)
CWE
CWE-670
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
Linux>= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 64c27b7b2357ddb38b6afebaf46d5bff4d250702; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < f89fef7710b2ba0f7a1e46594e530dcf2f77be91; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 7c0244cc311a4038505b73682b7c8ceaa5c7a8c8; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 974bba5c118f4c2baf00de0356e3e4f7928b4cbc; 77ce180d68beffd1af620d0121590e16683fc6b8; 20a07e1aadcd6990893c532d1b2b507bfa065152; a5c051b6503c0ba543e993cfc295b64f096e0a29; ea4a173d8358b756a780786baa3fc39d282bdbe3; 77d4e2a058858b4a94fc469bc1bfc94a0958e252; …—cvelist
Linux5.4—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-52781. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52781.md
Affected: Linux >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 64c27b7b2357ddb38b6afebaf46d5bff4d250702; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < f89fef7710b2ba0f7a1e46594e530dcf2f77be91; >= 3dd550a2d36596a1b0ee795…
Fixed in: Linux 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223, Linux 64c27b7b2357ddb38b6afebaf46d5bff4d250702, Linux 7c0244cc311a4038505b73682b7c8ceaa5c7a8c8, Linux 974bba5c118f4c2baf00de0356e3e4f7928b4cbc

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2023-52781 being exploited?

There is no confirmed exploitation: CVE-2023-52781 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-52781?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2023-52781?

Linux >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 64c27b7b2357ddb38b6afebaf46d5bff4d250702; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < f89fef7710b2ba0f7a1e46594e530dcf2f77be91; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 7c0244cc311a4038505b73682b7c8ceaa5c7a8c8; >= 3dd550a2d36596a1b0ee7955da3b611c031d3873, < 974bba5c118f4c2baf00de0356e3e4f7928b4cbc; 77ce180d68beffd1af620d0121590e16683fc6b8; 20a07e1aadcd6990893c532d1b2b507bfa065152; a5c051b6503c0ba543e993cfc295b64f096e0a29; ea4a173d8358b756a780786baa3fc39d282bdbe3; 77d4e2a058858b4a94fc469bc1bfc94a0958e252; …; Linux 5.4.

Is there a fix for CVE-2023-52781?

Yes. Fixed in Linux 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223, Linux 64c27b7b2357ddb38b6afebaf46d5bff4d250702, Linux 7c0244cc311a4038505b73682b7c8ceaa5c7a8c8, Linux 974bba5c118f4c2baf00de0356e3e4f7928b4cbc. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2023-52781?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors