In the Linux kernel, the following vulnerability has been resolved:
stmmac: intel: Add a missing clkdisableunprepare() call in intelethpci_remove()
Commit 09f012e64e4b ("stmmac: intel: Fix clock handling on error and remove paths") removed this clkdisableunprepare()
This was partly revert by commit ac322f86b56c ("net: stmmac: Fix clock handling on remove path") which removed this clkdisableunprepare() because: " While unloading the dwmac-intel driver, clkdisableunprepare() is being called twice in stmmacdvrremove() and intelethpci_remove(). This causes kernel panic on the second call. "
However later on, commit 5ec55823438e8 ("net: stmmac: add clocks management for gmac driver") has updated stmmacdvrremove() which do not call clkdisableunprepare() anymore.
So this call should now be called from intelethpci_remove().
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50039.json",
"cna_assigner": "Linux"
}[
{
"signature_type": "Line",
"digest": {
"line_hashes": [
"218634742701103969138248123205758630704",
"136333173539745429615652031709205267125",
"206487923930959306117496086896727130169"
],
"threshold": 0.9
},
"deprecated": false,
"id": "CVE-2022-50039-029833cb",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9400aeb419d35e718e90aa14a97c11229d0a40bc",
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"218634742701103969138248123205758630704",
"136333173539745429615652031709205267125",
"206487923930959306117496086896727130169"
],
"threshold": 0.9
},
"id": "CVE-2022-50039-284c7394",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5c23d6b717e4e956376f3852b90f58e262946b50",
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c"
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c",
"function": "intel_eth_pci_remove"
},
"id": "CVE-2022-50039-3e3ff5a7",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5c23d6b717e4e956376f3852b90f58e262946b50",
"digest": {
"function_hash": "44697010451896979641775754424570783503",
"length": 229.0
}
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"264331520918885438856527089981303129113",
"187532357505855706258592083418343145387",
"27819782501465577813893651783092022061"
],
"threshold": 0.9
},
"id": "CVE-2022-50039-5d460814",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02f3642d8e657c05f382729c165bed46745dc18c",
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"function_hash": "44697010451896979641775754424570783503",
"length": 229.0
},
"id": "CVE-2022-50039-b8bc8123",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@47129531196054b374017555165b47a43cdb6f41",
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c",
"function": "intel_eth_pci_remove"
}
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"function_hash": "122313658700883970231621221126336282114",
"length": 271.0
},
"id": "CVE-2022-50039-d3923b6b",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02f3642d8e657c05f382729c165bed46745dc18c",
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c",
"function": "intel_eth_pci_remove"
}
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"218634742701103969138248123205758630704",
"136333173539745429615652031709205267125",
"206487923930959306117496086896727130169"
],
"threshold": 0.9
},
"id": "CVE-2022-50039-da572bd1",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@47129531196054b374017555165b47a43cdb6f41",
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"function_hash": "44697010451896979641775754424570783503",
"length": 229.0
},
"id": "CVE-2022-50039-f3b02835",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9400aeb419d35e718e90aa14a97c11229d0a40bc",
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c",
"function": "intel_eth_pci_remove"
}
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50039.json"