Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48866
HistoryJul 16, 2024 - 12:25 p.m.

CVE-2022-48866 HID: hid-thrustmaster: fix OOB read in thrustmaster_interrupts

2024-07-1612:25:28
Linux
www.cve.org
4
linux kernel
vulnerability
hid
out-of-bounds
validation check
usb
endpoint
security fix

EPSS

0

Percentile

5.1%

In the Linux kernel, the following vulnerability has been resolved:

HID: hid-thrustmaster: fix OOB read in thrustmaster_interrupts

Syzbot reported an slab-out-of-bounds Read in thrustmaster_probe() bug.
The root case is in missing validation check of actual number of endpoints.

Code should not blindly access usb_host_interface::endpoint array, since
it may contain less endpoints than code expects.

Fix it by adding missing validaion check and print an error if
number of endpoints do not match expected number

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/hid/hid-thrustmaster.c"
    ],
    "versions": [
      {
        "version": "c49c33637802",
        "lessThan": "3ffbe85cda7f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c49c33637802",
        "lessThan": "56185434e1e5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c49c33637802",
        "lessThan": "fc3ef2e3297b",
        "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/hid/hid-thrustmaster.c"
    ],
    "versions": [
      {
        "version": "5.13",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.13",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.29",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16.15",
        "lessThanOrEqual": "5.16.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.17",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]