« Volver al listado

CVE-2024-58093

Estado: ModificadaAlta (7.8)—

In the Linux kernel, the following vulnerability has been resolved:

PCI/ASPM: Fix link state exit during switch upstream function removal

Before 456d8aa37d0f ("PCI/ASPM: Disable ASPM on MFD function removal to avoid use-after-free"), we would free the ASPM link only after the last function on the bus pertaining to the given link was removed.

That was too late. If function 0 is removed before sibling function, link->downstream would point to free'd memory after.

After above change, we freed the ASPM parent link state upon any function removal on the bus pertaining to a given link.

That is too early. If the link is to a PCIe switch with MFD on the upstream port, then removing functions other than 0 first would free a link which still remains parent_link to the remaining downstream ports.

Leer descripción completaMostrar menos

The resulting GPFs are especially frequent during hot-unplug, because pciehp removes devices on the link bus in reverse order.

On that switch, function 0 is the virtual P2P bridge to the internal bus. Free exactly when function 0 is removed -- before the parent link is obsolete, but after all subordinate links are gone.

[kwilczynski: commit log]

CVSS

Probabilidad de explotación (EPSS)

EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).

🎯 Técnicas ATT&CK

Cómo se explota esta vulnerabilidad y qué consigue el atacante, en el lenguaje de MITRE ATT&CK.

CVE-2024-58093 es un use-after-free (CWE-416) en el kernel de Linux que afecta al subsistema PCI/ASPM. El vector CVSS (AV:L, PR:L) indica acceso local con privilegios limitados sin interacción del usuario, lo que constituye escalada de privilegios (T1068). El impacto potencial incluye ejecución de c

Inferido por nuestro agente de análisis a partir de la descripción oficial, el vector CVSS y la CWE, y comprobado por un supervisor. Puede contener errores.

🛡️ Mitigaciones ATT&CK que cubren estas técnicas

Tecnologías afectadas (1)

CWE

Referencias

JSON original (NVD)

Mostrar
{
  "id": "CVE-2024-58093",
  "cveTags": [],
  "metrics": {
    "cvssMetricV31": [
      {
        "type": "Primary",
        "source": "nvd@nist.gov",
        "cvssData": {
          "scope": "UNCHANGED",
          "version": "3.1",
          "baseScore": 7.8,
          "attackVector": "LOCAL",
          "baseSeverity": "HIGH",
          "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "integrityImpact": "HIGH",
          "userInteraction": "NONE",
          "attackComplexity": "LOW",
          "availabilityImpact": "HIGH",
          "privilegesRequired": "LOW",
          "confidentialityImpact": "HIGH"
        },
        "impactScore": 5.9,
        "exploitabilityScore": 1.8
      }
    ]
  },
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "product": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "666e7f9d60cee23077ea3e6331f6f8a19f7ea03f",
              "lessThan": "0a0f9aecf66b98959aab7fb5764b4b3e522f4f5b",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "7badf4d6f49a358a01ab072bbff88d3ee886c33b",
              "lessThan": "62db339ecc3d58d8fd83a9e4d80061cd943bb6e2",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "9856c0de49052174ab474113f4ba40c02aaee086",
              "lessThan": "e5cd58f61e9d8024ee11bd78c12c8916891d4077",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "7aecdd47910c51707696e8b0e045b9f88bd4230f",
              "lessThan": "cd4b07507794f7ad1a74e12eca75121d98187e66",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "456d8aa37d0f56fc9e985e812496e861dcd6f2f2",
              "lessThan": "8b930ddc2044e36866c41423e89889e0258695a3",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "456d8aa37d0f56fc9e985e812496e861dcd6f2f2",
              "lessThan": "f556b6ba0ac5f8353287ce6ed761228f0b4fafb7",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "456d8aa37d0f56fc9e985e812496e861dcd6f2f2",
              "lessThan": "ba4cdc14c0d4df00d3e99bff7fe545303db98183",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "456d8aa37d0f56fc9e985e812496e861dcd6f2f2",
              "lessThan": "4d96930239981f312821a4065db8cc0f8240a173",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "456d8aa37d0f56fc9e985e812496e861dcd6f2f2",
              "lessThan": "cbf937dcadfd571a434f8074d057b32cd14fbea5",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "d51d2eeae4ce54d542909c4d9d07bf371a78592c",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "4203722d51afe3d239e03f15cc73efdf023a7103",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "5.4.251",
              "lessThan": "5.4.292",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "5.10.188",
              "lessThan": "5.10.236",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "5.15.121",
              "lessThan": "5.15.180",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "6.1.39",
              "lessThan": "6.1.134",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "6.3.13",
              "lessThan": "6.4",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "6.4.4",
              "lessThan": "6.5",
              "versionType": "semver"
            }
          ],
          "programFiles": [
            "drivers/pci/pcie/aspm.c"
          ],
          "defaultStatus": "unaffected"
        },
        {
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "product": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.5"
            },
            {
              "status": "unaffected",
              "version": "0",
              "lessThan": "6.5",
              "versionType": "semver"
            },
            {
              "status": "unaffected",
              "version": "5.4.292",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "status": "unaffected",
              "version": "5.10.236",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "status": "unaffected",
              "version": "5.15.180",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "status": "unaffected",
              "version": "6.1.134",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "status": "unaffected",
              "version": "6.6.87",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "status": "unaffected",
              "version": "6.12.23",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "status": "unaffected",
              "version": "6.13.11",
              "versionType": "semver",
              "lessThanOrEqual": "6.13.*"
            },
            {
              "status": "unaffected",
              "version": "6.14.2",
              "versionType": "semver",
              "lessThanOrEqual": "6.14.*"
            },
            {
              "status": "unaffected",
              "version": "6.15",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ],
          "programFiles": [
            "drivers/pci/pcie/aspm.c"
          ],
          "defaultStatus": "affected"
        }
      ]
    }
  ],
  "published": "2025-04-16T15:15:53.220",
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/0a0f9aecf66b98959aab7fb5764b4b3e522f4f5b",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/4d96930239981f312821a4065db8cc0f8240a173",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/62db339ecc3d58d8fd83a9e4d80061cd943bb6e2",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/8b930ddc2044e36866c41423e89889e0258695a3",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/ba4cdc14c0d4df00d3e99bff7fe545303db98183",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/cbf937dcadfd571a434f8074d057b32cd14fbea5",
      "tags": [
        "Patch"
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/cd4b07507794f7ad1a74e12eca75121d98187e66",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/e5cd58f61e9d8024ee11bd78c12c8916891d4077",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/f556b6ba0ac5f8353287ce6ed761228f0b4fafb7",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "vulnStatus": "Modified",
  "weaknesses": [
    {
      "type": "Primary",
      "source": "nvd@nist.gov",
      "description": [
        {
          "lang": "en",
          "value": "CWE-416"
        }
      ]
    }
  ],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/ASPM: Fix link state exit during switch upstream function removal\n\nBefore 456d8aa37d0f (\"PCI/ASPM: Disable ASPM on MFD function removal to\navoid use-after-free\"), we would free the ASPM link only after the last\nfunction on the bus pertaining to the given link was removed.\n\nThat was too late. If function 0 is removed before sibling function,\nlink->downstream would point to free'd memory after.\n\nAfter above change, we freed the ASPM parent link state upon any function\nremoval on the bus pertaining to a given link.\n\nThat is too early. If the link is to a PCIe switch with MFD on the upstream\nport, then removing functions other than 0 first would free a link which\nstill remains parent_link to the remaining downstream ports.\n\nThe resulting GPFs are especially frequent during hot-unplug, because\npciehp removes devices on the link bus in reverse order.\n\nOn that switch, function 0 is the virtual P2P bridge to the internal bus.\nFree exactly when function 0 is removed -- before the parent link is\nobsolete, but after all subordinate links are gone.\n\n[kwilczynski: commit log]"
    },
    {
      "lang": "es",
      "value": "En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: PCI/ASPM: Corrección de la salida del estado del enlace durante la eliminación de la función ascendente del conmutador. Antes de la versión 456d8aa37d0f (\"PCI/ASPM: Deshabilitar ASPM al eliminar la función MFD para evitar el use-after-free\"), liberábamos el enlace ASPM solo después de eliminar la última función del bus correspondiente al enlace en cuestión. Era demasiado tarde. Si la función 0 se elimina antes que la función hermana, enlace->descendente apuntaría a la memoria liberada después. Tras el cambio mencionado, liberábamos el estado del enlace principal ASPM al eliminar cualquier función del bus correspondiente a un enlace determinado. Era demasiado pronto. Si el enlace es a un conmutador PCIe con MFD en el puerto ascendente, eliminar primero las funciones distintas de la 0 liberaría un enlace que aún permanece como parent_link para los puertos descendentes restantes. Los GPF resultantes son especialmente frecuentes durante la desconexión en caliente, ya que pciehp elimina los dispositivos del bus de enlace en orden inverso. En ese conmutador, la función 0 es el puente P2P virtual al bus interno. Se libera exactamente cuando se elimina la función 0: antes de que el enlace principal quede obsoleto, pero después de que todos los enlaces subordinados desaparezcan. [kwilczynski: registro de confirmaciones]"
    }
  ],
  "lastModified": "2026-07-16T12:16:43.480",
  "configurations": [
    {
      "nodes": [
        {
          "negate": false,
          "cpeMatch": [
            {
              "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "44DA80F9-E53B-4731-AC41-BD9BAFB7661D",
              "versionEndExcluding": "5.5",
              "versionStartIncluding": "5.4.251"
            },
            {
              "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "6D42E8C7-CD33-432A-AC09-DC524C88ECE4",
              "versionEndExcluding": "5.11",
              "versionStartIncluding": "5.10.188"
            },
            {
              "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "F3AFFFEE-0707-48FE-B692-4AB92FDAA922",
              "versionEndExcluding": "5.16",
              "versionStartIncluding": "5.15.121"
            },
            {
              "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "43B56BBD-C68E-4AF0-AEFF-3863C4B70AC2",
              "versionEndExcluding": "6.2",
              "versionStartIncluding": "6.1.39"
            },
            {
              "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "9058C05B-5440-4D83-834D-2E94FC46621C",
              "versionEndExcluding": "6.4",
              "versionStartIncluding": "6.3.13"
            },
            {
              "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "2C10C69F-6357-4624-ADB7-90D4E8729AD5",
              "versionEndExcluding": "6.15",
              "versionStartIncluding": "6.4.4"
            }
          ],
          "operator": "OR"
        }
      ]
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}