# CVE-2023-52809: scsi: libfc: Fix potential NULL pointer dereference in fc_lport_ptp_setup()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-05-21T15:31:18.982Z
- Modified: 2026-06-17T06:43:37.970Z
- Weaknesses: CWE-476
- 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: libfc: Fix potential NULL pointer dereference in fc_lport_ptp_setup()

fc_lport_ptp_setup() did not check the return value of fc_rport_create()
which can return NULL and would cause a NULL pointer dereference. Address
this issue by checking return value of fc_rport_create() and log error
message on fc_rport_create() failed.

(As written by CVE List.)

## Affected

- Linux Linux: from 42e9a92fe6a9095bd68a379aaec7ad2be0337f7a before 930f0aaba4820d6362de4e6ed569eaf444f1ea4e; from 42e9a92fe6a9095bd68a379aaec7ad2be0337f7a before 77072ec41d6ab3718c3fc639bc149b8037caedfa; from 42e9a92fe6a9095bd68a379aaec7ad2be0337f7a before b549acf999824d4f751ca57965700372f2f3ad00; from 42e9a92fe6a9095bd68a379aaec7ad2be0337f7a before bb83f79f90e92f46466adcfd4fd264a7ae0f0f01; from 42e9a92fe6a9095bd68a379aaec7ad2be0337f7a before 56d78b5495ebecbb9395101f3be177cd0a52450b; from 42e9a92fe6a9095bd68a379aaec7ad2be0337f7a before 442fd24d7b6b29e4a9cd9225afba4142d5f522ba; from 42e9a92fe6a9095bd68a379aaec7ad2be0337f7a before f6fe7261b92b21109678747f36df9fdab1e30c34; from 42e9a92fe6a9095bd68a379aaec7ad2be0337f7a before 6b9ecf4e1032e645873933e5b43cbb84cac19106; from 42e9a92fe6a9095bd68a379aaec7ad2be0337f7a before 4df105f0ce9f6f30cda4e99f577150d23f0c9c5f; 2.6.29 (not affected: before 2.6.29; from 4.14.331 up to 4.14.*; from 4.19.300 up to 4.19.*; from 5.4.262 up to 5.4.*; from 5.10.202 up to 5.10.*; from 5.15.140 up to 5.15.*; from 6.1.64 up to 6.1.*; from 6.5.13 up to 6.5.*; from 6.6.3 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: before 4.14.331; from 4.15 before 4.19.300; from 4.20 before 5.4.262; from 5.5 before 5.10.202; from 5.11 before 5.15.140; from 5.16 before 6.1.64; from 6.2 before 6.5.13; from 6.6 before 6.6.3

## References

- <https://git.kernel.org/stable/c/930f0aaba4820d6362de4e6ed569eaf444f1ea4e> (patch)
- <https://git.kernel.org/stable/c/77072ec41d6ab3718c3fc639bc149b8037caedfa> (patch)
- <https://git.kernel.org/stable/c/b549acf999824d4f751ca57965700372f2f3ad00> (patch)
- <https://git.kernel.org/stable/c/bb83f79f90e92f46466adcfd4fd264a7ae0f0f01> (patch)
- <https://git.kernel.org/stable/c/56d78b5495ebecbb9395101f3be177cd0a52450b> (patch)
- <https://git.kernel.org/stable/c/442fd24d7b6b29e4a9cd9225afba4142d5f522ba> (patch)
- <https://git.kernel.org/stable/c/f6fe7261b92b21109678747f36df9fdab1e30c34> (patch)
- <https://git.kernel.org/stable/c/6b9ecf4e1032e645873933e5b43cbb84cac19106> (patch)
- <https://git.kernel.org/stable/c/4df105f0ce9f6f30cda4e99f577150d23f0c9c5f> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-52809 · Whole record: https://cve.day/CVE-2023-52809.json · Rebuilt by cve.day 2026-11-25T22:58:34.031Z
