CVE-2024-48876 (GCVE-0-2024-48876)
Vulnerability from cvelistv5
Published
2025-01-11 12:25
Modified
2025-05-04 09:39
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: stackdepot: fix stack_depot_save_flags() in NMI context Per documentation, stack_depot_save_flags() was meant to be usable from NMI context if STACK_DEPOT_FLAG_CAN_ALLOC is unset. However, it still would try to take the pool_lock in an attempt to save a stack trace in the current pool (if space is available). This could result in deadlock if an NMI is handled while pool_lock is already held. To avoid deadlock, only try to take the lock in NMI context and give up if unsuccessful. The documentation is fixed to clearly convey this.
Impacted products
Vendor Product Version
Linux Linux Version: 4434a56ec20925333d6cf4d4093641d063abd35b
Version: 4434a56ec20925333d6cf4d4093641d063abd35b
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "include/linux/stackdepot.h",
            "lib/stackdepot.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "9bfeeeff2c92b9dd261198b601b45bde4c529841",
              "status": "affected",
              "version": "4434a56ec20925333d6cf4d4093641d063abd35b",
              "versionType": "git"
            },
            {
              "lessThan": "031e04bdc834cda3b054ef6b698503b2b97e8186",
              "status": "affected",
              "version": "4434a56ec20925333d6cf4d4093641d063abd35b",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "include/linux/stackdepot.h",
            "lib/stackdepot.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.8"
            },
            {
              "lessThan": "6.8",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.13",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.5",
                  "versionStartIncluding": "6.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13",
                  "versionStartIncluding": "6.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nstackdepot: fix stack_depot_save_flags() in NMI context\n\nPer documentation, stack_depot_save_flags() was meant to be usable from\nNMI context if STACK_DEPOT_FLAG_CAN_ALLOC is unset.  However, it still\nwould try to take the pool_lock in an attempt to save a stack trace in the\ncurrent pool (if space is available).\n\nThis could result in deadlock if an NMI is handled while pool_lock is\nalready held.  To avoid deadlock, only try to take the lock in NMI context\nand give up if unsuccessful.\n\nThe documentation is fixed to clearly convey this."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T09:39:20.195Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/9bfeeeff2c92b9dd261198b601b45bde4c529841"
        },
        {
          "url": "https://git.kernel.org/stable/c/031e04bdc834cda3b054ef6b698503b2b97e8186"
        }
      ],
      "title": "stackdepot: fix stack_depot_save_flags() in NMI context",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-48876",
    "datePublished": "2025-01-11T12:25:17.819Z",
    "dateReserved": "2025-01-09T09:51:32.384Z",
    "dateUpdated": "2025-05-04T09:39:20.195Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-48876\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-01-11T13:15:23.263\",\"lastModified\":\"2025-01-11T13:15:23.263\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nstackdepot: fix stack_depot_save_flags() in NMI context\\n\\nPer documentation, stack_depot_save_flags() was meant to be usable from\\nNMI context if STACK_DEPOT_FLAG_CAN_ALLOC is unset.  However, it still\\nwould try to take the pool_lock in an attempt to save a stack trace in the\\ncurrent pool (if space is available).\\n\\nThis could result in deadlock if an NMI is handled while pool_lock is\\nalready held.  To avoid deadlock, only try to take the lock in NMI context\\nand give up if unsuccessful.\\n\\nThe documentation is fixed to clearly convey this.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: stackdepot: se corrige stack_depot_save_flags() en el contexto NMI Seg\u00fan la documentaci\u00f3n, se supon\u00eda que stack_depot_save_flags() se pod\u00eda usar desde el contexto NMI si STACK_DEPOT_FLAG_CAN_ALLOC no est\u00e1 configurado. Sin embargo, a\u00fan intentar\u00eda tomar el pool_lock en un intento de guardar un seguimiento de pila en el pool actual (si hay espacio disponible). Esto podr\u00eda resultar en un bloqueo si se gestiona un NMI mientras pool_lock ya est\u00e1 retenido. Para evitar el bloqueo, solo intente tomar el bloqueo en el contexto NMI y abandone si no tiene \u00e9xito. La documentaci\u00f3n se corrige para transmitir esto claramente.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/031e04bdc834cda3b054ef6b698503b2b97e8186\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9bfeeeff2c92b9dd261198b601b45bde4c529841\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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.


Loading…

Loading…