Skip to content
Heist/ feed
Back to feed
UnratedFix available

scsi: libfc: Fix potential NULL pointer dereference in fc_lport_ptp_setup()

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.14.331, 4.19.300, 5.10.202, 5.15.140, 5.4.262, 6.1.64, 6.5.13, 6.6.3
CVEs
CVE-2023-52809
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 21:37 UTC · Revision 1

Source evidence

scsi: libfc: Fix potential NULL pointer dereference in fc_lport_ptp_setup()

core-osv · Original source

Published 21 May 2024, 15:31 UTC

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.

osv:CVE-2023-52809

Kernel

Fixed versions: 4.14.331, 4.19.300, 5.4.262, 5.10.202, 5.15.140, 6.1.64, 6.5.13, 6.6.3

Complete source record
{
  "id": "9409e5ad5ba9f94f8e54cb9e070cf0acad321eea42a7cc0de811f17dc904b903",
  "url": "https://osv.dev/vulnerability/CVE-2023-52809",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "scsi: libfc: Fix potential NULL pointer dereference in fc_lport_ptp_setup()",
    "summary": "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.",
    "evidence": "osv:CVE-2023-52809",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.14.331",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.19.300",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.262",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.202",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.140",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.64",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.5.13",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2023-52809",
      "aliases": [
        "CVE-2023-52809"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "42e9a92fe6a9095bd68a379aaec7ad2be0337f7a"
                },
                {
                  "fixed": "930f0aaba4820d6362de4e6ed569eaf444f1ea4e"
                },
                {
                  "fixed": "77072ec41d6ab3718c3fc639bc149b8037caedfa"
                },
                {
                  "fixed": "b549acf999824d4f751ca57965700372f2f3ad00"
                },
                {
                  "fixed": "bb83f79f90e92f46466adcfd4fd264a7ae0f0f01"
                },
                {
                  "fixed": "56d78b5495ebecbb9395101f3be177cd0a52450b"
                },
                {
                  "fixed": "442fd24d7b6b29e4a9cd9225afba4142d5f522ba"
                },
                {
                  "fixed": "f6fe7261b92b21109678747f36df9fdab1e30c34"
                },
                {
                  "fixed": "6b9ecf4e1032e645873933e5b43cbb84cac19106"
                },
                {
                  "fixed": "4df105f0ce9f6f30cda4e99f577150d23f0c9c5f"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52809.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.29"
                },
                {
                  "fixed": "4.14.331"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.15.0"
                },
                {
                  "fixed": "4.19.300"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.262"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.202"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.140"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.64"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.5.13"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.6.0"
                },
                {
                  "fixed": "6.6.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52809.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:40.191890371Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/442fd24d7b6b29e4a9cd9225afba4142d5f522ba",
        "https://git.kernel.org/stable/c/4df105f0ce9f6f30cda4e99f577150d23f0c9c5f",
        "https://git.kernel.org/stable/c/56d78b5495ebecbb9395101f3be177cd0a52450b",
        "https://git.kernel.org/stable/c/6b9ecf4e1032e645873933e5b43cbb84cac19106",
        "https://git.kernel.org/stable/c/77072ec41d6ab3718c3fc639bc149b8037caedfa",
        "https://git.kernel.org/stable/c/930f0aaba4820d6362de4e6ed569eaf444f1ea4e",
        "https://git.kernel.org/stable/c/b549acf999824d4f751ca57965700372f2f3ad00",
        "https://git.kernel.org/stable/c/bb83f79f90e92f46466adcfd4fd264a7ae0f0f01",
        "https://git.kernel.org/stable/c/f6fe7261b92b21109678747f36df9fdab1e30c34",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52809.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-52809",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52809.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-52809",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 507385,
  "published_at": "2024-05-21T15:31:18.982+00:00"
}