# CVE-2022-50279: wifi: rtlwifi: Fix global-out-of-bounds bug in \_rtl8812ae\_phy\_set\_txpower\_limit()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-30)
- **CWE:** CWE-125
- **Published:** 2025-09-15T14:21:16.051Z
- **Modified:** 2026-11-05T20:17:31.977Z

## Who should check

- Anyone running Linux \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< fc3442247716fc426bbcf62ed65e086e48a6d44f; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 28ea268d95e57cdf6394a058f0d854206d478772; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 1e950b9a841bc96e98ee25680d5c7aa305120be1; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 0c962dcd6bf64b78eaffc09e497a2beb4e48bc32; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< f1fe40120de6ad4ffa8299fde035a5feba10d4fb; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 057b52461dc005ecd85a3e4998913b1492ec0f72; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 117dbeda22ec5ea0918254d03b540ef8b8a64d53
- Anyone running Linux 3.18

## Description

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.

## Affected and fixed versions

- Linux: \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< fc3442247716fc426bbcf62ed65e086e48a6d44f; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 28ea268d95e57cdf6394a058f0d854206d478772; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 1e950b9a841bc96e98ee25680d5c7aa305120be1; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 0c962dcd6bf64b78eaffc09e497a2beb4e48bc32; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< f1fe40120de6ad4ffa8299fde035a5feba10d4fb; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 057b52461dc005ecd85a3e4998913b1492ec0f72; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 117dbeda22ec5ea0918254d03b540ef8b8a64d53 (cvelist)
- Linux: 3.18 (cvelist)

## Mitigation

- Upgrade Linux to 117dbeda22ec5ea0918254d03b540ef8b8a64d53 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50279. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50279.md
Affected: Linux >= 21e4b0726dc671c423e2dc9a85364716219c4502, < fc3442247716fc426bbcf62ed65e086e48a6d44f; >= 21e4b0726dc671c423e2dc9a85364716219c4502, < 28ea268d95e57cdf6394a058f0d854206d478772; >= 21e4b0726dc671c423e2dc9a85364716219c4502, < 1e950b9a841bc96e98ee25680d5c7aa305120be1; >= 21e4b0726dc671c423e2dc9…
Fixed in: Linux 28ea268d95e57cdf6394a058f0d854206d478772, Linux 1e950b9a841bc96e98ee25680d5c7aa305120be1, Linux 0c962dcd6bf64b78eaffc09e497a2beb4e48bc32, Linux 057b52461dc005ecd85a3e4998913b1492ec0f72, Linux 117dbeda22ec5ea0918254d03b540ef8b8a64d53

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50279 being exploited?

There is no confirmed exploitation: CVE-2022-50279 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-30).

### How serious is CVE-2022-50279?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50279?

Linux \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< fc3442247716fc426bbcf62ed65e086e48a6d44f; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 28ea268d95e57cdf6394a058f0d854206d478772; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 1e950b9a841bc96e98ee25680d5c7aa305120be1; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 0c962dcd6bf64b78eaffc09e497a2beb4e48bc32; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< f1fe40120de6ad4ffa8299fde035a5feba10d4fb; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 057b52461dc005ecd85a3e4998913b1492ec0f72; \>= 21e4b0726dc671c423e2dc9a85364716219c4502, \< 117dbeda22ec5ea0918254d03b540ef8b8a64d53; Linux 3.18.

### Is there a fix for CVE-2022-50279?

Yes. Fixed in Linux 28ea268d95e57cdf6394a058f0d854206d478772, Linux 1e950b9a841bc96e98ee25680d5c7aa305120be1, Linux 0c962dcd6bf64b78eaffc09e497a2beb4e48bc32, Linux 057b52461dc005ecd85a3e4998913b1492ec0f72, Linux 117dbeda22ec5ea0918254d03b540ef8b8a64d53. Upgrade Linux to 117dbeda22ec5ea0918254d03b540ef8b8a64d53 or later.

### How do I check if I'm affected by CVE-2022-50279?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/fc3442247716fc426bbcf62ed65e086e48a6d44f>
- patch: <https://git.kernel.org/stable/c/28ea268d95e57cdf6394a058f0d854206d478772>
- patch: <https://git.kernel.org/stable/c/1e950b9a841bc96e98ee25680d5c7aa305120be1>
- patch: <https://git.kernel.org/stable/c/0c962dcd6bf64b78eaffc09e497a2beb4e48bc32>
- patch: <https://git.kernel.org/stable/c/f1fe40120de6ad4ffa8299fde035a5feba10d4fb>
- patch: <https://git.kernel.org/stable/c/057b52461dc005ecd85a3e4998913b1492ec0f72>
- patch: <https://git.kernel.org/stable/c/117dbeda22ec5ea0918254d03b540ef8b8a64d53>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50279>

HTML: <https://flawdb.com/CVE-2022-50279> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50279>
