spi: uniphier: fix reference count leak in uniphier_spi_probe()
In the Linux kernel, the following vulnerability has been resolved: spi: uniphier: fix reference count leak in uniphier_spi_probe() The issue happens in several error paths in uniphier_spi_probe(). When either dma_get_slave_caps() or devm_spi_register_master() 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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.99, 5.15.22, 5.16.8
- CVEs
- CVE-2022-48723
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 10:37 UTC · Revision 1
Source evidence
spi: uniphier: fix reference count leak in uniphier_spi_probe()
core-osv · Original sourcePublished 20 Jun 2024, 11:13 UTC
In the Linux kernel, the following vulnerability has been resolved: spi: uniphier: fix reference count leak in uniphier_spi_probe() The issue happens in several error paths in uniphier_spi_probe(). When either dma_get_slave_caps() or devm_spi_register_master() 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.
osv:CVE-2022-48723
Kernel
Fixed versions: 5.10.99, 5.15.22, 5.16.8
Complete source record
{
"id": "226ed2c48d2ede8d1db40616266d8768fdc5a26b0394751c279a54b630134119",
"url": "https://osv.dev/vulnerability/CVE-2022-48723",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "spi: uniphier: fix reference count leak in uniphier_spi_probe()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: spi: uniphier: fix reference count leak in uniphier_spi_probe() The issue happens in several error paths in uniphier_spi_probe(). When either dma_get_slave_caps() or devm_spi_register_master() 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.",
"evidence": "osv:CVE-2022-48723",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.99",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.22",
"evidence": "/affected/1/ranges"
},
{
"value": "5.16.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-48723",
"aliases": [
"CVE-2022-48723"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "28d1dddc59f6b7fc085093e7c1e978b33f0caf4c"
},
{
"fixed": "e895e067d73e154b1ebc84a124e00831e311d9b0"
},
{
"fixed": "dd00b4f8f768d81c3788a8ac88fdb3d745e55ea3"
},
{
"fixed": "447c3d4046d7b54052d07d8b27e15e6edea5662c"
},
{
"fixed": "37c2c83ca4f1ef4b6908181ac98e18360af89b42"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48723.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.6.0"
},
{
"fixed": "5.10.99"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.22"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.16.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48723.json"
}
}
],
"modified": "2026-10-28T02:30:28.286381696Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/37c2c83ca4f1ef4b6908181ac98e18360af89b42",
"https://git.kernel.org/stable/c/447c3d4046d7b54052d07d8b27e15e6edea5662c",
"https://git.kernel.org/stable/c/dd00b4f8f768d81c3788a8ac88fdb3d745e55ea3",
"https://git.kernel.org/stable/c/e895e067d73e154b1ebc84a124e00831e311d9b0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48723.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-48723",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48723.json"
}
},
"related_cves": [
{
"value": "CVE-2022-48723",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 494598,
"published_at": "2024-06-20T11:13:13.965+00:00"
}