wifi: rtw89: Fix array index mistake in rtw89_sta_info_get_iter() (Linux Linux)

CVE-2024-43842
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: wifi: rtw89: Fix array index mistake in rtw89_sta_info_get_iter() In rtw89_sta_info_get_iter() 'status->he_gi' is compared to array size. But then 'rate->he_gi' is used as array index instead of 'status->he_gi'. This can lead to go beyond array boundaries in case of 'rate->he_gi' is not equal to 'status->he_gi' and is bigger than array size. Looks like "copy-paste" mistake. Fix this mistake by replacing 'rate->he_gi' with 'status->he_gi'. Found by Linux Verification Center (linuxtesting.org) with SVACE.

Weaknesses (CWE)

  • CWE-129 — Improper Validation of Array Index

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd < a2a095c08b95372d6d0c5819b77f071af5e75366 ; affected e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd < 7a0edc3d83aff3a48813d78c9cad9daf38decc74 ; affected e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd < 96ae4de5bc4c8ba39fd072369398f59495b73f58 ; affected e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd < 85099c7ce4f9e64c66aa397cd9a37473637ab891
Linux · Linuxaffected 5.16 ; unaffected 0 < 5.16 ; unaffected 6.1.103 ≤ 6.1.* ; unaffected 6.6.44 ≤ 6.6.* ; unaffected 6.10.3 ≤ 6.10.* ; unaffected 6.11 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD