CVE-2022-49161

Source
https://cve.org/CVERecord?id=CVE-2022-49161
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49161.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49161
Downstream
Published
2025-02-26T01:55:23Z
Modified
2026-08-12T03:51:45Z
Summary
ASoC: mediatek: Fix error handling in mt8183_da7219_max98357_dev_probe
Details

In the Linux kernel, the following vulnerability has been resolved:

ASoC: mediatek: Fix error handling in mt8183_da7219_max98357_dev_probe

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49161.json"
}
References

Affected packages

Git / 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
11c0269017b212fd47c593307d2dc3eb9713b2d0
Fixed
9b9f6227e8d0c7c46b6d9d7b8a5c4e0536049fcf
Fixed
28a265a1ee11febeec5ea73a804f30dcec3181ca

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49161.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.2.0
Fixed
5.17.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49161.json"