CVE-2022-50115

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50115
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50115.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50115
Downstream
Related
Published
2025-06-18T11:02:46Z
Modified
2025-10-21T06:16:16.373346Z
Summary
ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes
Details

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

ASoC: SOF: ipc3-topology: Prevent double freeing of ipccontroldata via load_bytes

We have sanity checks for byte controls and if any of the fail the locally allocated scontrol->ipccontroldata is freed up, but not set to NULL.

On a rollback path of the error the higher level code will also try to free the scontrol->ipccontroldata which will eventually going to lead to memory corruption as double freeing memory is not a good thing.

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
b5cee8feb1d482a9d07b677f4f2f9565bacda53e
Fixed
8463986b54295e6b65ddf2b7c65627d01ce7643b
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b5cee8feb1d482a9d07b677f4f2f9565bacda53e
Fixed
c2eddfcafcffaf1b9245ea0dde9143bbfb47d5d1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b5cee8feb1d482a9d07b677f4f2f9565bacda53e
Fixed
d5bd47f3ca124058a8e87eae4508afeda2132611

Affected versions

v5.*

v5.17
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.18.1
v5.18.10
v5.18.11
v5.18.12
v5.18.13
v5.18.14
v5.18.15
v5.18.16
v5.18.17
v5.18.2
v5.18.3
v5.18.4
v5.18.5
v5.18.6
v5.18.7
v5.18.8
v5.18.9
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8
v5.19.1

Database specific

vanir_signatures

[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d5bd47f3ca124058a8e87eae4508afeda2132611",
        "target": {
            "file": "sound/soc/sof/ipc3-topology.c"
        },
        "id": "CVE-2022-50115-43efc33c",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "124997092651764779049992873116039737536",
                "37384912343779617859248335467030575551",
                "208706136635231830052608562328017459962",
                "13089392010430763382918530683453666250"
            ],
            "threshold": 0.9
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8463986b54295e6b65ddf2b7c65627d01ce7643b",
        "target": {
            "file": "sound/soc/sof/ipc3-topology.c"
        },
        "id": "CVE-2022-50115-5417084c",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "124997092651764779049992873116039737536",
                "37384912343779617859248335467030575551",
                "208706136635231830052608562328017459962",
                "13089392010430763382918530683453666250"
            ],
            "threshold": 0.9
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d5bd47f3ca124058a8e87eae4508afeda2132611",
        "target": {
            "function": "sof_ipc3_control_load_bytes",
            "file": "sound/soc/sof/ipc3-topology.c"
        },
        "id": "CVE-2022-50115-6ed02ccc",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "93809534986242980659588050591835352530",
            "length": 1527.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c2eddfcafcffaf1b9245ea0dde9143bbfb47d5d1",
        "target": {
            "file": "sound/soc/sof/ipc3-topology.c"
        },
        "id": "CVE-2022-50115-ccd0e73e",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "124997092651764779049992873116039737536",
                "37384912343779617859248335467030575551",
                "208706136635231830052608562328017459962",
                "13089392010430763382918530683453666250"
            ],
            "threshold": 0.9
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c2eddfcafcffaf1b9245ea0dde9143bbfb47d5d1",
        "target": {
            "function": "sof_ipc3_control_load_bytes",
            "file": "sound/soc/sof/ipc3-topology.c"
        },
        "id": "CVE-2022-50115-e178b922",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "93809534986242980659588050591835352530",
            "length": 1527.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8463986b54295e6b65ddf2b7c65627d01ce7643b",
        "target": {
            "function": "sof_ipc3_control_load_bytes",
            "file": "sound/soc/sof/ipc3-topology.c"
        },
        "id": "CVE-2022-50115-ecad4b46",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "93809534986242980659588050591835352530",
            "length": 1527.0
        }
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.18.0
Fixed
5.18.18
Type
ECOSYSTEM
Events
Introduced
5.19.0
Fixed
5.19.2