In the Linux kernel, the following vulnerability has been resolved:
usb: dwc2: Fix memory leak in dwc2hcdinit
usbcreatehcd will alloc memory for hcd, and we should call usbputhcd to free it when platformgetresource() fails to prevent memory leak. goto error2 label instead error1 to fix this.
[
{
"digest": {
"length": 5429.0,
"function_hash": "271455186159438134616385689755697894567"
},
"signature_type": "Function",
"target": {
"function": "dwc2_hcd_init",
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52bfcedbfd5bf962dbdcb6e761f4d0dd3ba26dfd",
"signature_version": "v1",
"id": "CVE-2022-49713-28e283d5"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"192447703665136192328928713594263537766",
"182886824456829305279722842155935431636",
"183688325962495444106485683118755570121",
"77103609245775269068634847333239503052"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@701d8ec01e0f229d4db6f43d3d64ee479120cbeb",
"signature_version": "v1",
"id": "CVE-2022-49713-6613a8d2"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"192447703665136192328928713594263537766",
"182886824456829305279722842155935431636",
"183688325962495444106485683118755570121",
"77103609245775269068634847333239503052"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3755278f078460b021cd0384562977bf2039a57a",
"signature_version": "v1",
"id": "CVE-2022-49713-66abab3f"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"192447703665136192328928713594263537766",
"182886824456829305279722842155935431636",
"183688325962495444106485683118755570121",
"77103609245775269068634847333239503052"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@981ee40649e5fd9550f82db1fbb3bfab037da346",
"signature_version": "v1",
"id": "CVE-2022-49713-6a3be7ff"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"192447703665136192328928713594263537766",
"182886824456829305279722842155935431636",
"183688325962495444106485683118755570121",
"77103609245775269068634847333239503052"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6506aff2dc2f7059aa3d45ee2e8639b25e87090f",
"signature_version": "v1",
"id": "CVE-2022-49713-6a718436"
},
{
"digest": {
"length": 5429.0,
"function_hash": "271455186159438134616385689755697894567"
},
"signature_type": "Function",
"target": {
"function": "dwc2_hcd_init",
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3755278f078460b021cd0384562977bf2039a57a",
"signature_version": "v1",
"id": "CVE-2022-49713-799da362"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"192447703665136192328928713594263537766",
"182886824456829305279722842155935431636",
"183688325962495444106485683118755570121",
"77103609245775269068634847333239503052"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a44a8a762f7fe9ad3c065813d058e835a6180cb2",
"signature_version": "v1",
"id": "CVE-2022-49713-930f7572"
},
{
"digest": {
"length": 5357.0,
"function_hash": "214055710151593946475143775252510179595"
},
"signature_type": "Function",
"target": {
"function": "dwc2_hcd_init",
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@84e6d0af87e27bbc0db94f2e7323b34abe17b6e5",
"signature_version": "v1",
"id": "CVE-2022-49713-9d94c2cf"
},
{
"digest": {
"length": 5429.0,
"function_hash": "271455186159438134616385689755697894567"
},
"signature_type": "Function",
"target": {
"function": "dwc2_hcd_init",
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@701d8ec01e0f229d4db6f43d3d64ee479120cbeb",
"signature_version": "v1",
"id": "CVE-2022-49713-ab56893b"
},
{
"digest": {
"length": 5429.0,
"function_hash": "271455186159438134616385689755697894567"
},
"signature_type": "Function",
"target": {
"function": "dwc2_hcd_init",
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6506aff2dc2f7059aa3d45ee2e8639b25e87090f",
"signature_version": "v1",
"id": "CVE-2022-49713-baee9245"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"192447703665136192328928713594263537766",
"182886824456829305279722842155935431636",
"183688325962495444106485683118755570121",
"77103609245775269068634847333239503052"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@84e6d0af87e27bbc0db94f2e7323b34abe17b6e5",
"signature_version": "v1",
"id": "CVE-2022-49713-cba89e02"
},
{
"digest": {
"length": 5335.0,
"function_hash": "120767883646059259583208070637479915992"
},
"signature_type": "Function",
"target": {
"function": "dwc2_hcd_init",
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@981ee40649e5fd9550f82db1fbb3bfab037da346",
"signature_version": "v1",
"id": "CVE-2022-49713-d300af93"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"192447703665136192328928713594263537766",
"182886824456829305279722842155935431636",
"183688325962495444106485683118755570121",
"77103609245775269068634847333239503052"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52bfcedbfd5bf962dbdcb6e761f4d0dd3ba26dfd",
"signature_version": "v1",
"id": "CVE-2022-49713-e21b783c"
},
{
"digest": {
"length": 5429.0,
"function_hash": "271455186159438134616385689755697894567"
},
"signature_type": "Function",
"target": {
"function": "dwc2_hcd_init",
"file": "drivers/usb/dwc2/hcd.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a44a8a762f7fe9ad3c065813d058e835a6180cb2",
"signature_version": "v1",
"id": "CVE-2022-49713-f837d78a"
}
]