octeontx2-pf: fix SQB pointer leak on init failure
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fca9c22633169a6c5d429a32e439121b6419e2be, Kernel 148d7ec0a3a98839c320e6cdd112e2e88bfb091b, Kernel 23d917acd9c9a9fd999688ec3fdde7aa58ab8a14 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: octeontx2-pf: fix SQB pointer leak on init failure otx2_init_hw_resources() initializes SQ aura and pool resources before several later setup steps. On failure, err_free_sq_ptrs only frees SQB pages, leaving the per-SQ sqb_ptrs arrays behind. Use otx2_free_sq_res() for the SQ unwind path and let it free sqb_ptrs even when sq->sqe has not been allocated yet. The bug was first flagged by an experimental analysis tool we are developing for kernel memory-management bugs while analyzing v6.13-rc1. The tool is still under development and is not yet publicly available. Manual inspection confirms that the bug is still present in v7.1.1. An x86_64 allyesconfig build showed no new warnings. As we do not have an OcteonTX2 PF device and the corresponding AF mailbox setup to test with, no runtime testing was able to be performed.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=caa2da34fd25a37e9fd43343b6966fb9d730a6d5 <fca9c22633169a6c5d429a32e439121b6419e2be, >=caa2da34fd25a37e9fd43343b6966fb9d730a6d5 <148d7ec0a3a98839c320e6cdd112e2e88bfb091b, >=caa2da34fd25a37e9fd43343b6966fb9d730a6d5 <23d917acd9c9a9fd999688ec3fdde7aa58ab8a14, >=caa2da34fd25a37e9fd43343b6966fb9d730a6d5 <2cac2eac935ed7e0a9203204e036a1f6090ebc3d, >=caa2da34fd25a37e9fd43343b6966fb9d730a6d5 <42c2836f10ac0427dac9e9a923d6ee2189dec544, >=caa2da34fd25a37e9fd43343b6966fb9d730a6d5 <5df30f05db96552903680a17f858d250dfd9e86e, >=caa2da34fd25a37e9fd43343b6966fb9d730a6d5 <5e023fe2569e630ba23b5558ebe4bf4837af4d16, >=caa2da34fd25a37e9fd43343b6966fb9d730a6d5 <62e7df6d042aeebd5efb581074e28865c04477be, =5.6 | fca9c22633169a6c5d429a32e439121b6419e2be, 148d7ec0a3a98839c320e6cdd112e2e88bfb091b, 23d917acd9c9a9fd999688ec3fdde7aa58ab8a14, 2cac2eac935ed7e0a9203204e036a1f6090ebc3d, 42c2836f10ac0427dac9e9a923d6ee2189dec544, 5df30f05db96552903680a17f858d250dfd9e86e, 5e023fe2569e630ba23b5558ebe4bf4837af4d16, 62e7df6d042aeebd5efb581074e28865c04477be |
| linux-kernel: Kernel | >=5.16.0 <6.1.184, >=5.6.0 <5.10.266, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.148, >=6.7.0 <6.12.101, >=5.11.0 <5.15.217 | 6.1.184, 5.10.266, 6.18.40, 7.1.5, 6.6.148, 6.12.101, 5.15.217 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket