In the Linux kernel, the following vulnerability has been resolved:
scsi: lpfc: Fix possible memory leak in lpfcrcvpadisc()
The call to lpfcsli4resumerpi() in lpfcrcv_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 lpfcsli4resume_rpi() and conditionally release the elsiocb resource.
{ "vanir_signatures": [ { "signature_version": "v1", "target": { "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@edf82aa7e9eb864a09229392054d131b34a5c9e8", "deprecated": false, "digest": { "line_hashes": [ "253406032504328101066210437439235491959", "293675535060756199405536641056242249915", "217503641598776769639346574607683269547", "309133828937294874308533695978370176877", "259713039903746515251715788811231327505" ], "threshold": 0.9 }, "id": "CVE-2024-35930-007858e4" }, { "signature_version": "v1", "target": { "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e2cd32435b1dff3d63759476a3abc878e02fb6c8", "deprecated": false, "digest": { "line_hashes": [ "253406032504328101066210437439235491959", "293675535060756199405536641056242249915", "217503641598776769639346574607683269547", "309133828937294874308533695978370176877", "259713039903746515251715788811231327505" ], "threshold": 0.9 }, "id": "CVE-2024-35930-1535bf6d" }, { "signature_version": "v1", "target": { "function": "lpfc_rcv_padisc", "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7849e6f8410da96384e3d1f6b6d730f095142dc7", "deprecated": false, "digest": { "length": 1839.0, "function_hash": "159938583612140505193688713134492881761" }, "id": "CVE-2024-35930-315f04ec" }, { "signature_version": "v1", "target": { "function": "lpfc_rcv_padisc", "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ee0b5f96b6d66a1e6698228dcb41df11ec7f352f", "deprecated": false, "digest": { "length": 1827.0, "function_hash": "41435882421367035877216882182544426021" }, "id": "CVE-2024-35930-3a59417b" }, { "signature_version": "v1", "target": { "function": "lpfc_rcv_padisc", "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3320126ed3afbc11934502319b340f91a4d61c8f", "deprecated": false, "digest": { "length": 1827.0, "function_hash": "41435882421367035877216882182544426021" }, "id": "CVE-2024-35930-3f313af5" }, { "signature_version": "v1", "target": { "function": "lpfc_rcv_padisc", "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e2cd32435b1dff3d63759476a3abc878e02fb6c8", "deprecated": false, "digest": { "length": 1834.0, "function_hash": "165465061413616990381874473540072501372" }, "id": "CVE-2024-35930-4b9039a2" }, { "signature_version": "v1", "target": { "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2ae917d4bcab80ab304b774d492e2fcd6c52c06b", "deprecated": false, "digest": { "line_hashes": [ "253406032504328101066210437439235491959", "293675535060756199405536641056242249915", "217503641598776769639346574607683269547", "309133828937294874308533695978370176877", "259713039903746515251715788811231327505" ], "threshold": 0.9 }, "id": "CVE-2024-35930-60f6b577" }, { "signature_version": "v1", "target": { "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3320126ed3afbc11934502319b340f91a4d61c8f", "deprecated": false, "digest": { "line_hashes": [ "253406032504328101066210437439235491959", "293675535060756199405536641056242249915", "217503641598776769639346574607683269547", "309133828937294874308533695978370176877", "259713039903746515251715788811231327505" ], "threshold": 0.9 }, "id": "CVE-2024-35930-76f47e55" }, { "signature_version": "v1", "target": { "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@07a2aa674fca679316b8ac51440adb895b53a7cf", "deprecated": false, "digest": { "line_hashes": [ "253406032504328101066210437439235491959", "293675535060756199405536641056242249915", "217503641598776769639346574607683269547", "309133828937294874308533695978370176877", "259713039903746515251715788811231327505" ], "threshold": 0.9 }, "id": "CVE-2024-35930-9e3a75f1" }, { "signature_version": "v1", "target": { "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7849e6f8410da96384e3d1f6b6d730f095142dc7", "deprecated": false, "digest": { "line_hashes": [ "253406032504328101066210437439235491959", "293675535060756199405536641056242249915", "217503641598776769639346574607683269547", "309133828937294874308533695978370176877", "259713039903746515251715788811231327505" ], "threshold": 0.9 }, "id": "CVE-2024-35930-c087f980" }, { "signature_version": "v1", "target": { "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ee0b5f96b6d66a1e6698228dcb41df11ec7f352f", "deprecated": false, "digest": { "line_hashes": [ "253406032504328101066210437439235491959", "293675535060756199405536641056242249915", "217503641598776769639346574607683269547", "309133828937294874308533695978370176877", "259713039903746515251715788811231327505" ], "threshold": 0.9 }, "id": "CVE-2024-35930-d6e268c6" }, { "signature_version": "v1", "target": { "function": "lpfc_rcv_padisc", "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@07a2aa674fca679316b8ac51440adb895b53a7cf", "deprecated": false, "digest": { "length": 1827.0, "function_hash": "41435882421367035877216882182544426021" }, "id": "CVE-2024-35930-d9db2906" }, { "signature_version": "v1", "target": { "function": "lpfc_rcv_padisc", "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2ae917d4bcab80ab304b774d492e2fcd6c52c06b", "deprecated": false, "digest": { "length": 1827.0, "function_hash": "41435882421367035877216882182544426021" }, "id": "CVE-2024-35930-f252310b" }, { "signature_version": "v1", "target": { "function": "lpfc_rcv_padisc", "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@edf82aa7e9eb864a09229392054d131b34a5c9e8", "deprecated": false, "digest": { "length": 1812.0, "function_hash": "286617198379324197264582615936208124119" }, "id": "CVE-2024-35930-f7c7619c" }, { "signature_version": "v1", "target": { "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c473288f27d15014447de5a891bdf22a0695847a", "deprecated": false, "digest": { "line_hashes": [ "253406032504328101066210437439235491959", "293675535060756199405536641056242249915", "217503641598776769639346574607683269547", "309133828937294874308533695978370176877", "259713039903746515251715788811231327505" ], "threshold": 0.9 }, "id": "CVE-2024-35930-fe25df38" }, { "signature_version": "v1", "target": { "function": "lpfc_rcv_padisc", "file": "drivers/scsi/lpfc/lpfc_nportdisc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c473288f27d15014447de5a891bdf22a0695847a", "deprecated": false, "digest": { "length": 1829.0, "function_hash": "70359768073303125302331613081094200015" }, "id": "CVE-2024-35930-fe87e2fb" } ] }