CVE-2022-50357

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50357
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50357.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50357
Downstream
Related
Published
2025-09-17T14:56:09Z
Modified
2025-10-21T12:42:44.285539Z
Summary
usb: dwc3: core: fix some leaks in probe
Details

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

usb: dwc3: core: fix some leaks in probe

The dwc3getproperties() function calls:

dwc->usb_psy = power_supply_get_by_name(usb_psy_name);

so there is some additional clean up required on these error paths.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6f0764b5adea18d70c3fab32d5f940678bcbd865
Fixed
79c3afb55942368921237d7b5355d48c52bdde20
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6f0764b5adea18d70c3fab32d5f940678bcbd865
Fixed
3a213503f483173e7eea76f2e7e3bdd6df7fd6f8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6f0764b5adea18d70c3fab32d5f940678bcbd865
Fixed
2a735e4b5580a2a6bbd6572109b4c4f163c57462

Affected versions

v5.*

v5.12
v5.12-rc3
v5.12-rc4
v5.12-rc5
v5.12-rc6
v5.12-rc7
v5.12-rc8
v5.13
v5.13-rc1
v5.13-rc2
v5.13-rc3
v5.13-rc4
v5.13-rc5
v5.13-rc6
v5.13-rc7
v5.14
v5.14-rc1
v5.14-rc2
v5.14-rc3
v5.14-rc4
v5.14-rc5
v5.14-rc6
v5.14-rc7
v5.15
v5.15-rc1
v5.15-rc2
v5.15-rc3
v5.15-rc4
v5.15-rc5
v5.15-rc6
v5.15-rc7
v5.16
v5.16-rc1
v5.16-rc2
v5.16-rc3
v5.16-rc4
v5.16-rc5
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.17
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8
v5.19.1
v5.19.10
v5.19.11
v5.19.12
v5.19.13
v5.19.14
v5.19.15
v5.19.16
v5.19.2
v5.19.3
v5.19.4
v5.19.5
v5.19.6
v5.19.7
v5.19.8
v5.19.9

v6.*

v6.0
v6.0-rc1
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.0.1
v6.0.2

Database specific

vanir_signatures

[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2a735e4b5580a2a6bbd6572109b4c4f163c57462",
        "target": {
            "file": "drivers/usb/dwc3/core.c",
            "function": "dwc3_probe"
        },
        "id": "CVE-2022-50357-18f0acca",
        "signature_type": "Function",
        "digest": {
            "function_hash": "307197448274253787220562335928606028468",
            "length": 4057.0
        },
        "deprecated": false,
        "signature_version": "v1"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3a213503f483173e7eea76f2e7e3bdd6df7fd6f8",
        "target": {
            "file": "drivers/usb/dwc3/core.c",
            "function": "dwc3_probe"
        },
        "id": "CVE-2022-50357-413a2aaf",
        "signature_type": "Function",
        "digest": {
            "function_hash": "301384942669117826756182880044084523337",
            "length": 3941.0
        },
        "deprecated": false,
        "signature_version": "v1"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@79c3afb55942368921237d7b5355d48c52bdde20",
        "target": {
            "file": "drivers/usb/dwc3/core.c",
            "function": "dwc3_probe"
        },
        "id": "CVE-2022-50357-7469fc47",
        "signature_type": "Function",
        "digest": {
            "function_hash": "301384942669117826756182880044084523337",
            "length": 3941.0
        },
        "deprecated": false,
        "signature_version": "v1"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@79c3afb55942368921237d7b5355d48c52bdde20",
        "target": {
            "file": "drivers/usb/dwc3/core.c"
        },
        "id": "CVE-2022-50357-a712c4e7",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "216027425298568312131778358753204595710",
                "216478965779901323383616673911490727023",
                "12867064536833557864189069009845391016",
                "211627037488386775877832576235282860056",
                "2207029275005054533953322699187065906",
                "160802924712918860221001783325036617851",
                "267147838946545646691557681615695315804",
                "335095856560510685526388681754253763970",
                "112163377727162504392277965029528131469",
                "31944734993476067501901315014994456780",
                "210310780127089642005638370296890229017",
                "40030918445011488154222422849260195719",
                "253509669134460602882698605002325306906",
                "90170567995484381683201611285010246738",
                "144279752120611010388943692520389334225",
                "81210909210269432414779410024927971242",
                "261323204573572349100038103508728064251",
                "127126553821680568388316725046135579133",
                "96612336172644384502886119304270412409",
                "88387978517184854952897141110770342847",
                "2523497751723968027042255946970590366",
                "141975720497527776313585734713130179334",
                "191852763748778253092832108184743046562",
                "224079566140977118327254077570894561154",
                "119061961313455757211082203040622567378",
                "32873992302571432543733187614080156103",
                "332062634971624318118544650706698927203",
                "84610870081318511001223013900661560082",
                "134484056394827636977307856676587375104",
                "131503049532950781774691342253211592261",
                "251071769370660120756204201535643965397",
                "151249109868637191102728475178434059752",
                "314410733239864041631792701790583141684",
                "90218261362014705796618405345718216997",
                "108277006513070411078773107215373296342",
                "120180644386436103671349792730775066143",
                "160463337709910534961572757947537237692",
                "22475492451807567465921333328868722338",
                "17130318693514748397316389445439962113",
                "39924673960854654661035063428044003540",
                "301825506953037275577801494711145676785",
                "220479002034987568373700873961864281111",
                "216138981702124424593185000763826929480"
            ]
        },
        "deprecated": false,
        "signature_version": "v1"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3a213503f483173e7eea76f2e7e3bdd6df7fd6f8",
        "target": {
            "file": "drivers/usb/dwc3/core.c"
        },
        "id": "CVE-2022-50357-b177cf4e",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "216027425298568312131778358753204595710",
                "216478965779901323383616673911490727023",
                "12867064536833557864189069009845391016",
                "211627037488386775877832576235282860056",
                "2207029275005054533953322699187065906",
                "160802924712918860221001783325036617851",
                "267147838946545646691557681615695315804",
                "335095856560510685526388681754253763970",
                "112163377727162504392277965029528131469",
                "31944734993476067501901315014994456780",
                "210310780127089642005638370296890229017",
                "40030918445011488154222422849260195719",
                "253509669134460602882698605002325306906",
                "90170567995484381683201611285010246738",
                "144279752120611010388943692520389334225",
                "81210909210269432414779410024927971242",
                "261323204573572349100038103508728064251",
                "127126553821680568388316725046135579133",
                "96612336172644384502886119304270412409",
                "88387978517184854952897141110770342847",
                "2523497751723968027042255946970590366",
                "141975720497527776313585734713130179334",
                "191852763748778253092832108184743046562",
                "224079566140977118327254077570894561154",
                "119061961313455757211082203040622567378",
                "32873992302571432543733187614080156103",
                "332062634971624318118544650706698927203",
                "84610870081318511001223013900661560082",
                "134484056394827636977307856676587375104",
                "131503049532950781774691342253211592261",
                "251071769370660120756204201535643965397",
                "151249109868637191102728475178434059752",
                "314410733239864041631792701790583141684",
                "90218261362014705796618405345718216997",
                "108277006513070411078773107215373296342",
                "120180644386436103671349792730775066143",
                "160463337709910534961572757947537237692",
                "22475492451807567465921333328868722338",
                "17130318693514748397316389445439962113",
                "39924673960854654661035063428044003540",
                "301825506953037275577801494711145676785",
                "220479002034987568373700873961864281111",
                "216138981702124424593185000763826929480"
            ]
        },
        "deprecated": false,
        "signature_version": "v1"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2a735e4b5580a2a6bbd6572109b4c4f163c57462",
        "target": {
            "file": "drivers/usb/dwc3/core.c"
        },
        "id": "CVE-2022-50357-df2eeb53",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "316884340672488878975757206293713985814",
                "187110831644114010806969333714010600665",
                "12867064536833557864189069009845391016",
                "211627037488386775877832576235282860056",
                "2207029275005054533953322699187065906",
                "160802924712918860221001783325036617851",
                "267147838946545646691557681615695315804",
                "335095856560510685526388681754253763970",
                "112163377727162504392277965029528131469",
                "31944734993476067501901315014994456780",
                "210310780127089642005638370296890229017",
                "40030918445011488154222422849260195719",
                "253509669134460602882698605002325306906",
                "90170567995484381683201611285010246738",
                "144279752120611010388943692520389334225",
                "81210909210269432414779410024927971242",
                "261323204573572349100038103508728064251",
                "127126553821680568388316725046135579133",
                "96612336172644384502886119304270412409",
                "88387978517184854952897141110770342847",
                "2523497751723968027042255946970590366",
                "141975720497527776313585734713130179334",
                "191852763748778253092832108184743046562",
                "224079566140977118327254077570894561154",
                "119061961313455757211082203040622567378",
                "32873992302571432543733187614080156103",
                "332062634971624318118544650706698927203",
                "84610870081318511001223013900661560082",
                "134484056394827636977307856676587375104",
                "131503049532950781774691342253211592261",
                "251071769370660120756204201535643965397",
                "151249109868637191102728475178434059752",
                "314410733239864041631792701790583141684",
                "90218261362014705796618405345718216997",
                "108277006513070411078773107215373296342",
                "120180644386436103671349792730775066143",
                "160463337709910534961572757947537237692",
                "22475492451807567465921333328868722338",
                "17130318693514748397316389445439962113",
                "39924673960854654661035063428044003540",
                "301825506953037275577801494711145676785",
                "220479002034987568373700873961864281111",
                "216138981702124424593185000763826929480"
            ]
        },
        "deprecated": false,
        "signature_version": "v1"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.13.0
Fixed
5.19.17
Type
ECOSYSTEM
Events
Introduced
5.20.0
Fixed
6.0.3