CVE-2024-49852
JSON

7.8high

scsi: elx: libefc: Fix potential use after free in efc_nport_vport_del()

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
0.31% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: elx: libefc: Fix potential use after free in efc_nport_vport_del() 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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom fcd427303eb90aa3cb08e7e0b68e0e67a6d47346 before 16a570f07d870a285b0c0b0d1ca4dff79e8aa5ff, from fcd427303eb90aa3cb08e7e0b68e0e67a6d47346 before abc71e89170ed32ecf0a5a29f31aa711e143e941, from fcd427303eb90aa3cb08e7e0b68e0e67a6d47346 before baeb8628ab7f4577740f00e439d3fdf7c876b0ff, from fcd427303eb90aa3cb08e7e0b68e0e67a6d47346 before 7c2908985e4ae0ea1b526b3916de9e5351650908, from fcd427303eb90aa3cb08e7e0b68e0e67a6d47346 before 98752fcd076a8cbc978016eae7125b4971be1eec, from fcd427303eb90aa3cb08e7e0b68e0e67a6d47346 before 2e4b02fad094976763af08fec2c620f4f8edd9ae, 5.14
Not affected: before 5.14, from 5.15.168 up to 5.15.*, from 6.1.113 up to 6.1.*, from 6.6.54 up to 6.6.*, from 6.10.13 up to 6.10.*, from 6.11.2 up to 6.11.*
CVE List
linux linux_kernelfrom 5.14 before 5.15.168, from 5.16 before 6.1.113, from 6.2 before 6.6.54, from 6.7 before 6.10.13, from 6.11 before 6.11.2NVD

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: scsi: elx: libefc: Fix potential use after free in efc_nport_vport_del() 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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: elx: libefc: Se corrige el potencial use after freea nport->release si el recuento de referencias cae a cero. La función de liberación nport->release es _efc_nport_free() que libera "nport". Pero luego desreferenciamos "nport" en la siguiente línea que es un use after free. Reordena estas líneas para evitar el use after free.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-49852 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-49852 changed 2026-06-17Public domain