RDMA/irdma: Prevent user-triggered null deref on QP create
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ec675b4cdfd378d8c9dd8c93126c024f2469bd79, Kernel 4e75028c000e9560a7ff66a23d7cd872a967ab7e, Kernel 728211c815f6eef28dd3df2a5b6297483185aa20 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: RDMA/irdma: Prevent user-triggered null deref on QP create Previously, the user QP creation path would only attempt to populate iwqp->iwpbl if the user-provided req.user_wqe_bufs field was non-zero. The problem is that iwqp->iwpbl is unconditionally dereferenced later on in irdma_setup_virt_qp. While there was a check for iwqp->iwpbl != NULL, this check would only occur if req.user_wqe_bufs was non-zero. The end result is that a user could send a zero user_wqe_bufs value and trigger a null ptr deref. Fix this by unconditionally calling irdma_get_pbl and bailing if it fails, similar to the CQ and SRQ paths.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=b48c24c2d710cf34810c555dcef883a3d35a9c08 <ec675b4cdfd378d8c9dd8c93126c024f2469bd79, >=b48c24c2d710cf34810c555dcef883a3d35a9c08 <4e75028c000e9560a7ff66a23d7cd872a967ab7e, >=b48c24c2d710cf34810c555dcef883a3d35a9c08 <728211c815f6eef28dd3df2a5b6297483185aa20, >=b48c24c2d710cf34810c555dcef883a3d35a9c08 <ad68e0b759f9569f0dfea84f035c91eadb979802, >=b48c24c2d710cf34810c555dcef883a3d35a9c08 <b9b0889071569d43623c260074e159cd8f26adb1, >=b48c24c2d710cf34810c555dcef883a3d35a9c08 <d52ff592abfcd56234f266aa245c489f70b1c554, =5.14 | ec675b4cdfd378d8c9dd8c93126c024f2469bd79, 4e75028c000e9560a7ff66a23d7cd872a967ab7e, 728211c815f6eef28dd3df2a5b6297483185aa20, ad68e0b759f9569f0dfea84f035c91eadb979802, b9b0889071569d43623c260074e159cd8f26adb1, d52ff592abfcd56234f266aa245c489f70b1c554 |
| linux-kernel: Kernel | >=6.13.0 <6.18.42, >=6.19.0 <7.1.6, >=6.2.0 <6.6.160, >=6.7.0 <6.12.114, >=5.14.0 <6.1.191 | 6.18.42, 7.1.6, 6.6.160, 6.12.114, 6.1.191 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket