Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
efabce29015189cb5cd8066cf29eb1d754de6c3c to < b003d5b4e46ca5033859db601e12d36da24d0e40affectedefabce29015189cb5cd8066cf29eb1d754de6c3c to < 7e33c6bd049b532d2ec4916895ef07e538bed905affectedefabce29015189cb5cd8066cf29eb1d754de6c3c to < b09a0503c755b6609fad59a84cc7f05b6843a03caffected9bd7273cf1f9c5761d696cca821d25602e8f7009affected6.14.9 to < 6.15affected
Linux Linux
Default version status: affected
6.15affected0 to < 6.15unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected