octeontx2-af: fix NULL deref in NIX TM tree debugfs read path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
octeontx2-af: fix NULL deref in NIX TM tree debugfs read path
rvu_dbg_nix_tm_tree_display() dereferences pfvf->sq_ctx without checking whether the SQ context has been allocated. Reading /sys/kernel/debug/octeontx2/nix/tm_tree for a NIX LF whose transmit queues are not set up triggers a kernel oops.
Guard the read path the same way rvu_dbg_nix_tm_tree_write() already does and return -EINVAL with a seq_file message when sq_ctx is NULL.
From the CVE record · Linux
The octeontx2-af debugfs read path can dereference an unallocated SQ context. A local read of /sys/kernel/debug/octeontx2/nix/tm_tree can trigger a kernel oops when the NIX LF transmit queues are not set up; authentication requirements are not specified.
Engineers running Linux kernels with octeontx2-af should check their exposure; affected versions are not specified.