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

CVE-2025-38132 (GCVE-0-2025-38132)

Vulnerability from cvelistv5 – Published: 2025-07-03 08:35 – Updated: 2026-05-11 21:21
VLAI
Title
coresight: holding cscfg_csdev_lock while removing cscfg from csdev
Summary
In the Linux kernel, the following vulnerability has been resolved: coresight: holding cscfg_csdev_lock while removing cscfg from csdev There'll be possible race scenario for coresight config: CPU0 CPU1 (perf enable) load module cscfg_load_config_sets() activate config. // sysfs (sys_active_cnt == 1) ... cscfg_csdev_enable_active_config() lock(csdev->cscfg_csdev_lock) deactivate config // sysfs (sys_activec_cnt == 0) cscfg_unload_config_sets() <iterating config_csdev_list> cscfg_remove_owned_csdev_configs() // here load config activate by CPU1 unlock(csdev->cscfg_csdev_lock) iterating config_csdev_list could be raced with config_csdev_list's entry delete. To resolve this race , hold csdev->cscfg_csdev_lock() while cscfg_remove_owned_csdev_configs()
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 02bd588e12df405bdf55244708151b7f238b79ba , < 42f8afb0b161631fd1d814d017f75f955475ad41 (git)
Affected: 02bd588e12df405bdf55244708151b7f238b79ba , < 53b9e2659719b04f5ba7593f2af0f2335f75e94a (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.17
Unaffected: 0 , < 5.17 (semver)
Unaffected: 6.15.3 , ≤ 6.15.* (semver)
Unaffected: 6.16 , ≤ * (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/hwtracing/coresight/coresight-syscfg.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "42f8afb0b161631fd1d814d017f75f955475ad41",
              "status": "affected",
              "version": "02bd588e12df405bdf55244708151b7f238b79ba",
              "versionType": "git"
            },
            {
              "lessThan": "53b9e2659719b04f5ba7593f2af0f2335f75e94a",
              "status": "affected",
              "version": "02bd588e12df405bdf55244708151b7f238b79ba",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/hwtracing/coresight/coresight-syscfg.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.17"
            },
            {
              "lessThan": "5.17",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.15.*",
              "status": "unaffected",
              "version": "6.15.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.16",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.15.3",
                  "versionStartIncluding": "5.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.16",
                  "versionStartIncluding": "5.17",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncoresight: holding cscfg_csdev_lock while removing cscfg from csdev\n\nThere\u0027ll be possible race scenario for coresight config:\n\nCPU0                                          CPU1\n(perf enable)                                 load module\n                                              cscfg_load_config_sets()\n                                              activate config. // sysfs\n                                              (sys_active_cnt == 1)\n...\ncscfg_csdev_enable_active_config()\n  lock(csdev-\u003ecscfg_csdev_lock)\n                                              deactivate config // sysfs\n                                              (sys_activec_cnt == 0)\n                                              cscfg_unload_config_sets()\n  \u003citerating config_csdev_list\u003e               cscfg_remove_owned_csdev_configs()\n  // here load config activate by CPU1\n  unlock(csdev-\u003ecscfg_csdev_lock)\n\niterating config_csdev_list could be raced with config_csdev_list\u0027s\nentry delete.\n\nTo resolve this race , hold csdev-\u003ecscfg_csdev_lock() while\ncscfg_remove_owned_csdev_configs()"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T21:21:52.827Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/42f8afb0b161631fd1d814d017f75f955475ad41"
        },
        {
          "url": "https://git.kernel.org/stable/c/53b9e2659719b04f5ba7593f2af0f2335f75e94a"
        }
      ],
      "title": "coresight: holding cscfg_csdev_lock while removing cscfg from csdev",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-38132",
    "datePublished": "2025-07-03T08:35:35.695Z",
    "dateReserved": "2025-04-16T04:51:23.987Z",
    "dateUpdated": "2026-05-11T21:21:52.827Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-38132",
      "date": "2026-09-16",
      "epss": "0.0014",
      "percentile": "0.03717"
    },
    "microsoft_vex": {
      "current_release_date": "2025-09-04T01:39:05.000Z",
      "cve": "CVE-2025-38132",
      "id": "msrc_CVE-2025-38132",
      "initial_release_date": "2025-07-02T00:00:00.000Z",
      "product_status:known_not_affected": "1",
      "product_status:under_investigation": "2",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "coresight: holding cscfg_csdev_lock while removing cscfg from csdev",
      "url": "https://msrc.microsoft.com/csaf/vex/2025/msrc_cve-2025-38132.json",
      "version": "1"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-38132\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-07-03T09:15:27.563\",\"lastModified\":\"2026-06-17T09:16:07.230\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncoresight: holding cscfg_csdev_lock while removing cscfg from csdev\\n\\nThere\u0027ll be possible race scenario for coresight config:\\n\\nCPU0                                          CPU1\\n(perf enable)                                 load module\\n                                              cscfg_load_config_sets()\\n                                              activate config. // sysfs\\n                                              (sys_active_cnt == 1)\\n...\\ncscfg_csdev_enable_active_config()\\n  lock(csdev-\u003ecscfg_csdev_lock)\\n                                              deactivate config // sysfs\\n                                              (sys_activec_cnt == 0)\\n                                              cscfg_unload_config_sets()\\n  \u003citerating config_csdev_list\u003e               cscfg_remove_owned_csdev_configs()\\n  // here load config activate by CPU1\\n  unlock(csdev-\u003ecscfg_csdev_lock)\\n\\niterating config_csdev_list could be raced with config_csdev_list\u0027s\\nentry delete.\\n\\nTo resolve this race , hold csdev-\u003ecscfg_csdev_lock() while\\ncscfg_remove_owned_csdev_configs()\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: coresight: mantener cscfg_csdev_lock mientras se elimina cscfg de csdev Habr\u00e1 un posible escenario de ejecuci\u00f3n para la configuraci\u00f3n de coresight: CPU0 CPU1 (habilitaci\u00f3n de rendimiento) cargar m\u00f3dulo cscfg_load_config_sets() activar configuraci\u00f3n. // sysfs (sys_active_cnt == 1) ... cscfg_csdev_enable_active_config() lock(csdev-\u0026gt;cscfg_csdev_lock) desactiva la configuraci\u00f3n // sysfs (sys_activec_cnt == 0) cscfg_unload_config_sets()  cscfg_remove_owned_csdev_configs() // aqu\u00ed se carga la configuraci\u00f3n activada por CPU1 unlock(csdev-\u0026gt;cscfg_csdev_lock) iterando config_csdev_list podr\u00eda estar en competencia con la eliminaci\u00f3n de la entrada de config_csdev_list. Para resolver esta competencia, mantenga presionada la tecla csdev-\u0026gt;cscfg_csdev_lock() mientras cscfg_remove_owned_csdev_configs()\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/hwtracing/coresight/coresight-syscfg.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"02bd588e12df405bdf55244708151b7f238b79ba\",\"lessThan\":\"42f8afb0b161631fd1d814d017f75f955475ad41\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"02bd588e12df405bdf55244708151b7f238b79ba\",\"lessThan\":\"53b9e2659719b04f5ba7593f2af0f2335f75e94a\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/hwtracing/coresight/coresight-syscfg.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.17\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.17\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.15.3\",\"lessThanOrEqual\":\"6.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.16\",\"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.17\",\"versionEndExcluding\":\"6.15.3\",\"matchCriteriaId\":\"074848F1-2A7E-490C-B811-A3122505C2CA\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/42f8afb0b161631fd1d814d017f75f955475ad41\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/53b9e2659719b04f5ba7593f2af0f2335f75e94a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:32:13+00:00",
      "cve": "CVE-2025-38132",
      "id": "CVE-2025-38132",
      "initial_release_date": "2025-07-03T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: coresight: holding cscfg_csdev_lock while removing cscfg from csdev",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-38132.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-01T13:48:23Z",
      "cve": "CVE-2025-38132",
      "id": "CVE-2025-38132",
      "initial_release_date": "2025-07-03T23:23:19Z",
      "product_status:known_affected": "437",
      "product_status:known_not_affected": "399",
      "product_status:recommended": "396",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2025-38132",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2025-38132.json",
      "version": "28"
    }
  }
}



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…