In the Linux kernel, the following vulnerability has been resolved:
spi: uniphier: fix reference count leak in uniphierspiprobe()
The issue happens in several error paths in uniphierspiprobe().
When either dmagetslavecaps() or devmspiregistermaster() returns
an error code, the function forgets to decrease the refcount of both
dma_rx and dma_tx objects, which may lead to refcount leaks.
Fix it by decrementing the reference count of specific objects in those error paths.
[
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@37c2c83ca4f1ef4b6908181ac98e18360af89b42",
"digest": {
"line_hashes": [
"238649999370269320876756973324021150088",
"14284494071713251659039808297116018071",
"37509174327906568578512975076612041065",
"174740561341530211322245064373344878623",
"239421828927456929129366158703491048684",
"217395283346756825752392643354088635802",
"303125618318345632681290263929414817736",
"54694993775156893870091107585015805502",
"185234021029935225556054370795659985764",
"213975585565406351359784398087590317537",
"250350699541357418500777366542428476238",
"82066289856306628181941622361456481513",
"298540595561937056948176803839472458511",
"54178853210730865439825304981695892153",
"99728754867407386861270997963191395645",
"299903467289825176743011696912351338341",
"95387713406869990780879659655170035243"
],
"threshold": 0.9
},
"id": "CVE-2022-48723-1680f140",
"signature_version": "v1",
"target": {
"file": "drivers/spi/spi-uniphier.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@447c3d4046d7b54052d07d8b27e15e6edea5662c",
"digest": {
"line_hashes": [
"238649999370269320876756973324021150088",
"14284494071713251659039808297116018071",
"37509174327906568578512975076612041065",
"174740561341530211322245064373344878623",
"239421828927456929129366158703491048684",
"217395283346756825752392643354088635802",
"303125618318345632681290263929414817736",
"54694993775156893870091107585015805502",
"185234021029935225556054370795659985764",
"213975585565406351359784398087590317537",
"250350699541357418500777366542428476238",
"82066289856306628181941622361456481513",
"298540595561937056948176803839472458511",
"54178853210730865439825304981695892153",
"99728754867407386861270997963191395645",
"299903467289825176743011696912351338341",
"95387713406869990780879659655170035243"
],
"threshold": 0.9
},
"id": "CVE-2022-48723-3953048c",
"signature_version": "v1",
"target": {
"file": "drivers/spi/spi-uniphier.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dd00b4f8f768d81c3788a8ac88fdb3d745e55ea3",
"digest": {
"line_hashes": [
"238649999370269320876756973324021150088",
"14284494071713251659039808297116018071",
"37509174327906568578512975076612041065",
"174740561341530211322245064373344878623",
"239421828927456929129366158703491048684",
"217395283346756825752392643354088635802",
"303125618318345632681290263929414817736",
"54694993775156893870091107585015805502",
"185234021029935225556054370795659985764",
"213975585565406351359784398087590317537",
"250350699541357418500777366542428476238",
"82066289856306628181941622361456481513",
"298540595561937056948176803839472458511",
"54178853210730865439825304981695892153",
"99728754867407386861270997963191395645",
"299903467289825176743011696912351338341",
"95387713406869990780879659655170035243"
],
"threshold": 0.9
},
"id": "CVE-2022-48723-480441b7",
"signature_version": "v1",
"target": {
"file": "drivers/spi/spi-uniphier.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dd00b4f8f768d81c3788a8ac88fdb3d745e55ea3",
"digest": {
"length": 2954.0,
"function_hash": "153785240074850003487467721240575545094"
},
"id": "CVE-2022-48723-4886f1a0",
"signature_version": "v1",
"target": {
"file": "drivers/spi/spi-uniphier.c",
"function": "uniphier_spi_probe"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e895e067d73e154b1ebc84a124e00831e311d9b0",
"digest": {
"line_hashes": [
"238649999370269320876756973324021150088",
"14284494071713251659039808297116018071",
"37509174327906568578512975076612041065",
"174740561341530211322245064373344878623",
"239421828927456929129366158703491048684",
"217395283346756825752392643354088635802",
"303125618318345632681290263929414817736",
"54694993775156893870091107585015805502",
"185234021029935225556054370795659985764",
"213975585565406351359784398087590317537",
"250350699541357418500777366542428476238",
"82066289856306628181941622361456481513",
"298540595561937056948176803839472458511",
"54178853210730865439825304981695892153",
"99728754867407386861270997963191395645",
"299903467289825176743011696912351338341",
"95387713406869990780879659655170035243"
],
"threshold": 0.9
},
"id": "CVE-2022-48723-99e831bf",
"signature_version": "v1",
"target": {
"file": "drivers/spi/spi-uniphier.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e895e067d73e154b1ebc84a124e00831e311d9b0",
"digest": {
"length": 2954.0,
"function_hash": "153785240074850003487467721240575545094"
},
"id": "CVE-2022-48723-d702a9d2",
"signature_version": "v1",
"target": {
"file": "drivers/spi/spi-uniphier.c",
"function": "uniphier_spi_probe"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@447c3d4046d7b54052d07d8b27e15e6edea5662c",
"digest": {
"length": 2954.0,
"function_hash": "153785240074850003487467721240575545094"
},
"id": "CVE-2022-48723-dc00aa51",
"signature_version": "v1",
"target": {
"file": "drivers/spi/spi-uniphier.c",
"function": "uniphier_spi_probe"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@37c2c83ca4f1ef4b6908181ac98e18360af89b42",
"digest": {
"length": 2954.0,
"function_hash": "153785240074850003487467721240575545094"
},
"id": "CVE-2022-48723-fc239299",
"signature_version": "v1",
"target": {
"file": "drivers/spi/spi-uniphier.c",
"function": "uniphier_spi_probe"
}
}
]