{"id":"CVE-2023-53554","state":"PUBLISHED","title":"staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext()","description":"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.","publishedAt":"2025-10-04T15:16:59.749Z","updatedAt":"2026-08-05T09:14:46.814Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"9496fb96ddeb740dc6b966f4a7d8dfb8b93921c6","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"663fff29fd613e2b0d30c4138157312ba93c4939","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"5373a1aa91b2298f9305794b8270cf9896be96b6","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"caac4b6c15b66feae4d83f602e1e46f124540202","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"baf420e30364ef9efe3e29a5c0e01e612aebf3fe","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"7ae9f55a495077f838bab466411ee6f38574df9b","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"b1b04b56745bc79286c80aa876fabfab1e08ebf1","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"5f1c7031e044cb2fba82836d55cc235e2ad619dc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/ks7010/ks_wlan_net.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.12","versionType":"semver"},{"version":"4.14.322","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.291","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.253","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.190","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.124","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.43","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.8","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/ks7010/ks_wlan_net.c"]}],"references":["https://git.kernel.org/stable/c/9496fb96ddeb740dc6b966f4a7d8dfb8b93921c6","https://git.kernel.org/stable/c/663fff29fd613e2b0d30c4138157312ba93c4939","https://git.kernel.org/stable/c/5373a1aa91b2298f9305794b8270cf9896be96b6","https://git.kernel.org/stable/c/caac4b6c15b66feae4d83f602e1e46f124540202","https://git.kernel.org/stable/c/baf420e30364ef9efe3e29a5c0e01e612aebf3fe","https://git.kernel.org/stable/c/7ae9f55a495077f838bab466411ee6f38574df9b","https://git.kernel.org/stable/c/b1b04b56745bc79286c80aa876fabfab1e08ebf1","https://git.kernel.org/stable/c/5f1c7031e044cb2fba82836d55cc235e2ad619dc"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53554.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53554","state":"PUBLISHED","datePublished":"2025-10-04T15:16:59.749Z","dateUpdated":"2026-08-05T09:14:46.814Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-10-04T15:14:15.922Z"},"containers":{"cna":{"title":"staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext()","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"9496fb96ddeb740dc6b966f4a7d8dfb8b93921c6","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"663fff29fd613e2b0d30c4138157312ba93c4939","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"5373a1aa91b2298f9305794b8270cf9896be96b6","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"caac4b6c15b66feae4d83f602e1e46f124540202","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"baf420e30364ef9efe3e29a5c0e01e612aebf3fe","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"7ae9f55a495077f838bab466411ee6f38574df9b","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"b1b04b56745bc79286c80aa876fabfab1e08ebf1","versionType":"git"},{"version":"b121d84882b97b8668be0b95e9ba50cfd01aa0f1","status":"affected","lessThan":"5f1c7031e044cb2fba82836d55cc235e2ad619dc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/ks7010/ks_wlan_net.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.12","versionType":"semver"},{"version":"4.14.322","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.291","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.253","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.190","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.124","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.43","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.8","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/ks7010/ks_wlan_net.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9496fb96ddeb740dc6b966f4a7d8dfb8b93921c6"},{"url":"https://git.kernel.org/stable/c/663fff29fd613e2b0d30c4138157312ba93c4939"},{"url":"https://git.kernel.org/stable/c/5373a1aa91b2298f9305794b8270cf9896be96b6"},{"url":"https://git.kernel.org/stable/c/caac4b6c15b66feae4d83f602e1e46f124540202"},{"url":"https://git.kernel.org/stable/c/baf420e30364ef9efe3e29a5c0e01e612aebf3fe"},{"url":"https://git.kernel.org/stable/c/7ae9f55a495077f838bab466411ee6f38574df9b"},{"url":"https://git.kernel.org/stable/c/b1b04b56745bc79286c80aa876fabfab1e08ebf1"},{"url":"https://git.kernel.org/stable/c/5f1c7031e044cb2fba82836d55cc235e2ad619dc"}],"metrics":[{"cvssV3_1":{"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"},"scenarios":[{"lang":"en","value":"AV:L - The only entry point is the local `ioctl(SIOCSIWENCODEEXT)` wireless-extensions path on the ks7010 net_device; no remote or adjacent-network peer data reaches `ks_wlan_set_encode_ext()`. Requires a local process holding an AF_INET/AF_PACKET socket on the host.\nAC:L - Every input to the vulnerable `memcpy` — `key_len`, the key payload, `alg`, `ext_flags` and the key index — is supplied directly by the attacker in a single ioctl, with no race to win and no memory layout the attacker cannot groom beforehand. The `SLP_SLEEP` early-return guard is itself settable by the attacker through the driver's own private ioctl.\nPR:L - `wext_permission_check()` requires CAP_NET_ADMIN, but that is a delegable capability routinely held by non-root network/WiFi management daemons (the wpa_supplicant-style model on the embedded and handheld devices this SDIO driver targets), not full administrative control of the system. Choosing the higher-severity option where the boundary between a confined capability holder and true root is deployment-dependent.\nUI:N - The attacker issues the ioctl directly against an existing ks7010 interface; no victim action, no file to open, nothing to mount. The interface merely has to be present and registered.\nS:U - The overflow corrupts kernel heap adjacent to the net_device private data and stays entirely within the kernel's own security authority. There is no hypervisor, IOMMU, or sandbox boundary crossed.\nC:H - The oversized copy reads far past the 104-byte `extra` slab allocation, pulling adjacent kernel heap contents into `key->key_val`, from where they are shipped to the device via the SME_SET_KEY request. The resulting heap corruption is also leverageable into a general kernel-memory read primitive.\nI:H - An unbounded `__u16` length turns this into an out-of-bounds write of up to ~65471 bytes past a 64-byte buffer inside `netdev_priv()`, with the leading bytes fully attacker-chosen. That is a classic controllable heap overflow suitable for overwriting adjacent objects and hijacking control flow.\nA:H - Overwriting tens of kilobytes of slab memory past `struct wpa_key` reliably destroys neighbouring allocations and slab metadata, producing an oops or panic. Any unsuccessful exploitation attempt still crashes the kernel."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:14:46.814Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"4.14.322"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"4.19.291"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"5.4.253"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"5.10.190"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"5.15.124"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"6.1.43"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"6.4.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"6.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}