CVE-2023-52781
usb: config: fix iteration issue in 'usb_get_bos_descriptor()'
Check your servers for CVE-2023-52781
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-52781 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 21 May 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3dd550a2d36596a1b0ee7955da3b611c031d3873, before 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223 affected from 3dd550a2d36596a1b0ee7955da3b611c031d3873, before 64c27b7b2357ddb38b6afebaf46d5bff4d250702 affected from 3dd550a2d36596a1b0ee7955da3b611c031d3873, before f89fef7710b2ba0f7a1e46594e530dcf2f77be91 affected from 3dd550a2d36596a1b0ee7955da3b611c031d3873, before 7c0244cc311a4038505b73682b7c8ceaa5c7a8c8 affected from 3dd550a2d36596a1b0ee7955da3b611c031d3873, before 974bba5c118f4c2baf00de0356e3e4f7928b4cbc affected 77ce180d68beffd1af620d0121590e16683fc6b8 affected 20a07e1aadcd6990893c532d1b2b507bfa065152 affected a5c051b6503c0ba543e993cfc295b64f096e0a29 affected ea4a173d8358b756a780786baa3fc39d282bdbe3 affected 77d4e2a058858b4a94fc469bc1bfc94a0958e252 affected 1fc15d29540a69cfb55c8b8f8c38f1af33178243 affected 9f8dd40c68c176f2c3f1fc8b87bc81756856938f affected from 3.16.79, before 3.17 affected from 4.4.194, before 4.5 affected from 4.9.194, before 4.10 affected from 4.14.146, before 4.15 affected from 4.19.75, before 4.20 affected from 5.2.17, before 5.3 affected from 5.3.1, before 5.4
Other versions: unaffected
|
| Linux |
affected 5.4 unaffected before 5.4 unaffected from 5.10.203 up to and including 5.10.* unaffected from 5.15.142 up to and including 5.15.* unaffected from 6.1.66 up to and including 6.1.* unaffected from 6.6.4 up to and including 6.6.* unaffected 6.7 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-52781 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52781
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-52781
trivy image --scanners vuln IMAGE | grep CVE-2023-52781
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/9ef94ec8e52eaf7b9abc5b5f8f5b911751112223 git.kernel.org
- https://git.kernel.org/stable/c/64c27b7b2357ddb38b6afebaf46d5bff4d250702 git.kernel.org
- https://git.kernel.org/stable/c/f89fef7710b2ba0f7a1e46594e530dcf2f77be91 git.kernel.org
- https://git.kernel.org/stable/c/7c0244cc311a4038505b73682b7c8ceaa5c7a8c8 git.kernel.org
- https://git.kernel.org/stable/c/974bba5c118f4c2baf00de0356e3e4f7928b4cbc git.kernel.org
Source: the record CVE-2023-52781 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse