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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52827.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52827.json"
[
{
"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
}
]