CVE-2023-52827

Source
https://cve.org/CVERecord?id=CVE-2023-52827
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52827.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-52827
Downstream
Related
Published
2024-05-21T15:31:30.837Z
Modified
2026-02-24T09:45:09.070636Z
Summary
wifi: ath12k: fix possible out-of-bound read in ath12k_htt_pull_ppdu_stats()
Details

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

wifi: ath12k: fix possible out-of-bound read in ath12khttpullppdustats()

len is extracted from HTT message and could be an unexpected value in case errors happen, so add validation before using to avoid possible out-of-bound read in the following message iteration and parsing.

The same issue also applies to ppduinfo->ppdustats.common.num_users, so validate it before using too.

These are found during code review.

Compile test only.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52827.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
d889913205cf7ebda905b1e62c5867ed4e39f6c2
Fixed
79527c21a3ce04cffc35ea54f74ee087e532be57
Fixed
c9e44111da221246efb2e623ae1be40a5cf6542c
Fixed
1bc44a505a229bb1dd4957e11aa594edeea3690e

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

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52827.json"
vanir_signatures
[
    {
        "id": "CVE-2023-52827-0665ae24",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "69930878154896360865369186898854435469",
                "61989927265990703554947771105382817760",
                "323343625620709928788445620811985613224",
                "190656907364008467055208528435903508618",
                "130868084004683872895034586343915516278",
                "133974039723422845050233793042816722169",
                "17247259451304303193935240542871144570"
            ]
        },
        "signature_type": "Line",
        "target": {
            "file": "drivers/net/wireless/ath/ath12k/dp_rx.c"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1bc44a505a229bb1dd4957e11aa594edeea3690e",
        "deprecated": false
    },
    {
        "id": "CVE-2023-52827-60821c4b",
        "digest": {
            "length": 1997.0,
            "function_hash": "122154017226659591712223178071701061699"
        },
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/wireless/ath/ath12k/dp_rx.c",
            "function": "ath12k_htt_pull_ppdu_stats"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1bc44a505a229bb1dd4957e11aa594edeea3690e",
        "deprecated": false
    },
    {
        "id": "CVE-2023-52827-c023095e",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "69930878154896360865369186898854435469",
                "61989927265990703554947771105382817760",
                "323343625620709928788445620811985613224",
                "190656907364008467055208528435903508618",
                "130868084004683872895034586343915516278",
                "133974039723422845050233793042816722169",
                "17247259451304303193935240542871144570"
            ]
        },
        "signature_type": "Line",
        "target": {
            "file": "drivers/net/wireless/ath/ath12k/dp_rx.c"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@79527c21a3ce04cffc35ea54f74ee087e532be57",
        "deprecated": false
    },
    {
        "id": "CVE-2023-52827-cb2cbe0a",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "69930878154896360865369186898854435469",
                "61989927265990703554947771105382817760",
                "323343625620709928788445620811985613224",
                "190656907364008467055208528435903508618",
                "130868084004683872895034586343915516278",
                "133974039723422845050233793042816722169",
                "17247259451304303193935240542871144570"
            ]
        },
        "signature_type": "Line",
        "target": {
            "file": "drivers/net/wireless/ath/ath12k/dp_rx.c"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9e44111da221246efb2e623ae1be40a5cf6542c",
        "deprecated": false
    },
    {
        "id": "CVE-2023-52827-ccffa2e7",
        "digest": {
            "length": 1997.0,
            "function_hash": "122154017226659591712223178071701061699"
        },
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/wireless/ath/ath12k/dp_rx.c",
            "function": "ath12k_htt_pull_ppdu_stats"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9e44111da221246efb2e623ae1be40a5cf6542c",
        "deprecated": false
    },
    {
        "id": "CVE-2023-52827-d47e580e",
        "digest": {
            "length": 1997.0,
            "function_hash": "122154017226659591712223178071701061699"
        },
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/wireless/ath/ath12k/dp_rx.c",
            "function": "ath12k_htt_pull_ppdu_stats"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@79527c21a3ce04cffc35ea54f74ee087e532be57",
        "deprecated": false
    }
]

Git / github.com/gregkh/linux

Affected ranges

Type
GIT
Repo
https://github.com/gregkh/linux
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Fixed

Affected versions

v6.*
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.1
v6.6.2

Database specific

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