GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2025-37842 (GCVE-0-2025-37842)

Vulnerability from cvelistv5 – Published: 2025-05-09 06:41 – Updated: 2026-05-11 21:16
VLAI
Title
spi: fsl-qspi: use devm function instead of driver remove
Summary
In the Linux kernel, the following vulnerability has been resolved: spi: fsl-qspi: use devm function instead of driver remove Driver use devm APIs to manage clk/irq/resources and register the spi controller, but the legacy remove function will be called first during device detach and trigger kernel panic. Drop the remove function and use devm_add_action_or_reset() for driver cleanup to ensure the release sequence. Trigger kernel panic on i.MX8MQ by echo 30bb0000.spi >/sys/bus/platform/drivers/fsl-quadspi/unbind
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 8fcb830a00f0980ffe38d223cdd9a4d2d24da476 , < 50ae352c1848cab408fb4f7d7f50c71f818bbdbf (git)
Affected: 8fcb830a00f0980ffe38d223cdd9a4d2d24da476 , < f68b27d82a749117d9c7d7f33fa53f46373e38e2 (git)
Affected: 8fcb830a00f0980ffe38d223cdd9a4d2d24da476 , < 439688dbe82baa10d4430dc3252bb5ef1183a171 (git)
Affected: 8fcb830a00f0980ffe38d223cdd9a4d2d24da476 , < f9bfb3a5f6f616f3eb7665c8ff3bcb9760ae33c8 (git)
Affected: 8fcb830a00f0980ffe38d223cdd9a4d2d24da476 , < 40369bfe717e96e26650eeecfa5a6363563df6e4 (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.2
Unaffected: 0 , < 5.2 (semver)
Unaffected: 6.6.105 , ≤ 6.6.* (semver)
Unaffected: 6.12.36 , ≤ 6.12.* (semver)
Unaffected: 6.13.12 , ≤ 6.13.* (semver)
Unaffected: 6.14.3 , ≤ 6.14.* (semver)
Unaffected: 6.15 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/spi/spi-fsl-qspi.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "50ae352c1848cab408fb4f7d7f50c71f818bbdbf",
              "status": "affected",
              "version": "8fcb830a00f0980ffe38d223cdd9a4d2d24da476",
              "versionType": "git"
            },
            {
              "lessThan": "f68b27d82a749117d9c7d7f33fa53f46373e38e2",
              "status": "affected",
              "version": "8fcb830a00f0980ffe38d223cdd9a4d2d24da476",
              "versionType": "git"
            },
            {
              "lessThan": "439688dbe82baa10d4430dc3252bb5ef1183a171",
              "status": "affected",
              "version": "8fcb830a00f0980ffe38d223cdd9a4d2d24da476",
              "versionType": "git"
            },
            {
              "lessThan": "f9bfb3a5f6f616f3eb7665c8ff3bcb9760ae33c8",
              "status": "affected",
              "version": "8fcb830a00f0980ffe38d223cdd9a4d2d24da476",
              "versionType": "git"
            },
            {
              "lessThan": "40369bfe717e96e26650eeecfa5a6363563df6e4",
              "status": "affected",
              "version": "8fcb830a00f0980ffe38d223cdd9a4d2d24da476",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/spi/spi-fsl-qspi.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.2"
            },
            {
              "lessThan": "5.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.105",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.36",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.13.*",
              "status": "unaffected",
              "version": "6.13.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.14.*",
              "status": "unaffected",
              "version": "6.14.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.15",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.105",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.36",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13.12",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.14.3",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.15",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nspi: fsl-qspi: use devm function instead of driver remove\n\nDriver use devm APIs to manage clk/irq/resources and register the spi\ncontroller, but the legacy remove function will be called first during\ndevice detach and trigger kernel panic. Drop the remove function and use\ndevm_add_action_or_reset() for driver cleanup to ensure the release\nsequence.\n\nTrigger kernel panic on i.MX8MQ by\necho 30bb0000.spi \u003e/sys/bus/platform/drivers/fsl-quadspi/unbind"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T21:16:09.854Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/50ae352c1848cab408fb4f7d7f50c71f818bbdbf"
        },
        {
          "url": "https://git.kernel.org/stable/c/f68b27d82a749117d9c7d7f33fa53f46373e38e2"
        },
        {
          "url": "https://git.kernel.org/stable/c/439688dbe82baa10d4430dc3252bb5ef1183a171"
        },
        {
          "url": "https://git.kernel.org/stable/c/f9bfb3a5f6f616f3eb7665c8ff3bcb9760ae33c8"
        },
        {
          "url": "https://git.kernel.org/stable/c/40369bfe717e96e26650eeecfa5a6363563df6e4"
        }
      ],
      "title": "spi: fsl-qspi: use devm function instead of driver remove",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-37842",
    "datePublished": "2025-05-09T06:41:51.310Z",
    "dateReserved": "2025-04-16T04:51:23.953Z",
    "dateUpdated": "2026-05-11T21:16:09.854Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-37842",
      "date": "2026-09-16",
      "epss": "0.00267",
      "percentile": "0.18964"
    },
    "microsoft_vex": {
      "current_release_date": "2026-09-13T01:51:10.000Z",
      "cve": "CVE-2025-37842",
      "id": "msrc_CVE-2025-37842",
      "initial_release_date": "2025-09-04T05:46:32.000Z",
      "product_status:known_affected": "5",
      "product_status:known_not_affected": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "spi: fsl-qspi: use devm function instead of driver remove",
      "url": "https://msrc.microsoft.com/csaf/vex/2025/msrc_cve-2025-37842.json",
      "version": "8"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-37842\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-05-09T07:16:04.963\",\"lastModified\":\"2026-06-17T09:15:32.953\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nspi: fsl-qspi: use devm function instead of driver remove\\n\\nDriver use devm APIs to manage clk/irq/resources and register the spi\\ncontroller, but the legacy remove function will be called first during\\ndevice detach and trigger kernel panic. Drop the remove function and use\\ndevm_add_action_or_reset() for driver cleanup to ensure the release\\nsequence.\\n\\nTrigger kernel panic on i.MX8MQ by\\necho 30bb0000.spi \u003e/sys/bus/platform/drivers/fsl-quadspi/unbind\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: spi: fsl-qspi: usar la funci\u00f3n devm en lugar de eliminar el controlador. El controlador usa las API devm para administrar clk/irq/resources y registrar el controlador spi, pero la funci\u00f3n de eliminaci\u00f3n heredada se llamar\u00e1 primero durante la desconexi\u00f3n del dispositivo y activar\u00e1 el p\u00e1nico del kernel. Se debe omitir la funci\u00f3n de eliminaci\u00f3n y usar devm_add_action_or_reset() para limpiar el controlador y asegurar la secuencia de liberaci\u00f3n. Se activa el p\u00e1nico del kernel en i.MX8MQ mediante echo 30bb0000.spi \u0026gt;/sys/bus/platform/drivers/fsl-quadspi/unbind.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/spi/spi-fsl-qspi.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"8fcb830a00f0980ffe38d223cdd9a4d2d24da476\",\"lessThan\":\"50ae352c1848cab408fb4f7d7f50c71f818bbdbf\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"8fcb830a00f0980ffe38d223cdd9a4d2d24da476\",\"lessThan\":\"f68b27d82a749117d9c7d7f33fa53f46373e38e2\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"8fcb830a00f0980ffe38d223cdd9a4d2d24da476\",\"lessThan\":\"439688dbe82baa10d4430dc3252bb5ef1183a171\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"8fcb830a00f0980ffe38d223cdd9a4d2d24da476\",\"lessThan\":\"f9bfb3a5f6f616f3eb7665c8ff3bcb9760ae33c8\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"8fcb830a00f0980ffe38d223cdd9a4d2d24da476\",\"lessThan\":\"40369bfe717e96e26650eeecfa5a6363563df6e4\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/spi/spi-fsl-qspi.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.2\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.2\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.105\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.36\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.13.12\",\"lessThanOrEqual\":\"6.13.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.14.3\",\"lessThanOrEqual\":\"6.14.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.15\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"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:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-noinfo\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.2\",\"versionEndExcluding\":\"6.6.105\",\"matchCriteriaId\":\"FFCAC8A9-E253-4F04-98F7-26A8EB5B9317\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.12.36\",\"matchCriteriaId\":\"2BD88DEC-018F-4F40-8E29-A2CA89813EBA\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.13\",\"versionEndExcluding\":\"6.13.12\",\"matchCriteriaId\":\"4A475784-BF3B-4514-81EE-49C8522FB24A\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.14\",\"versionEndExcluding\":\"6.14.3\",\"matchCriteriaId\":\"483E2E15-2135-4EC6-AB64-16282C5EF704\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/40369bfe717e96e26650eeecfa5a6363563df6e4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/439688dbe82baa10d4430dc3252bb5ef1183a171\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/50ae352c1848cab408fb4f7d7f50c71f818bbdbf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/f68b27d82a749117d9c7d7f33fa53f46373e38e2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/f9bfb3a5f6f616f3eb7665c8ff3bcb9760ae33c8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-06-30T00:08:01+00:00",
      "cve": "CVE-2025-37842",
      "id": "CVE-2025-37842",
      "initial_release_date": "2025-05-09T00:00:00+00:00",
      "product_status:known_affected": "184",
      "product_status:known_not_affected": "90",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: spi: fsl-qspi: use devm function instead of driver remove",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-37842.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-30T01:59:12Z",
      "cve": "CVE-2025-37842",
      "id": "CVE-2025-37842",
      "initial_release_date": "2025-05-10T02:53:10Z",
      "product_status:known_affected": "649",
      "product_status:known_not_affected": "187",
      "product_status:recommended": "400",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2025-37842",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2025-37842.json",
      "version": "40"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…