octeontx2-pf: fix NULL deref of af_xdp_zc_qidx on rep setup
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel b09a0503c755b6609fad59a84cc7f05b6843a03c, Kernel 6.15, Kernel 7e33c6bd049b532d2ec4916895ef07e538bed905 and 3 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=efabce29015189cb5cd8066cf29eb1d754de6c3c <b09a0503c755b6609fad59a84cc7f05b6843a03c, >=6.14.9 <6.15, >=efabce29015189cb5cd8066cf29eb1d754de6c3c <7e33c6bd049b532d2ec4916895ef07e538bed905, >=efabce29015189cb5cd8066cf29eb1d754de6c3c <b003d5b4e46ca5033859db601e12d36da24d0e40, =6.15, =9bd7273cf1f9c5761d696cca821d25602e8f7009 | b09a0503c755b6609fad59a84cc7f05b6843a03c, 6.15, 7e33c6bd049b532d2ec4916895ef07e538bed905, b003d5b4e46ca5033859db601e12d36da24d0e40 |
| linux-kernel: Kernel | >=6.15.0 <6.18.52, >=6.19.0 <7.2.6, >=6.14.9 <6.15 | 6.18.52, 7.2.6, 6.15 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket