# CVE-2022-49471: rtw89: cfo: check mac_id to avoid out-of-bounds

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2025-02-26T02:13:14.657Z
- Modified: 2026-08-05T08:55:19.284Z
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

rtw89: cfo: check mac_id to avoid out-of-bounds

Somehow, hardware reports incorrect mac_id and pollute memory. Check index
before we access the array.

  UBSAN: array-index-out-of-bounds in rtw89/phy.c:2517:23
  index 188 is out of range for type 's32 [64]'
  CPU: 1 PID: 51550 Comm: irq/35-rtw89_pc Tainted: G           OE
  Call Trace:
   <IRQ>
   show_stack+0x52/0x58
   dump_stack_lvl+0x4c/0x63
   dump_stack+0x10/0x12
   ubsan_epilogue+0x9/0x45
   __ubsan_handle_out_of_bounds.cold+0x44/0x49
   ? __alloc_skb+0x92/0x1d0
   rtw89_phy_cfo_parse+0x44/0x7f [rtw89_core]
   rtw89_core_rx+0x261/0x871 [rtw89_core]
   ? __alloc_skb+0xee/0x1d0
   rtw89_pci_napi_poll+0x3fa/0x4ea [rtw89_pci]
   __napi_poll+0x33/0x1a0
   net_rx_action+0x126/0x260
   ? __queue_work+0x217/0x4c0
   __do_softirq+0xd9/0x315
   ? disable_irq_nosync+0x10/0x10
   do_softirq.part.0+0x6d/0x90
   </IRQ>
   <TASK>
   __local_bh_enable_ip+0x62/0x70
   rtw89_pci_interrupt_threadfn+0x182/0x1a6 [rtw89_pci]
   irq_thread_fn+0x28/0x60
   irq_thread+0xc8/0x190
   ? irq_thread_fn+0x60/0x60
   kthread+0x16b/0x190
   ? irq_thread_check_affinity+0xe0/0xe0
   ? set_kthread_struct+0x50/0x50
   ret_from_fork+0x22/0x30
   </TASK>

(As written by CVE List.)

## Affected

- Linux Linux: from e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd before 03ed236480aeec8c2fd327a1ea6d711364c495e3; from e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd before c32fafe68298bb599e825c298e1d0ba30186f0a5; from e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd before 97df85871a5b187609d30fca6d85b912d9e02f29; 5.16 (not affected: before 5.16; from 5.17.14 up to 5.17.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: before 5.17.14; from 5.18 before 5.18.3

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/03ed236480aeec8c2fd327a1ea6d711364c495e3> (patch)
- <https://git.kernel.org/stable/c/c32fafe68298bb599e825c298e1d0ba30186f0a5> (patch)
- <https://git.kernel.org/stable/c/97df85871a5b187609d30fca6d85b912d9e02f29> (patch)

## Sources

- CVE List: [CVE-2022-49471](https://www.cve.org/CVERecord?id=CVE-2022-49471), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-49471](https://nvd.nist.gov/vuln/detail/CVE-2022-49471), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-49471 · Whole record: https://cve.day/CVE-2022-49471.json · Rebuilt by cve.day 2026-11-25T22:58:20.676Z
