Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2023-52781
HistoryMay 21, 2024 - 3:31 p.m.

CVE-2023-52781 usb: config: fix iteration issue in 'usb_get_bos_descriptor()'

2024-05-2115:31:00
Linux
github.com
11
linux kernel
usb config
iteration issue

AI Score

6.6

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "3dd550a2d365",
        "lessThan": "9ef94ec8e52e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3dd550a2d365",
        "lessThan": "64c27b7b2357",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3dd550a2d365",
        "lessThan": "f89fef7710b2",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3dd550a2d365",
        "lessThan": "7c0244cc311a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3dd550a2d365",
        "lessThan": "974bba5c118f",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/usb/core/config.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.4"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.4",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "5.10.203",
        "versionType": "custom",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.142",
        "versionType": "custom",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.66",
        "versionType": "custom",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.4",
        "versionType": "custom",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.7",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/usb/core/config.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

6.6

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial