CVE-2023-52829

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-52829
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52829.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-52829
Downstream
Related
Published
2024-05-21T15:31:32Z
Modified
2025-10-21T14:52:15.821963Z
Severity
  • 6.2 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
wifi: ath12k: fix possible out-of-bound write in ath12k_wmi_ext_hal_reg_caps()
Details

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

wifi: ath12k: fix possible out-of-bound write in ath12kwmiexthalreg_caps()

regcap.phyid is extracted from WMI event and could be an unexpected value in case some errors happen. As a result out-of-bound write may occur to soc->halregcap. Fix it by validating regcap.phyid before using it.

This is found during code review.

Compile tested only.

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
d889913205cf7ebda905b1e62c5867ed4e39f6c2
Fixed
dfe13eaab043130f90dd3d57c7d88577c04adc97
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d889913205cf7ebda905b1e62c5867ed4e39f6c2
Fixed
4dd0547e8b45faf6f95373be5436b66cde326c0e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d889913205cf7ebda905b1e62c5867ed4e39f6c2
Fixed
b302dce3d9edea5b93d1902a541684a967f3c63c

Affected versions

v6.*

v6.1
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.2
v6.2-rc1
v6.2-rc2
v6.2-rc3
v6.2-rc4
v6.2-rc5
v6.2-rc6
v6.2-rc7
v6.2-rc8
v6.3
v6.3-rc1
v6.3-rc2
v6.3-rc3
v6.3-rc4
v6.3-rc5
v6.3-rc6
v6.3-rc7
v6.4
v6.4-rc1
v6.4-rc2
v6.4-rc3
v6.4-rc4
v6.4-rc5
v6.4-rc6
v6.4-rc7
v6.5
v6.5-rc1
v6.5-rc2
v6.5-rc3
v6.5-rc4
v6.5-rc5
v6.5-rc6
v6.5-rc7
v6.5.1
v6.5.10
v6.5.11
v6.5.12
v6.5.2
v6.5.3
v6.5.4
v6.5.5
v6.5.6
v6.5.7
v6.5.8
v6.5.9
v6.6
v6.6-rc1
v6.6-rc2
v6.6-rc3
v6.6-rc4
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.6.1
v6.6.2

Database specific

vanir_signatures

[
    {
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4dd0547e8b45faf6f95373be5436b66cde326c0e",
        "digest": {
            "line_hashes": [
                "50277145134936533921689300327704154319",
                "39918286408020834604216048217485398929",
                "29607160164172624814113172613464258198",
                "10429981067607311641693936976068558169"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/net/wireless/ath/ath12k/wmi.c"
        },
        "id": "CVE-2023-52829-1abaf953",
        "signature_version": "v1",
        "signature_type": "Line"
    },
    {
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dfe13eaab043130f90dd3d57c7d88577c04adc97",
        "digest": {
            "line_hashes": [
                "50277145134936533921689300327704154319",
                "39918286408020834604216048217485398929",
                "29607160164172624814113172613464258198",
                "10429981067607311641693936976068558169"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/net/wireless/ath/ath12k/wmi.c"
        },
        "id": "CVE-2023-52829-40a64129",
        "signature_version": "v1",
        "signature_type": "Line"
    },
    {
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b302dce3d9edea5b93d1902a541684a967f3c63c",
        "digest": {
            "function_hash": "41660808699520197773945711651374123764",
            "length": 730.0
        },
        "target": {
            "function": "ath12k_wmi_ext_hal_reg_caps",
            "file": "drivers/net/wireless/ath/ath12k/wmi.c"
        },
        "id": "CVE-2023-52829-4fe00f1d",
        "signature_version": "v1",
        "signature_type": "Function"
    },
    {
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4dd0547e8b45faf6f95373be5436b66cde326c0e",
        "digest": {
            "function_hash": "41660808699520197773945711651374123764",
            "length": 730.0
        },
        "target": {
            "function": "ath12k_wmi_ext_hal_reg_caps",
            "file": "drivers/net/wireless/ath/ath12k/wmi.c"
        },
        "id": "CVE-2023-52829-9a6ab317",
        "signature_version": "v1",
        "signature_type": "Function"
    },
    {
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b302dce3d9edea5b93d1902a541684a967f3c63c",
        "digest": {
            "line_hashes": [
                "50277145134936533921689300327704154319",
                "39918286408020834604216048217485398929",
                "29607160164172624814113172613464258198",
                "10429981067607311641693936976068558169"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/net/wireless/ath/ath12k/wmi.c"
        },
        "id": "CVE-2023-52829-a6e452ec",
        "signature_version": "v1",
        "signature_type": "Line"
    },
    {
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dfe13eaab043130f90dd3d57c7d88577c04adc97",
        "digest": {
            "function_hash": "41660808699520197773945711651374123764",
            "length": 730.0
        },
        "target": {
            "function": "ath12k_wmi_ext_hal_reg_caps",
            "file": "drivers/net/wireless/ath/ath12k/wmi.c"
        },
        "id": "CVE-2023-52829-bc6e08af",
        "signature_version": "v1",
        "signature_type": "Function"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.3.0
Fixed
6.5.13
Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.6.3