Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: octeontx2-pf: fix NULL deref of af_xdp_zc_qidx on rep setup af_xdp_zc_qidx tracks receive queues using AF_XDP zero-copy and is allocated during PF/VF probe. Representors and other non-AF_XDP paths leave the pointer NULL, but several call sites used test_bit() on it unconditionally. Switching to devlink eswitch mode creates representors and runs otx2_init_hw_resources(), which reaches otx2_pool_aq_init() and oopses when dereferencing the NULL bitmap. Add NULL checks before every af_xdp_zc_qidx test_bit() use in the RSS, ethtool, XSK, and pool init paths.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected efabce29015189cb5cd8066cf29eb1d754de6c3c before b003d5b4e46ca5033859db601e12d36da24d0e40; affected efabce29015189cb5cd8066cf29eb1d754de6c3c before 7e33c6bd049b532d2ec4916895ef07e538bed905; affected efabce29015189cb5cd8066cf29eb1d754de6c3c before b09a0503c755b6609fad59a84cc7f05b6843a03c; affected 9bd7273cf1f9c5761d696cca821d25602e8f7009; affected 6.14.9 before 6.15 |
| Linux / Linux | affected 6.15; unaffected 0 before 6.15; unaffected 6.18.52 through 6.18.*; unaffected 7.2.6 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.