Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2023-52781
HistoryMay 21, 2024 - 4:15 p.m.

CVE-2023-52781

2024-05-2116:15:17
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
27
linux
kernel
usb
vulnerability
bos descriptor
iteration issue
usb_dt_device_capability
iteration
pointer
nvd

6.6 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%

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 configurations

Vulners
Node
linuxlinux_kernelRange5.45.10.203
OR
linuxlinux_kernelRange5.11.05.15.142
OR
linuxlinux_kernelRange5.16.06.1.66
OR
linuxlinux_kernelRange6.2.06.6.4
OR
linuxlinux_kernelRange6.7.0

CNA Affected

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

6.6 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%