Skip to content
Heist/ feed
High

staging: rtl8723bs: fix OOB read / stack overflow in rtw_get_wps_attr()

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix OOB read / stack overflow in rtw_get_wps_attr() rtw_get_wps_attr() walks WPS attributes inside a WPS IE taken from a wireless management frame. For each candidate attribute it only checks that the fixed 4-byte attribute header (2-byte ID + 2-byte length) fits inside the IE: if (attr_ptr + 4 > wps_ie + wps_ielen) break; u16 attr_id = get_unaligned_be16(attr_ptr); u16 attr_data_len = get_unaligned_be16(attr_ptr + 2); u16 attr_len = attr_data_len + 4; attr_data_len (and therefore attr_len) is read directly from the wire and is never checked against the remaining bytes in the IE before being used as the size of: memcpy(buf_attr, attr_ptr, attr_len); Since attr_len is fully attacker controlled (0 to 65535+4), this is both a heap OOB read of wps_ie, and, more seriously, a stack buffer overflow at several call sites where buf_attr is a single-byte stack variable, e.g. rtw_get_wps_attr_content()'s callers passing WPS_ATTR_SELECTED_REGISTRAR into a stack "u8 sr"/"u8 selected_registrar" (drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c, drivers/staging/rtl8723bs/core/rtw_mlme_ext.c). A crafted WPS IE in a beacon or probe response processed during scanning can therefore smash the stack of the parsing thread. rtw_get_wps_attr_content() itself has no independent length check and simply trusts the attr_len it gets back from rtw_get_wps_attr(), so fixing the bound here also fixes that caller. The "a

Announced Group revision 1
Original source ↗

CVE-2026-90018

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-90018

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "554c0a3abf216c991c5ebddcdb2c08689ecd290b",
        "lessThan": "931640dfcb8cfa08f6cfb46229716d8072356420",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "554c0a3abf216c991c5ebddcdb2c08689ecd290b",
        "lessThan": "3a6457ebf39080b87c712657fdb38f34a24fc3ff",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "554c0a3abf216c991c5ebddcdb2c08689ecd290b",
        "lessThan": "fd5e24ea8373347d0352f153a66e8647337d1b10",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "554c0a3abf216c991c5ebddcdb2c08689ecd290b",
        "lessThan": "a53d1ac9ce63db07943b2b2248111003851fb00f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "554c0a3abf216c991c5ebddcdb2c08689ecd290b",
        "lessThan": "ff61aa3289355dafa811550a1764691cd1f5d33b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "554c0a3abf216c991c5ebddcdb2c08689ecd290b",
        "lessThan": "34f51d196c43a42046d229de5e79025d5ca553ca",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "554c0a3abf216c991c5ebddcdb2c08689ecd290b",
        "lessThan": "99aa998dec83ba180822f70e6d48a514fc81c20d",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/staging/rtl8723bs/core/rtw_ieee80211.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.12"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.12",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.15.221",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.188",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.157",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.110",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.51",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.5",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/staging/rtl8723bs/core/rtw_ieee80211.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-90018

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#36449 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement