octeontx2-pf: fix NULL deref of af_xdp_zc_qidx on rep setup
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.15, 6.18.52, 7.2.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From efabce29015189cb5cd8066cf29eb1d754de6c3c · fixed in b003d5b4e46ca5033859db601e12d36da24d0e40; From efabce29015189cb5cd8066cf29eb1d754de6c3c · fixed in 7e33c6bd049b532d2ec4916895ef07e538bed905; From efabce29015189cb5cd8066cf29eb1d754de6c3c · fixed in b09a0503c755b6609fad59a84cc7f05b6843a03c; From 6.14.9 · fixed in 6.15
- Linux Linux
6.15
- KernelLinux
From 6.15.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6