CVE-2022-49252

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

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

ASoC: codecs: rx-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
4f692926f562ff48abfcca6b16f36ff8d57473b6
Fixed
eb15c6ea692fd88d70698d874d9a0d667fb4cde9
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4f692926f562ff48abfcca6b16f36ff8d57473b6
Fixed
7e3629e256d1cabf801d00050550ade4d036cafe
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4f692926f562ff48abfcca6b16f36ff8d57473b6
Fixed
aed43e92e4b9187029903880d5db608f7fa1c53c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4f692926f562ff48abfcca6b16f36ff8d57473b6
Fixed
bcfe5f76cc4051ea3f9eb5d2c8ea621641f290a5

Affected versions

v5.*

v5.11
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

[
    {
        "signature_version": "v1",
        "digest": {
            "length": 1107.0,
            "function_hash": "294035516121372288954787378705683072500"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-39b50edc",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_mux_put"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e3629e256d1cabf801d00050550ade4d036cafe",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 201.0,
            "function_hash": "147594374870808650987736590199651287032"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-402e1301",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_put_hph_pwr_mode"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e3629e256d1cabf801d00050550ade4d036cafe",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 260.0,
            "function_hash": "288536281368125793480701433883276852329"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-46ecf031",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_mux_get"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aed43e92e4b9187029903880d5db608f7fa1c53c",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "310339237615984308860243578126806144161",
                "107599390818231534200107372005500769947",
                "289798831634908812008300334718961724279",
                "204696508868882206511433154984393426016",
                "100168590700847413244081410383845935389",
                "223186700072763354487082448091426898955",
                "331908733748307934500779415284907512109",
                "110814114839696074185615160872901509597",
                "310728800625944529010101830667474926758",
                "175155450075766123263230020049127401344",
                "321856854675296580169690841950857465273",
                "306790310759699479631265781936189799432",
                "277780984971475062785015059479568969750",
                "40703198618548428256144981512943257345",
                "322774568898150308034932775022778647517",
                "249275216982133560858348751538951780021"
            ]
        },
        "signature_type": "Line",
        "id": "CVE-2022-49252-4a8e2d9a",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aed43e92e4b9187029903880d5db608f7fa1c53c",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 1107.0,
            "function_hash": "294035516121372288954787378705683072500"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-5917e55a",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_mux_put"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb15c6ea692fd88d70698d874d9a0d667fb4cde9",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 201.0,
            "function_hash": "106268450104018711788023726919770277003"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-611e6338",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_get_hph_pwr_mode"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e3629e256d1cabf801d00050550ade4d036cafe",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 260.0,
            "function_hash": "288536281368125793480701433883276852329"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-6f2ce3da",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_mux_get"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bcfe5f76cc4051ea3f9eb5d2c8ea621641f290a5",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 201.0,
            "function_hash": "147594374870808650987736590199651287032"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-77b4fd17",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_put_hph_pwr_mode"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb15c6ea692fd88d70698d874d9a0d667fb4cde9",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 201.0,
            "function_hash": "106268450104018711788023726919770277003"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-787bc77f",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_get_hph_pwr_mode"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb15c6ea692fd88d70698d874d9a0d667fb4cde9",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "310339237615984308860243578126806144161",
                "107599390818231534200107372005500769947",
                "289798831634908812008300334718961724279",
                "204696508868882206511433154984393426016",
                "100168590700847413244081410383845935389",
                "223186700072763354487082448091426898955",
                "331908733748307934500779415284907512109",
                "110814114839696074185615160872901509597",
                "310728800625944529010101830667474926758",
                "175155450075766123263230020049127401344",
                "321856854675296580169690841950857465273",
                "306790310759699479631265781936189799432",
                "277780984971475062785015059479568969750",
                "40703198618548428256144981512943257345",
                "322774568898150308034932775022778647517",
                "249275216982133560858348751538951780021"
            ]
        },
        "signature_type": "Line",
        "id": "CVE-2022-49252-789fe231",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e3629e256d1cabf801d00050550ade4d036cafe",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 1107.0,
            "function_hash": "294035516121372288954787378705683072500"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-7b339aae",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_mux_put"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bcfe5f76cc4051ea3f9eb5d2c8ea621641f290a5",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "310339237615984308860243578126806144161",
                "107599390818231534200107372005500769947",
                "289798831634908812008300334718961724279",
                "204696508868882206511433154984393426016",
                "100168590700847413244081410383845935389",
                "223186700072763354487082448091426898955",
                "331908733748307934500779415284907512109",
                "110814114839696074185615160872901509597",
                "310728800625944529010101830667474926758",
                "175155450075766123263230020049127401344",
                "321856854675296580169690841950857465273",
                "306790310759699479631265781936189799432",
                "277780984971475062785015059479568969750",
                "40703198618548428256144981512943257345",
                "322774568898150308034932775022778647517",
                "249275216982133560858348751538951780021"
            ]
        },
        "signature_type": "Line",
        "id": "CVE-2022-49252-91d319f0",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bcfe5f76cc4051ea3f9eb5d2c8ea621641f290a5",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 201.0,
            "function_hash": "106268450104018711788023726919770277003"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-a1e67995",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_get_hph_pwr_mode"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aed43e92e4b9187029903880d5db608f7fa1c53c",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 260.0,
            "function_hash": "288536281368125793480701433883276852329"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-a2ab8868",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_mux_get"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb15c6ea692fd88d70698d874d9a0d667fb4cde9",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 1107.0,
            "function_hash": "294035516121372288954787378705683072500"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-b8081187",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_mux_put"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aed43e92e4b9187029903880d5db608f7fa1c53c",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "310339237615984308860243578126806144161",
                "107599390818231534200107372005500769947",
                "289798831634908812008300334718961724279",
                "204696508868882206511433154984393426016",
                "100168590700847413244081410383845935389",
                "223186700072763354487082448091426898955",
                "331908733748307934500779415284907512109",
                "110814114839696074185615160872901509597",
                "310728800625944529010101830667474926758",
                "175155450075766123263230020049127401344",
                "321856854675296580169690841950857465273",
                "306790310759699479631265781936189799432",
                "277780984971475062785015059479568969750",
                "40703198618548428256144981512943257345",
                "322774568898150308034932775022778647517",
                "249275216982133560858348751538951780021"
            ]
        },
        "signature_type": "Line",
        "id": "CVE-2022-49252-b98dc106",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb15c6ea692fd88d70698d874d9a0d667fb4cde9",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 201.0,
            "function_hash": "147594374870808650987736590199651287032"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-bc9a3fbf",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_put_hph_pwr_mode"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bcfe5f76cc4051ea3f9eb5d2c8ea621641f290a5",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 201.0,
            "function_hash": "147594374870808650987736590199651287032"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-c6e576f5",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_put_hph_pwr_mode"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aed43e92e4b9187029903880d5db608f7fa1c53c",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 201.0,
            "function_hash": "106268450104018711788023726919770277003"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-ce542996",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_get_hph_pwr_mode"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bcfe5f76cc4051ea3f9eb5d2c8ea621641f290a5",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 260.0,
            "function_hash": "288536281368125793480701433883276852329"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49252-ea56b066",
        "target": {
            "file": "sound/soc/codecs/lpass-rx-macro.c",
            "function": "rx_macro_mux_get"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e3629e256d1cabf801d00050550ade4d036cafe",
        "deprecated": false
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.12.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