cveboard Feed RSS

CVE-2022-50279

CVE.org · Publicado

Histórico de CVEsJSONInstruções para IA

Status do registro
Publicado
Ano do identificador (não é o ano de publicação)
2022
Publicação na fonte
Atualização na fonte
Importado pelo cveboard
Snapshot da fonte
cve_2026-10-24_midnight_baseline ·

Texto simples

Texto da CNA em inglês

wifi: rtlwifi: Fix global-out-of-bounds bug in _rtl8812ae_phy_set_txpower_limit()

In the Linux kernel, the following vulnerability has been resolved: wifi: rtlwifi: Fix global-out-of-bounds bug in _rtl8812ae_phy_set_txpower_limit() There is a global-out-of-bounds reported by KASAN: BUG: KASAN: global-out-of-bounds in _rtl8812ae_eq_n_byte.part.0+0x3d/0x84 [rtl8821ae] Read of size 1 at addr ffffffffa0773c43 by task NetworkManager/411 CPU: 6 PID: 411 Comm: NetworkManager Tainted: G D 6.1.0-rc8+ #144 e15588508517267d37 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), Call Trace: <TASK> ... kasan_report+0xbb/0x1c0 _rtl8812ae_eq_n_byte.part.0+0x3d/0x84 [rtl8821ae] rtl8821ae_phy_bb_config.cold+0x346/0x641 [rtl8821ae] rtl8821ae_hw_init+0x1f5e/0x79b0 [rtl8821ae] ... </TASK> The root cause of the problem is that the comparison order of "prate_section" in _rtl8812ae_phy_set_txpower_limit() is wrong. The _rtl8812ae_eq_n_byte() is used to compare the first n bytes of the two strings from tail to head, which causes the problem. In the _rtl8812ae_phy_set_txpower_limit(), it was originally intended to meet this requirement by carefully designing the comparison order. For example, "pregulation" and "pbandwidth" are compared in order of length from small to large, first is 3 and last is 4. However, the comparison order of "prate_section" dose not obey such order requirement, therefore when "prate_section" is "HT", when comparing from tail to head, it will lead to access out of bounds in _rtl8812ae_eq_n_byte(). As mentioned above, the _rtl8812ae_eq_n_byte() has the same function as strcmp(), so just strcmp() is enough. Fix it by removing _rtl8812ae_eq_n_byte() and use strcmp() barely. Although it can be fixed by adjusting the comparison order of "prate_section", this may cause the value of "rate_section" to not be from 0 to 5. In addition, commit "21e4b0726dc6" not only moved driver from staging to regular tree, but also added setting txpower limit function during the driver config phase, so the problem was introduced by this commit.

Fatos de produtos e versões por escopo

Dados de correção desconhecidos; nenhuma versão corrigida é deduzida aqui. Dados ausentes não comprovam ausência de correção.

Exploração desconhecida; este catálogo não avalia exploração.

Linux

Fornecedor
Linux
Produto
Linux
Plataformas
Desconhecido
Status padrão
unaffected
Linux · Fatos de produtos e versões por escopo
Versão (version)Status (status)Esquema de versões (versionType)Fim exclusivo (lessThan)Fim inclusivo (lessThanOrEqual)Mudanças de status (at → status)
21e4b0726dc671c423e2dc9a85364716219c4502affectedgitfc3442247716fc426bbcf62ed65e086e48a6d44fIndisponívelNenhuma listada
21e4b0726dc671c423e2dc9a85364716219c4502affectedgit28ea268d95e57cdf6394a058f0d854206d478772IndisponívelNenhuma listada
21e4b0726dc671c423e2dc9a85364716219c4502affectedgit1e950b9a841bc96e98ee25680d5c7aa305120be1IndisponívelNenhuma listada
21e4b0726dc671c423e2dc9a85364716219c4502affectedgit0c962dcd6bf64b78eaffc09e497a2beb4e48bc32IndisponívelNenhuma listada
21e4b0726dc671c423e2dc9a85364716219c4502affectedgitf1fe40120de6ad4ffa8299fde035a5feba10d4fbIndisponívelNenhuma listada
21e4b0726dc671c423e2dc9a85364716219c4502affectedgit057b52461dc005ecd85a3e4998913b1492ec0f72IndisponívelNenhuma listada
21e4b0726dc671c423e2dc9a85364716219c4502affectedgit117dbeda22ec5ea0918254d03b540ef8b8a64d53IndisponívelNenhuma listada

Linux

Fornecedor
Linux
Produto
Linux
Plataformas
Desconhecido
Status padrão
affected
Linux · Fatos de produtos e versões por escopo
Versão (version)Status (status)Esquema de versões (versionType)Fim exclusivo (lessThan)Fim inclusivo (lessThanOrEqual)Mudanças de status (at → status)
3.18affectedIndisponívelIndisponívelIndisponívelNenhuma listada
0unaffectedsemver3.18IndisponívelNenhuma listada
4.19.276unaffectedsemverIndisponível4.19.*Nenhuma listada
5.4.235unaffectedsemverIndisponível5.4.*Nenhuma listada
5.10.173unaffectedsemverIndisponível5.10.*Nenhuma listada
5.15.99unaffectedsemverIndisponível5.15.*Nenhuma listada
6.1.16unaffectedsemverIndisponível6.1.*Nenhuma listada
6.2.3unaffectedsemverIndisponível6.2.*Nenhuma listada
6.3unaffectedoriginal_commit_for_fixIndisponível*Nenhuma listada