{"id":"CVE-2022-48723","summary":"spi: uniphier: fix reference count leak in uniphier_spi_probe()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: uniphier: fix reference count leak in uniphier_spi_probe()\n\nThe issue happens in several error paths in uniphier_spi_probe().\nWhen either dma_get_slave_caps() or devm_spi_register_master() returns\nan error code, the function forgets to decrease the refcount of both\n`dma_rx` and `dma_tx` objects, which may lead to refcount leaks.\n\nFix it by decrementing the reference count of specific objects in\nthose error paths.","modified":"2026-03-20T12:21:46.785985Z","published":"2024-06-20T11:13:13.965Z","related":["SUSE-SU-2024:2372-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2902-1","SUSE-SU-2024:2929-1","SUSE-SU-2024:2939-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48723.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/37c2c83ca4f1ef4b6908181ac98e18360af89b42"},{"type":"WEB","url":"https://git.kernel.org/stable/c/447c3d4046d7b54052d07d8b27e15e6edea5662c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dd00b4f8f768d81c3788a8ac88fdb3d745e55ea3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e895e067d73e154b1ebc84a124e00831e311d9b0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48723.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48723"},{"type":"PACKAGE","url":"https://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":"28d1dddc59f6b7fc085093e7c1e978b33f0caf4c"},{"fixed":"e895e067d73e154b1ebc84a124e00831e311d9b0"},{"fixed":"dd00b4f8f768d81c3788a8ac88fdb3d745e55ea3"},{"fixed":"447c3d4046d7b54052d07d8b27e15e6edea5662c"},{"fixed":"37c2c83ca4f1ef4b6908181ac98e18360af89b42"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48723.json"}}],"schema_version":"1.7.5"}