{
  "cveId": "CVE-2021-47065",
  "url": "https://patchblox.com/security/cve/CVE-2021-47065",
  "summary": "CVE-2021-47065 is fixed in linux on 1 platform, first by DEBIAN-CVE-2021-47065, released February 29, 2024. It is not reported as exploited. Patch Radar priority: High.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  rtw88: Fix array overrun in rtw_get_tx_power_par...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  rtw88: Fix array overrun in rtw_get_tx_power_params()  Using a kernel with the Undefined Behaviour Sanity Checker (UBSAN) enabled, the following array overrun is logged:  ================================================================================ UBSAN: array-index-out-of-bounds in /home/finger/wireless-drivers-next/drivers/net/wireless/realtek/rtw88/phy.c:1789:34 index 5 is out of range for type \u0027u8 [5]\u0027 CPU: 2 PID: 84 Comm: kworker/u16:3 Tainted: G           O      5.12.0-rc5-00086-gd88bba47038e-dirty #651 Hardware name: TOSHIBA TECRA A50-A/TECRA A50-A, BIOS Version 4.50   09/29/2014 Workqueue: phy0 ieee80211_scan_work [mac80211] Call Trace:  dump_stack\u002B0x64/0x7c  ubsan_epilogue\u002B0x5/0x40  __ubsan_handle_out_of_bounds.cold\u002B0x43/0x48  rtw_get_tx_power_params\u002B0x83a/drivers/net/wireless/realtek/rtw88/0xad0 [rtw_core]  ? rtw_pci_read16\u002B0x20/0x20 [rtw_pci]  ? check_hw_ready\u002B0x50/0x90 [rtw_core]  rtw_phy_get_tx_power_index\u002B0x4d/0xd0 [rtw_core]  rtw_phy_set_tx_power_level\u002B0xee/0x1b0 [rtw_core]  rtw_set_channel\u002B0xab/0x110 [rtw_core]  rtw_ops_config\u002B0x87/0xc0 [rtw_core]  ieee80211_hw_config\u002B0x9d/0x130 [mac80211]  ieee80211_scan_state_set_channel\u002B0x81/0x170 [mac80211]  ieee80211_scan_work\u002B0x19f/0x2a0 [mac80211]  process_one_work\u002B0x1dd/0x3a0  worker_thread\u002B0x49/0x330  ? rescuer_thread\u002B0x3a0/0x3a0  kthread\u002B0x134/0x150  ? kthread_create_worker_on_cpu\u002B0x70/0x70  ret_from_fork\u002B0x22/0x30 ================================================================================  The statement where an array is being overrun is shown in the following snippet:  \tif (rate \u003C= DESC_RATE11M) \t\ttx_power = pwr_idx_2g-\u003Ecck_base[group]; \telse ====\u003E\t\ttx_power = pwr_idx_2g-\u003Ebw40_base[group];  The associated arrays are defined in main.h as follows:  struct rtw_2g_txpwr_idx { \tu8 cck_base[6]; \tu8 bw40_base[5]; \tstruct rtw_2g_1s_pwr_idx_diff ht_1s_diff; \tstruct rtw_2g_ns_pwr_idx_diff ht_2s_diff; \tstruct rtw_2g_ns_pwr_idx_diff ht_3s_diff; \tstruct rtw_2g_ns_pwr_idx_diff ht_4s_diff; };  The problem arises because the value of group is 5 for channel 14. The trivial increase in the dimension of bw40_base fails as this struct must match the layout of efuse. The fix is to add the rate as an argument to rtw_get_channel_group() and set the group for channel 14 to 4 if rate \u003C= DESC_RATE11M.  This patch fixes commit fa6dfe6bff24 (\u0022rtw88: resolve order of tx power setting routines\u0022)",
  "published": "2024-02-29T23:15:08Z",
  "severity": "high",
  "cvss": 7.8,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
  "epss": 0.00236,
  "epssPercentile": 0.14663,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "5.10.38-1",
      "fix": "DEBIAN-CVE-2021-47065",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2021-47065",
      "released": "2024-02-29T23:15:08Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "5.10.38-1",
      "fix": "DEBIAN-CVE-2021-47065",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2021-47065",
      "released": "2024-02-29T23:15:08Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "5.10.38-1",
      "fix": "DEBIAN-CVE-2021-47065",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2021-47065",
      "released": "2024-02-29T23:15:08Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T19:12:23Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}