CVE-2022-49405 (GCVE-0-2022-49405)

Vulnerability from cvelistv5 – Published: 2025-02-26 02:12 – Updated: 2026-08-05 08:55
VLAI
Title
staging: r8188eu: prevent ->Ssid overflow in rtw_wx_set_scan()
Summary
In the Linux kernel, the following vulnerability has been resolved: staging: r8188eu: prevent ->Ssid overflow in rtw_wx_set_scan() This code has a check to prevent read overflow but it needs another check to prevent writing beyond the end of the ->Ssid[] array.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 2b42bd58b32155a1be4dd78991845dec05aaef9e , < ac2eab7de458f5e1210ce1237afab40a307075c8 (git)
Affected: 2b42bd58b32155a1be4dd78991845dec05aaef9e , < c4bd6b72df4f01aa866ceb298466d6d07a6bd525 (git)
Affected: 2b42bd58b32155a1be4dd78991845dec05aaef9e , < 476bfda0be0f9669add92bff604ca78226cf53d1 (git)
Affected: 2b42bd58b32155a1be4dd78991845dec05aaef9e , < bc10916e890948d8927a5c8c40fb5dc44be5e1b8 (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.15
Unaffected: 0 , < 5.15 (semver)
Unaffected: 5.15.46 , ≤ 5.15.* (semver)
Unaffected: 5.17.14 , ≤ 5.17.* (semver)
Unaffected: 5.18.3 , ≤ 5.18.* (semver)
Unaffected: 5.19 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/staging/r8188eu/os_dep/ioctl_linux.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ac2eab7de458f5e1210ce1237afab40a307075c8",
              "status": "affected",
              "version": "2b42bd58b32155a1be4dd78991845dec05aaef9e",
              "versionType": "git"
            },
            {
              "lessThan": "c4bd6b72df4f01aa866ceb298466d6d07a6bd525",
              "status": "affected",
              "version": "2b42bd58b32155a1be4dd78991845dec05aaef9e",
              "versionType": "git"
            },
            {
              "lessThan": "476bfda0be0f9669add92bff604ca78226cf53d1",
              "status": "affected",
              "version": "2b42bd58b32155a1be4dd78991845dec05aaef9e",
              "versionType": "git"
            },
            {
              "lessThan": "bc10916e890948d8927a5c8c40fb5dc44be5e1b8",
              "status": "affected",
              "version": "2b42bd58b32155a1be4dd78991845dec05aaef9e",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/staging/r8188eu/os_dep/ioctl_linux.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.15"
            },
            {
              "lessThan": "5.15",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.46",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.17.*",
              "status": "unaffected",
              "version": "5.17.14",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.18.*",
              "status": "unaffected",
              "version": "5.18.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.19",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.46",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.17.14",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18.3",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: r8188eu: prevent -\u003eSsid overflow in rtw_wx_set_scan()\n\nThis code has a check to prevent read overflow but it needs another\ncheck to prevent writing beyond the end of the -\u003eSsid[] array."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The overflow is reached only via local wireless-extensions ioctls (SIOCSIWSCAN or SIOCSIWPRIV\u2192rtw_wx_set_priv) that deliver an attacker-crafted CSCAN buffer into rtw_wx_set_scan(); no received WiFi frame or remote peer path invokes this parser.\nAC:L - The attacker fully controls the CSCAN section type, sec_len, and payload in a single ioctl, and the missing Ssid[32] bound check makes the stack overflow deterministic with no race or attacker-uncontrollable condition.\nPR:L - wext_permission_check() requires capable(CAP_NET_ADMIN), a capability routinely held by non-root WiFi management daemons (wpa_supplicant/NetworkManager) on the phones and embedded devices this USB RTL8188EU driver targets, and this CNA consistently scores CAP_NET_ADMIN-gated WEXT bugs as PR:L.\nUI:N - The attacker issues the ioctl directly against an already-registered r8188eu interface; no victim action such as mounting media or opening a crafted file is required.\nS:U - The stack overflow corrupts kernel stack/memory within the same host kernel security authority and does not cross a VM, IOMMU, or sandbox boundary.\nC:H - Attacker-controlled out-of-bounds stack writes (and unbounded ssid_index growth past RTW_SSID_SCAN_AMOUNT) are memory-corruption primitives that can be leveraged for arbitrary kernel memory disclosure under standard stack-smash exploitation.\nI:H - This is a classic stack buffer overflow of Ssid[32] with attacker-chosen length and contents, enabling overwrite of adjacent stack state and return addresses for arbitrary write / control-flow hijack.\nA:H - Corrupting the on-stack ssid[RTW_SSID_SCAN_AMOUNT] array and frames beyond it reliably produces kernel oops/panic even without full code-execution exploitation."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:55:02.085Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ac2eab7de458f5e1210ce1237afab40a307075c8"
        },
        {
          "url": "https://git.kernel.org/stable/c/c4bd6b72df4f01aa866ceb298466d6d07a6bd525"
        },
        {
          "url": "https://git.kernel.org/stable/c/476bfda0be0f9669add92bff604ca78226cf53d1"
        },
        {
          "url": "https://git.kernel.org/stable/c/bc10916e890948d8927a5c8c40fb5dc44be5e1b8"
        }
      ],
      "title": "staging: r8188eu: prevent -\u003eSsid overflow in rtw_wx_set_scan()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49405",
    "datePublished": "2025-02-26T02:12:30.617Z",
    "dateReserved": "2025-02-26T02:08:31.566Z",
    "dateUpdated": "2026-08-05T08:55:02.085Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-49405",
      "date": "2026-08-27",
      "epss": "0.0027",
      "percentile": "0.18736"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-49405\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-02-26T07:01:17.037\",\"lastModified\":\"2026-08-04T10:17:46.787\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nstaging: r8188eu: prevent -\u003eSsid overflow in rtw_wx_set_scan()\\n\\nThis code has a check to prevent read overflow but it needs another\\ncheck to prevent writing beyond the end of the -\u003eSsid[] array.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: staging: r8188eu: prevenir -\u0026gt;Ssid overflow en rtw_wx_set_scan() Este c\u00f3digo tiene una verificaci\u00f3n para prevenir el desbordamiento de lectura, pero necesita otra verificaci\u00f3n para prevenir la escritura m\u00e1s all\u00e1 del final de la matriz -\u0026gt;Ssid[].\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/staging/r8188eu/os_dep/ioctl_linux.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"2b42bd58b32155a1be4dd78991845dec05aaef9e\",\"lessThan\":\"ac2eab7de458f5e1210ce1237afab40a307075c8\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2b42bd58b32155a1be4dd78991845dec05aaef9e\",\"lessThan\":\"c4bd6b72df4f01aa866ceb298466d6d07a6bd525\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2b42bd58b32155a1be4dd78991845dec05aaef9e\",\"lessThan\":\"476bfda0be0f9669add92bff604ca78226cf53d1\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2b42bd58b32155a1be4dd78991845dec05aaef9e\",\"lessThan\":\"bc10916e890948d8927a5c8c40fb5dc44be5e1b8\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/staging/r8188eu/os_dep/ioctl_linux.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.15\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.15\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.46\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.17.14\",\"lessThanOrEqual\":\"5.17.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.18.3\",\"lessThanOrEqual\":\"5.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.19\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"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},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-noinfo\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.15\",\"versionEndExcluding\":\"5.15.46\",\"matchCriteriaId\":\"FA8369C7-8B08-4709-9CE6-2131C7668313\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"5.17.14\",\"matchCriteriaId\":\"15E2DD33-2255-4B76-9C15-04FF8CBAB252\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.18\",\"versionEndExcluding\":\"5.18.3\",\"matchCriteriaId\":\"8E122216-2E9E-4B3E-B7B8-D575A45BA3C2\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/476bfda0be0f9669add92bff604ca78226cf53d1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ac2eab7de458f5e1210ce1237afab40a307075c8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/bc10916e890948d8927a5c8c40fb5dc44be5e1b8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/c4bd6b72df4f01aa866ceb298466d6d07a6bd525\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-04T19:44:39+00:00",
      "cve": "CVE-2022-49405",
      "id": "CVE-2022-49405",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: staging: r8188eu: prevent -\u003eSsid overflow in rtw_wx_set_scan()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-49405.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-05-13T15:01:00Z",
      "cve": "CVE-2022-49405",
      "id": "CVE-2022-49405",
      "initial_release_date": "2025-02-27T03:07:26Z",
      "product_status:known_not_affected": "279",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-49405",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2022-49405.json",
      "version": "13"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…