Back

MEDIUM

ASoC: mediatek: Fix error handling in mt8183_da7219_max98357_dev_probe

Published Feb 26, 2025

Description

The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done.

This function only calls of_node_put() in the regular path. And it will cause refcount leak in error paths. Fix this by calling of_node_put() in error handling too.

Affected products

Remediation

No remediation recorded yet.

Weaknesses (0)

No CWE recorded.

References (8)

Change history (0)

No recorded changes yet.

Sources

CVE.org / MITRE

Status PUBLISHED
Assigner Linux
Published Feb 26, 2025
Updated May 11, 2026
Reserved Feb 26, 2025

CISA Vulnrichment

No data

NVD

Status Analyzed
Modified Jun 17, 2026

Red Hat

Public date Feb 26, 2025
Bugzilla 2347977

ENISA EUVD

Assigner Linux
Published Feb 26, 2025
Updated May 11, 2026

GitHub

No data