{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: uvc: Prevent buffer overflow in setup handler\n\nSetup function uvc_function_setup permits control transfer\nrequests with up to 64 bytes of payload (UVC_MAX_REQUEST_SIZE),\ndata stage handler for OUT transfer uses memcpy to copy req->actual\nbytes to uvc_event->data.data array of size 60. This may result\nin an overflow of 4 bytes."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/usb/gadget/function/f_uvc.c"
               ],
               "versions": [
                  {
                     "version": "cdda479f15cd",
                     "lessThan": "4972e3528b96",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "cdda479f15cd",
                     "lessThan": "06fd17ee92c8",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "cdda479f15cd",
                     "lessThan": "bc8380fe5768",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "cdda479f15cd",
                     "lessThan": "b8fb1cba934e",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "cdda479f15cd",
                     "lessThan": "c79538f32df1",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "cdda479f15cd",
                     "lessThan": "6b41a35b41f7",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "cdda479f15cd",
                     "lessThan": "7b1f773277a7",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "cdda479f15cd",
                     "lessThan": "d1a92bb8d697",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "cdda479f15cd",
                     "lessThan": "4c92670b1672",
                     "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/gadget/function/f_uvc.c"
               ],
               "versions": [
                  {
                     "version": "2.6.35",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "2.6.35",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.9.337",
                     "lessThanOrEqual": "4.9.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.14.303",
                     "lessThanOrEqual": "4.14.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.270",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.229",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.161",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.85",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.0.15",
                     "lessThanOrEqual": "6.0.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.1",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.2",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/4972e3528b968665b596b5434764ff8fd9446d35"
            },
            {
               "url": "https://git.kernel.org/stable/c/06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5"
            },
            {
               "url": "https://git.kernel.org/stable/c/bc8380fe5768c564f921f7b4eaba932e330b9e4b"
            },
            {
               "url": "https://git.kernel.org/stable/c/b8fb1cba934ea122b50f13a4f9d6fc4fdc43d2be"
            },
            {
               "url": "https://git.kernel.org/stable/c/c79538f32df12887f110dcd6b9c825b482905f24"
            },
            {
               "url": "https://git.kernel.org/stable/c/6b41a35b41f77821db24f2d8f66794b390a585c5"
            },
            {
               "url": "https://git.kernel.org/stable/c/7b1f773277a72f9756d47a41b94e43506cce1954"
            },
            {
               "url": "https://git.kernel.org/stable/c/d1a92bb8d697f170d93fe922da763d7d156b8841"
            },
            {
               "url": "https://git.kernel.org/stable/c/4c92670b16727365699fe4b19ed32013bab2c107"
            }
         ],
         "title": "usb: gadget: uvc: Prevent buffer overflow in setup handler",
         "x_generator": {
            "engine": "bippy-c9c4e1df01b2"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2022-48948",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
