CVE-2022-49251

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49251
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49251.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49251
Downstream
Related
Published
2025-02-26T01:56:08Z
Modified
2025-10-15T15:11:24.019760Z
Summary
ASoC: codecs: va-macro: fix accessing array out of bounds for enum type
Details

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

ASoC: codecs: va-macro: fix accessing array out of bounds for enum type

Accessing enums using integer would result in array out of bounds access on platforms like aarch64 where sizeof(long) is 8 compared to enum size which is 4 bytes.

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
908e6b1df26efc9d2df70c9a7bf4f5eae5c5702f
Fixed
966408e37d84b762d11978b7bfb03fff0c6222ad
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
908e6b1df26efc9d2df70c9a7bf4f5eae5c5702f
Fixed
4a799972a283ab4ec031041304d7e2d34e1a16eb
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
908e6b1df26efc9d2df70c9a7bf4f5eae5c5702f
Fixed
c0099bbf8bc85d30c4cf38220fca3c8d4253fa7f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
908e6b1df26efc9d2df70c9a7bf4f5eae5c5702f
Fixed
0ea5eff7c6063a8f124188424f8e4c6727f35051

Affected versions

v5.*

v5.10
v5.10-rc2
v5.10-rc3
v5.10-rc4
v5.10-rc5
v5.10-rc6
v5.10-rc7
v5.11
v5.11-rc1
v5.11-rc2
v5.11-rc3
v5.11-rc4
v5.11-rc5
v5.11-rc6
v5.11-rc7
v5.12
v5.12-rc1
v5.12-rc1-dontuse
v5.12-rc2
v5.12-rc3
v5.12-rc4
v5.12-rc5
v5.12-rc6
v5.12-rc7
v5.12-rc8
v5.13
v5.13-rc1
v5.13-rc2
v5.13-rc3
v5.13-rc4
v5.13-rc5
v5.13-rc6
v5.13-rc7
v5.14
v5.14-rc1
v5.14-rc2
v5.14-rc3
v5.14-rc4
v5.14-rc5
v5.14-rc6
v5.14-rc7
v5.15
v5.15-rc1
v5.15-rc2
v5.15-rc3
v5.15-rc4
v5.15-rc5
v5.15-rc6
v5.15-rc7
v5.15.1
v5.15.10
v5.15.11
v5.15.12
v5.15.13
v5.15.14
v5.15.15
v5.15.16
v5.15.17
v5.15.18
v5.15.19
v5.15.2
v5.15.20
v5.15.21
v5.15.22
v5.15.23
v5.15.24
v5.15.25
v5.15.26
v5.15.27
v5.15.28
v5.15.29
v5.15.3
v5.15.30
v5.15.31
v5.15.32
v5.15.4
v5.15.5
v5.15.6
v5.15.7
v5.15.8
v5.15.9
v5.16
v5.16-rc1
v5.16-rc2
v5.16-rc3
v5.16-rc4
v5.16-rc5
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.16.1
v5.16.10
v5.16.11
v5.16.12
v5.16.13
v5.16.14
v5.16.15
v5.16.16
v5.16.17
v5.16.18
v5.16.2
v5.16.3
v5.16.4
v5.16.5
v5.16.6
v5.16.7
v5.16.8
v5.16.9
v5.17
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.17.1

Database specific

vanir_signatures

[
    {
        "id": "CVE-2022-49251-00975c01",
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "function": "va_macro_dec_mode_put",
            "file": "sound/soc/codecs/lpass-va-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c0099bbf8bc85d30c4cf38220fca3c8d4253fa7f",
        "digest": {
            "length": 299.0,
            "function_hash": "32002825483043556991894944102630004613"
        },
        "deprecated": false
    },
    {
        "id": "CVE-2022-49251-11723384",
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "function": "va_macro_dec_mode_get",
            "file": "sound/soc/codecs/lpass-va-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a799972a283ab4ec031041304d7e2d34e1a16eb",
        "digest": {
            "length": 285.0,
            "function_hash": "105362135493705638203043896550649183366"
        },
        "deprecated": false
    },
    {
        "id": "CVE-2022-49251-1dcdc9ce",
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "function": "va_macro_dec_mode_get",
            "file": "sound/soc/codecs/lpass-va-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0ea5eff7c6063a8f124188424f8e4c6727f35051",
        "digest": {
            "length": 285.0,
            "function_hash": "105362135493705638203043896550649183366"
        },
        "deprecated": false
    },
    {
        "id": "CVE-2022-49251-1e9471da",
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "function": "va_macro_dec_mode_get",
            "file": "sound/soc/codecs/lpass-va-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c0099bbf8bc85d30c4cf38220fca3c8d4253fa7f",
        "digest": {
            "length": 285.0,
            "function_hash": "105362135493705638203043896550649183366"
        },
        "deprecated": false
    },
    {
        "id": "CVE-2022-49251-808ffe84",
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "function": "va_macro_dec_mode_put",
            "file": "sound/soc/codecs/lpass-va-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0ea5eff7c6063a8f124188424f8e4c6727f35051",
        "digest": {
            "length": 299.0,
            "function_hash": "32002825483043556991894944102630004613"
        },
        "deprecated": false
    },
    {
        "id": "CVE-2022-49251-886fc0ff",
        "signature_type": "Line",
        "signature_version": "v1",
        "target": {
            "file": "sound/soc/codecs/lpass-va-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c0099bbf8bc85d30c4cf38220fca3c8d4253fa7f",
        "digest": {
            "line_hashes": [
                "256450797273327066955635997867489103611",
                "325103228509568349448818350861465538067",
                "34539727049006205660538826158212851473",
                "335404986991163114828754273633984867503",
                "199836211010607633919114459108074431438",
                "317443650529376170446551511227411989734",
                "72105163801344287295761281027035176318",
                "256039788105560110944980999089345514866"
            ],
            "threshold": 0.9
        },
        "deprecated": false
    },
    {
        "id": "CVE-2022-49251-9f19e2bd",
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "function": "va_macro_dec_mode_get",
            "file": "sound/soc/codecs/lpass-va-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@966408e37d84b762d11978b7bfb03fff0c6222ad",
        "digest": {
            "length": 285.0,
            "function_hash": "105362135493705638203043896550649183366"
        },
        "deprecated": false
    },
    {
        "id": "CVE-2022-49251-b45d2056",
        "signature_type": "Line",
        "signature_version": "v1",
        "target": {
            "file": "sound/soc/codecs/lpass-va-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@966408e37d84b762d11978b7bfb03fff0c6222ad",
        "digest": {
            "line_hashes": [
                "256450797273327066955635997867489103611",
                "325103228509568349448818350861465538067",
                "34539727049006205660538826158212851473",
                "335404986991163114828754273633984867503",
                "199836211010607633919114459108074431438",
                "317443650529376170446551511227411989734",
                "72105163801344287295761281027035176318",
                "256039788105560110944980999089345514866"
            ],
            "threshold": 0.9
        },
        "deprecated": false
    },
    {
        "id": "CVE-2022-49251-ba850b47",
        "signature_type": "Line",
        "signature_version": "v1",
        "target": {
            "file": "sound/soc/codecs/lpass-va-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0ea5eff7c6063a8f124188424f8e4c6727f35051",
        "digest": {
            "line_hashes": [
                "256450797273327066955635997867489103611",
                "325103228509568349448818350861465538067",
                "34539727049006205660538826158212851473",
                "335404986991163114828754273633984867503",
                "199836211010607633919114459108074431438",
                "317443650529376170446551511227411989734",
                "72105163801344287295761281027035176318",
                "256039788105560110944980999089345514866"
            ],
            "threshold": 0.9
        },
        "deprecated": false
    },
    {
        "id": "CVE-2022-49251-d8fbbf4c",
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "function": "va_macro_dec_mode_put",
            "file": "sound/soc/codecs/lpass-va-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a799972a283ab4ec031041304d7e2d34e1a16eb",
        "digest": {
            "length": 299.0,
            "function_hash": "32002825483043556991894944102630004613"
        },
        "deprecated": false
    },
    {
        "id": "CVE-2022-49251-dfe49f6b",
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "function": "va_macro_dec_mode_put",
            "file": "sound/soc/codecs/lpass-va-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@966408e37d84b762d11978b7bfb03fff0c6222ad",
        "digest": {
            "length": 299.0,
            "function_hash": "32002825483043556991894944102630004613"
        },
        "deprecated": false
    },
    {
        "id": "CVE-2022-49251-eaeed724",
        "signature_type": "Line",
        "signature_version": "v1",
        "target": {
            "file": "sound/soc/codecs/lpass-va-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a799972a283ab4ec031041304d7e2d34e1a16eb",
        "digest": {
            "line_hashes": [
                "256450797273327066955635997867489103611",
                "325103228509568349448818350861465538067",
                "34539727049006205660538826158212851473",
                "335404986991163114828754273633984867503",
                "199836211010607633919114459108074431438",
                "317443650529376170446551511227411989734",
                "72105163801344287295761281027035176318",
                "256039788105560110944980999089345514866"
            ],
            "threshold": 0.9
        },
        "deprecated": false
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.33
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.16.19
Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
5.17.2