# CVE-2024-49852: scsi: elx: libefc: Fix potential use after free in efc_nport_vport_del()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-10-21T12:18:45.418Z
- Modified: 2026-06-17T08:00:35.127Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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.*; from 6.12 up to *)
- linux linux_kernel: from 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.2

## References

- <https://git.kernel.org/stable/c/16a570f07d870a285b0c0b0d1ca4dff79e8aa5ff> (patch)
- <https://git.kernel.org/stable/c/abc71e89170ed32ecf0a5a29f31aa711e143e941> (patch)
- <https://git.kernel.org/stable/c/baeb8628ab7f4577740f00e439d3fdf7c876b0ff> (patch)
- <https://git.kernel.org/stable/c/7c2908985e4ae0ea1b526b3916de9e5351650908> (patch)
- <https://git.kernel.org/stable/c/98752fcd076a8cbc978016eae7125b4971be1eec> (patch)
- <https://git.kernel.org/stable/c/2e4b02fad094976763af08fec2c620f4f8edd9ae> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-49852](https://www.cve.org/CVERecord?id=CVE-2024-49852), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-49852](https://nvd.nist.gov/vuln/detail/CVE-2024-49852), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-49852 · Whole record: https://cve.day/CVE-2024-49852.json · Rebuilt by cve.day 2026-11-25T22:58:47.005Z
