Re: [PATCH] scsi: elx: libefc: potential use after free in efc_nport_vport_del()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 15 Aug 2024 14:29:05 +0300, Dan Carpenter wrote:

> The kref_put() function will call nport->release if the refcount drops
> to zero.  The nport->release release function is _efc_nport_free() which
> frees "nport".  But then we dereference "nport" on the next line which
> is a use after free.  Re-order these lines to avoid the use after free.
> 
> 

Applied to 6.12/scsi-queue, thanks!

[1/1] scsi: elx: libefc: potential use after free in efc_nport_vport_del()
      https://git.kernel.org/mkp/scsi/c/2e4b02fad094

-- 
Martin K. Petersen	Oracle Linux Engineering




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux