Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.168, 6.1.113, 6.10.13, 6.11.2, 6.6.54
CVEs
CVE-2024-49852
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 18:49 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 21 Oct 2024, 12:18 UTC

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.

osv:CVE-2024-49852

Kernel

Fixed versions: 5.15.168, 6.1.113, 6.6.54, 6.10.13, 6.11.2

Complete source record
{
  "id": "5ab6e076cf1ffdfe46f1c2dfbc154be49af5ef00eb16cad10808ce983b77c0e4",
  "url": "https://osv.dev/vulnerability/CVE-2024-49852",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "scsi: elx: libefc: Fix potential use after free in efc_nport_vport_del()",
    "summary": "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.",
    "evidence": "osv:CVE-2024-49852",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.168",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.113",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.54",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.10.13",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-49852",
      "aliases": [
        "CVE-2024-49852"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "fcd427303eb90aa3cb08e7e0b68e0e67a6d47346"
                },
                {
                  "fixed": "16a570f07d870a285b0c0b0d1ca4dff79e8aa5ff"
                },
                {
                  "fixed": "abc71e89170ed32ecf0a5a29f31aa711e143e941"
                },
                {
                  "fixed": "baeb8628ab7f4577740f00e439d3fdf7c876b0ff"
                },
                {
                  "fixed": "7c2908985e4ae0ea1b526b3916de9e5351650908"
                },
                {
                  "fixed": "98752fcd076a8cbc978016eae7125b4971be1eec"
                },
                {
                  "fixed": "2e4b02fad094976763af08fec2c620f4f8edd9ae"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49852.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.14.0"
                },
                {
                  "fixed": "5.15.168"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.113"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.54"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.10.13"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.11.0"
                },
                {
                  "fixed": "6.11.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49852.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.519073318Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/16a570f07d870a285b0c0b0d1ca4dff79e8aa5ff",
        "https://git.kernel.org/stable/c/2e4b02fad094976763af08fec2c620f4f8edd9ae",
        "https://git.kernel.org/stable/c/7c2908985e4ae0ea1b526b3916de9e5351650908",
        "https://git.kernel.org/stable/c/98752fcd076a8cbc978016eae7125b4971be1eec",
        "https://git.kernel.org/stable/c/abc71e89170ed32ecf0a5a29f31aa711e143e941",
        "https://git.kernel.org/stable/c/baeb8628ab7f4577740f00e439d3fdf7c876b0ff",
        "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49852.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-49852",
        "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/2024/49xxx/CVE-2024-49852.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-49852",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 520141,
  "published_at": "2024-10-21T12:18:45.418+00:00"
}