{
   "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: dwc3: st: fix probed platform device ref count on probe error path\n\nThe probe function never performs any paltform device allocation, thus\nerror path \"undo_platform_dev_alloc\" is entirely bogus.  It drops the\nreference count from the platform device being probed.  If error path is\ntriggered, this will lead to unbalanced device reference counts and\npremature release of device resources, thus possible use-after-free when\nreleasing remaining devm-managed resources."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/usb/dwc3/dwc3-st.c"
               ],
               "versions": [
                  {
                     "version": "f83fca0707c6",
                     "lessThan": "b0979a885b9d",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f83fca0707c6",
                     "lessThan": "f3498650df08",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f83fca0707c6",
                     "lessThan": "6aee4c5635d8",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f83fca0707c6",
                     "lessThan": "060f41243ad7",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f83fca0707c6",
                     "lessThan": "4c6735299540",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f83fca0707c6",
                     "lessThan": "e1e5e8ea2731",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f83fca0707c6",
                     "lessThan": "1de989668708",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f83fca0707c6",
                     "lessThan": "ddfcfeba8910",
                     "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/dwc3/dwc3-st.c"
               ],
               "versions": [
                  {
                     "version": "3.18",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "3.18",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.321",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.283",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.225",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.166",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.108",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.49",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.10.8",
                     "lessThanOrEqual": "6.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.11",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/b0979a885b9d4df2a25b88e9d444ccaa5f9f495c"
            },
            {
               "url": "https://git.kernel.org/stable/c/f3498650df0805c75b4e1c94d07423c46cbf4ce1"
            },
            {
               "url": "https://git.kernel.org/stable/c/6aee4c5635d81f4809c3b9f0c198a65adfbb2ada"
            },
            {
               "url": "https://git.kernel.org/stable/c/060f41243ad7f6f5249fa7290dda0c01f723d12d"
            },
            {
               "url": "https://git.kernel.org/stable/c/4c6735299540f3c82a5033d35be76a5c42e0fb18"
            },
            {
               "url": "https://git.kernel.org/stable/c/e1e5e8ea2731150d5ba7c707f9e02fafebcfeb49"
            },
            {
               "url": "https://git.kernel.org/stable/c/1de989668708ce5875efc9d669d227212aeb9a90"
            },
            {
               "url": "https://git.kernel.org/stable/c/ddfcfeba891064b88bb844208b43bef2ef970f0c"
            }
         ],
         "title": "usb: dwc3: st: fix probed platform device ref count on probe error path",
         "x_generator": {
            "engine": "bippy-c9c4e1df01b2"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-46674",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
