Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: RDMA/ocrdma: Don't NULL deref uctx on errors in ocrdma_copy_pd_uresp() Sashiko points out that pd->uctx isn't initialized until late in the function so all these error flow references are NULL and will crash. Use the uctx that isn't NULL.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected fe2caefcdf5869f308c102e3d64d40683bfad711 before b610f33c5523fe26f6dd897667fff9c7a1de5905; affected fe2caefcdf5869f308c102e3d64d40683bfad711 before 443c991fbc954cc9363e963c09f404b9f281f3a2; affected fe2caefcdf5869f308c102e3d64d40683bfad711 before 27b6eb1f27fda9bdd5cae028e396758cdf525845; affected fe2caefcdf5869f308c102e3d64d40683bfad711 before e01a957561f663d3b68d2fd233a4502e3367efcd; affected fe2caefcdf5869f308c102e3d64d40683bfad711 before 75fc130664ae324e7b2f9ad3630e0f175e9ca6c8; affected fe2caefcdf5869f308c102e3d64d40683bfad711 before 8832626a483439e207734e027afff322ccdf726e; affected fe2caefcdf5869f308c102e3d64d40683bfad711 before ec44c00a4fe1327efa35083f98b39c01cb535a51; affected fe2caefcdf5869f308c102e3d64d40683bfad711 before 34fbf48cf3b410d2a6e8c586fa952a36331ca5ba |
| Linux / Linux | affected 3.5; unaffected 0 before 3.5; unaffected 5.10.258 through 5.10.*; unaffected 5.15.209 through 5.15.*; unaffected 6.1.175 through 6.1.*; unaffected 6.6.140 through 6.6.*; unaffected 6.12.88 through 6.12.*; unaffected 6.18.30 through 6.18.*; unaffected 7.0.7 through 7.0.*; unaffected 7.1 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/b610f33c5523fe26f6dd897667fff9c7a1de5905
- https://git.kernel.org/stable/c/443c991fbc954cc9363e963c09f404b9f281f3a2
- https://git.kernel.org/stable/c/27b6eb1f27fda9bdd5cae028e396758cdf525845
- https://git.kernel.org/stable/c/e01a957561f663d3b68d2fd233a4502e3367efcd
- https://git.kernel.org/stable/c/75fc130664ae324e7b2f9ad3630e0f175e9ca6c8
- https://git.kernel.org/stable/c/8832626a483439e207734e027afff322ccdf726e
- https://git.kernel.org/stable/c/ec44c00a4fe1327efa35083f98b39c01cb535a51
- https://git.kernel.org/stable/c/34fbf48cf3b410d2a6e8c586fa952a36331ca5ba