CVE-2024-35930: scsi: lpfc: Fix possible memory leak in lpfc_rcv_padisc()

Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: lpfc: Fix possible memory leak in lpfc_rcv_padisc()

The call to lpfc_sli4_resume_rpi() in lpfc_rcv_padisc() may return an
unsuccessful status. In such cases, the elsiocb is not issued, the
completion is not called, and thus the elsiocb resource is leaked.

Check return value after calling lpfc_sli4_resume_rpi() and conditionally
release the elsiocb resource.

Classification

CVE ID: CVE-2024-35930

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 5.08% (scored less or equal to compared to others)

EPSS Date: 2025-02-04 (when was this score calculated)

References

https://git.kernel.org/stable/c/edf82aa7e9eb864a09229392054d131b34a5c9e8
https://git.kernel.org/stable/c/e2cd32435b1dff3d63759476a3abc878e02fb6c8
https://git.kernel.org/stable/c/c473288f27d15014447de5a891bdf22a0695847a
https://git.kernel.org/stable/c/7849e6f8410da96384e3d1f6b6d730f095142dc7
https://git.kernel.org/stable/c/ee0b5f96b6d66a1e6698228dcb41df11ec7f352f
https://git.kernel.org/stable/c/07a2aa674fca679316b8ac51440adb895b53a7cf
https://git.kernel.org/stable/c/3320126ed3afbc11934502319b340f91a4d61c8f
https://git.kernel.org/stable/c/2ae917d4bcab80ab304b774d492e2fcd6c52c06b

Timeline