CVE-2022-48723

spi: uniphier: fix reference count leak in uniphier_spi_probe()

MEDIUM
5.5
CVSS Score
Published: June 20, 2024 at 11:13 AM UTC
Updated: June 17, 2026 at 05:16 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.225.16 ≤ v < 5.16.85.6 ≤ v < 5.10.995.6 ≤ v < 5.15.225.6 ≤ v < 5.16.85.6 ≤ v < 5.1728d1dddc59f6b7fc085093e7c1e978b33f0caf4c5.17 rc15.17 rc2
Vendor states this is fixed in 37c2c83ca4f1ef4b6908181ac98e18360af89b42 (fixed)
Vendor states this is fixed in 447c3d4046d7b54052d07d8b27e15e6edea5662c (fixed)
Vendor states this is fixed in dd00b4f8f768d81c3788a8ac88fdb3d745e55ea3 (fixed)
Vendor states this is fixed in e895e067d73e154b1ebc84a124e00831e311d9b0 (fixed)
Vendor states this is fixed in 5.10.99 (unaffected)
Vendor states this is fixed in 5.15.22 (unaffected)
Vendor states this is fixed in 5.16.8 (unaffected)
Vendor states this is fixed in 5.17 (unaffected)
Vendor states this is fixed in 5.6 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/37c2c83ca4f1ef4b6908181ac98e18360af89b42
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/447c3d4046d7b54052d07d8b27e15e6edea5662c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/dd00b4f8f768d81c3788a8ac88fdb3d745e55ea3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e895e067d73e154b1ebc84a124e00831e311d9b0

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card