cve-2024-49852
Vulnerability from cvelistv5
Published
2024-10-21 12:18
Modified
2024-12-19 09:27
Severity ?
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.
Impacted products
Vendor Product Version
Linux Linux Version: fcd427303eb90aa3cb08e7e0b68e0e67a6d47346
Version: fcd427303eb90aa3cb08e7e0b68e0e67a6d47346
Version: fcd427303eb90aa3cb08e7e0b68e0e67a6d47346
Version: fcd427303eb90aa3cb08e7e0b68e0e67a6d47346
Version: fcd427303eb90aa3cb08e7e0b68e0e67a6d47346
Version: fcd427303eb90aa3cb08e7e0b68e0e67a6d47346
Create a notification for this product.
   Linux Linux Version: 5.14
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-49852",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-10-21T12:56:47.269710Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-10-21T13:04:11.737Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/scsi/elx/libefc/efc_nport.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "16a570f07d870a285b0c0b0d1ca4dff79e8aa5ff",
              "status": "affected",
              "version": "fcd427303eb90aa3cb08e7e0b68e0e67a6d47346",
              "versionType": "git"
            },
            {
              "lessThan": "abc71e89170ed32ecf0a5a29f31aa711e143e941",
              "status": "affected",
              "version": "fcd427303eb90aa3cb08e7e0b68e0e67a6d47346",
              "versionType": "git"
            },
            {
              "lessThan": "baeb8628ab7f4577740f00e439d3fdf7c876b0ff",
              "status": "affected",
              "version": "fcd427303eb90aa3cb08e7e0b68e0e67a6d47346",
              "versionType": "git"
            },
            {
              "lessThan": "7c2908985e4ae0ea1b526b3916de9e5351650908",
              "status": "affected",
              "version": "fcd427303eb90aa3cb08e7e0b68e0e67a6d47346",
              "versionType": "git"
            },
            {
              "lessThan": "98752fcd076a8cbc978016eae7125b4971be1eec",
              "status": "affected",
              "version": "fcd427303eb90aa3cb08e7e0b68e0e67a6d47346",
              "versionType": "git"
            },
            {
              "lessThan": "2e4b02fad094976763af08fec2c620f4f8edd9ae",
              "status": "affected",
              "version": "fcd427303eb90aa3cb08e7e0b68e0e67a6d47346",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/scsi/elx/libefc/efc_nport.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.14"
            },
            {
              "lessThan": "5.14",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.168",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.113",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.54",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.10.*",
              "status": "unaffected",
              "version": "6.10.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.11.*",
              "status": "unaffected",
              "version": "6.11.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.12",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: elx: libefc: Fix potential use after free in efc_nport_vport_del()\n\nThe kref_put() function will call nport-\u003erelease if the refcount drops to\nzero.  The nport-\u003erelease release function is _efc_nport_free() which frees\n\"nport\".  But then we dereference \"nport\" on the next line which is a use\nafter free.  Re-order these lines to avoid the use after free."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-12-19T09:27:34.203Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/16a570f07d870a285b0c0b0d1ca4dff79e8aa5ff"
        },
        {
          "url": "https://git.kernel.org/stable/c/abc71e89170ed32ecf0a5a29f31aa711e143e941"
        },
        {
          "url": "https://git.kernel.org/stable/c/baeb8628ab7f4577740f00e439d3fdf7c876b0ff"
        },
        {
          "url": "https://git.kernel.org/stable/c/7c2908985e4ae0ea1b526b3916de9e5351650908"
        },
        {
          "url": "https://git.kernel.org/stable/c/98752fcd076a8cbc978016eae7125b4971be1eec"
        },
        {
          "url": "https://git.kernel.org/stable/c/2e4b02fad094976763af08fec2c620f4f8edd9ae"
        }
      ],
      "title": "scsi: elx: libefc: Fix potential use after free in efc_nport_vport_del()",
      "x_generator": {
        "engine": "bippy-5f407fcff5a0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-49852",
    "datePublished": "2024-10-21T12:18:45.418Z",
    "dateReserved": "2024-10-21T12:17:06.016Z",
    "dateUpdated": "2024-12-19T09:27:34.203Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-49852\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-10-21T13:15:05.977\",\"lastModified\":\"2024-10-23T16:14:01.857\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nscsi: elx: libefc: Fix potential use after free in efc_nport_vport_del()\\n\\nThe kref_put() function will call nport-\u003erelease if the refcount drops to\\nzero.  The nport-\u003erelease release function is _efc_nport_free() which frees\\n\\\"nport\\\".  But then we dereference \\\"nport\\\" on the next line which is a use\\nafter free.  Re-order these lines to avoid the use after free.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: elx: libefc: Se corrige el potencial use after freea nport-\u0026gt;release si el recuento de referencias cae a cero. La funci\u00f3n de liberaci\u00f3n nport-\u0026gt;release es _efc_nport_free() que libera \\\"nport\\\". Pero luego desreferenciamos \\\"nport\\\" en la siguiente l\u00ednea que es un use after free. Reordena estas l\u00edneas para evitar el use after free.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-416\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.14\",\"versionEndExcluding\":\"5.15.168\",\"matchCriteriaId\":\"5CD3CB21-008A-4AF9-9337-0FF92043AE5E\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"6.1.113\",\"matchCriteriaId\":\"D01BD22E-ACD1-4618-9D01-6116570BE1EE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.2\",\"versionEndExcluding\":\"6.6.54\",\"matchCriteriaId\":\"D448821D-C085-4CAF-88FA-2DDE7BE21976\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.10.13\",\"matchCriteriaId\":\"CE94BB8D-B0AB-4563-9ED7-A12122B56EBE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.11\",\"versionEndExcluding\":\"6.11.2\",\"matchCriteriaId\":\"AB755D26-97F4-43B6-8604-CD076811E181\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/16a570f07d870a285b0c0b0d1ca4dff79e8aa5ff\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/2e4b02fad094976763af08fec2c620f4f8edd9ae\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/7c2908985e4ae0ea1b526b3916de9e5351650908\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/98752fcd076a8cbc978016eae7125b4971be1eec\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/abc71e89170ed32ecf0a5a29f31aa711e143e941\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/baeb8628ab7f4577740f00e439d3fdf7c876b0ff\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-49852\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-21T12:56:47.269710Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-21T12:56:50.384Z\"}}], \"cna\": {\"title\": \"scsi: elx: libefc: Fix potential use after free in efc_nport_vport_del()\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"fcd427303eb90aa3cb08e7e0b68e0e67a6d47346\", \"lessThan\": \"16a570f07d870a285b0c0b0d1ca4dff79e8aa5ff\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fcd427303eb90aa3cb08e7e0b68e0e67a6d47346\", \"lessThan\": \"abc71e89170ed32ecf0a5a29f31aa711e143e941\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fcd427303eb90aa3cb08e7e0b68e0e67a6d47346\", \"lessThan\": \"baeb8628ab7f4577740f00e439d3fdf7c876b0ff\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fcd427303eb90aa3cb08e7e0b68e0e67a6d47346\", \"lessThan\": \"7c2908985e4ae0ea1b526b3916de9e5351650908\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fcd427303eb90aa3cb08e7e0b68e0e67a6d47346\", \"lessThan\": \"98752fcd076a8cbc978016eae7125b4971be1eec\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fcd427303eb90aa3cb08e7e0b68e0e67a6d47346\", \"lessThan\": \"2e4b02fad094976763af08fec2c620f4f8edd9ae\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/scsi/elx/libefc/efc_nport.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.14\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.14\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.15.168\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.113\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.54\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10.13\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11.2\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.11.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/scsi/elx/libefc/efc_nport.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/16a570f07d870a285b0c0b0d1ca4dff79e8aa5ff\"}, {\"url\": \"https://git.kernel.org/stable/c/abc71e89170ed32ecf0a5a29f31aa711e143e941\"}, {\"url\": \"https://git.kernel.org/stable/c/baeb8628ab7f4577740f00e439d3fdf7c876b0ff\"}, {\"url\": \"https://git.kernel.org/stable/c/7c2908985e4ae0ea1b526b3916de9e5351650908\"}, {\"url\": \"https://git.kernel.org/stable/c/98752fcd076a8cbc978016eae7125b4971be1eec\"}, {\"url\": \"https://git.kernel.org/stable/c/2e4b02fad094976763af08fec2c620f4f8edd9ae\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nscsi: elx: libefc: Fix potential use after free in efc_nport_vport_del()\\n\\nThe kref_put() function will call nport-\u003erelease if the refcount drops to\\nzero.  The nport-\u003erelease release function is _efc_nport_free() which frees\\n\\\"nport\\\".  But then we dereference \\\"nport\\\" on the next line which is a use\\nafter free.  Re-order these lines to avoid the use after free.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-12-19T09:27:34.203Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-49852\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-12-19T09:27:34.203Z\", \"dateReserved\": \"2024-10-21T12:17:06.016Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T12:18:45.418Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.