CVE-2025-68376 (GCVE-0-2025-68376)

Vulnerability from cvelistv5 – Published: 2025-12-24 10:33 – Updated: 2026-10-21 12:38
VLAI
Title
coresight: ETR: Fix ETR buffer use-after-free issue
Summary
In the Linux kernel, the following vulnerability has been resolved: coresight: ETR: Fix ETR buffer use-after-free issue When ETR is enabled as CS_MODE_SYSFS, if the buffer size is changed and enabled again, currently sysfs_buf will point to the newly allocated memory(buf_new) and free the old memory(buf_old). But the etr_buf that is being used by the ETR remains pointed to buf_old, not updated to buf_new. In this case, it will result in a memory use-after-free issue. Fix this by checking ETR's mode before updating and releasing buf_old, if the mode is CS_MODE_SYSFS, then skip updating and releasing it.
Severity
No CVSS data available.
Assigner
Linux CNA under the mitre root
CNA scorecard D 53/100 over 7061 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: bd2767ec3df2775bc336f441f9068a989ccb919d , < 5d5d130835b417c7bfd6c942f0149e34397d4463 (git)
Affected: bd2767ec3df2775bc336f441f9068a989ccb919d , < 4e83434247ff8005a0b9a1ee997864abf8f259ec (git)
Affected: bd2767ec3df2775bc336f441f9068a989ccb919d , < 70acbc9c77686b7a521af6d7a543dcd9c324cf07 (git)
Affected: bd2767ec3df2775bc336f441f9068a989ccb919d , < cda077a19f5c8d6ec61e5b97deca203d95e3a422 (git)
Affected: bd2767ec3df2775bc336f441f9068a989ccb919d , < 35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3 (git)
Affected: fdd3ceb0001da6768bede9779a0190a42e65c404 (git)
Affected: 6.5.8 , < 6.6 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 6.6
Unaffected: 0 , < 6.6 (semver)
Unaffected: 6.6.160 , ≤ 6.6.* (semver)
Unaffected: 6.12.114 , ≤ 6.12.* (semver)
Unaffected: 6.17.13 , ≤ 6.17.* (semver)
Unaffected: 6.18.2 , ≤ 6.18.* (semver)
Unaffected: 6.19 , ≤ * (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-tmc-etr.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5d5d130835b417c7bfd6c942f0149e34397d4463",
              "status": "affected",
              "version": "bd2767ec3df2775bc336f441f9068a989ccb919d",
              "versionType": "git"
            },
            {
              "lessThan": "4e83434247ff8005a0b9a1ee997864abf8f259ec",
              "status": "affected",
              "version": "bd2767ec3df2775bc336f441f9068a989ccb919d",
              "versionType": "git"
            },
            {
              "lessThan": "70acbc9c77686b7a521af6d7a543dcd9c324cf07",
              "status": "affected",
              "version": "bd2767ec3df2775bc336f441f9068a989ccb919d",
              "versionType": "git"
            },
            {
              "lessThan": "cda077a19f5c8d6ec61e5b97deca203d95e3a422",
              "status": "affected",
              "version": "bd2767ec3df2775bc336f441f9068a989ccb919d",
              "versionType": "git"
            },
            {
              "lessThan": "35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3",
              "status": "affected",
              "version": "bd2767ec3df2775bc336f441f9068a989ccb919d",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "fdd3ceb0001da6768bede9779a0190a42e65c404",
              "versionType": "git"
            },
            {
              "lessThan": "6.6",
              "status": "affected",
              "version": "6.5.8",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/hwtracing/coresight/coresight-tmc-etr.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.6"
            },
            {
              "lessThan": "6.6",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.160",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.114",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.17.*",
              "status": "unaffected",
              "version": "6.17.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.19",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.160",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.114",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.17.13",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.2",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.5.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncoresight: ETR: Fix ETR buffer use-after-free issue\n\nWhen ETR is enabled as CS_MODE_SYSFS, if the buffer size is changed\nand enabled again, currently sysfs_buf will point to the newly\nallocated memory(buf_new) and free the old memory(buf_old). But the\netr_buf that is being used by the ETR remains pointed to buf_old, not\nupdated to buf_new. In this case, it will result in a memory\nuse-after-free issue.\n\nFix this by checking ETR\u0027s mode before updating and releasing buf_old,\nif the mode is CS_MODE_SYSFS, then skip updating and releasing it."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-21T12:38:21.502Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/5d5d130835b417c7bfd6c942f0149e34397d4463"
        },
        {
          "url": "https://git.kernel.org/stable/c/4e83434247ff8005a0b9a1ee997864abf8f259ec"
        },
        {
          "url": "https://git.kernel.org/stable/c/70acbc9c77686b7a521af6d7a543dcd9c324cf07"
        },
        {
          "url": "https://git.kernel.org/stable/c/cda077a19f5c8d6ec61e5b97deca203d95e3a422"
        },
        {
          "url": "https://git.kernel.org/stable/c/35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3"
        }
      ],
      "title": "coresight: ETR: Fix ETR buffer use-after-free issue",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-68376",
    "datePublished": "2025-12-24T10:33:05.503Z",
    "dateReserved": "2025-12-16T14:48:05.310Z",
    "dateUpdated": "2026-10-21T12:38:21.502Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-68376",
      "date": "2026-10-24",
      "epss": "0.00188",
      "percentile": "0.07967"
    },
    "microsoft_vex": {
      "current_release_date": "2026-01-13T01:43:52.000Z",
      "cve": "CVE-2025-68376",
      "id": "msrc_CVE-2025-68376",
      "initial_release_date": "2025-12-02T00:00:00.000Z",
      "product_status:known_affected": "1",
      "product_status:known_not_affected": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "coresight: ETR: Fix ETR buffer use-after-free issue",
      "url": "https://msrc.microsoft.com/csaf/vex/2025/msrc_cve-2025-68376.json",
      "version": "4"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/hwtracing/coresight/coresight-tmc-etr.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "5d5d130835b417c7bfd6c942f0149e34397d4463",
                    "status": "affected",
                    "version": "bd2767ec3df2775bc336f441f9068a989ccb919d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "4e83434247ff8005a0b9a1ee997864abf8f259ec",
                    "status": "affected",
                    "version": "bd2767ec3df2775bc336f441f9068a989ccb919d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "70acbc9c77686b7a521af6d7a543dcd9c324cf07",
                    "status": "affected",
                    "version": "bd2767ec3df2775bc336f441f9068a989ccb919d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "cda077a19f5c8d6ec61e5b97deca203d95e3a422",
                    "status": "affected",
                    "version": "bd2767ec3df2775bc336f441f9068a989ccb919d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3",
                    "status": "affected",
                    "version": "bd2767ec3df2775bc336f441f9068a989ccb919d",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "fdd3ceb0001da6768bede9779a0190a42e65c404",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "6.6",
                    "status": "affected",
                    "version": "6.5.8",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/hwtracing/coresight/coresight-tmc-etr.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.6"
                  },
                  {
                    "lessThan": "6.6",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.160",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.114",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.17.*",
                    "status": "unaffected",
                    "version": "6.17.13",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.2",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.19",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncoresight: ETR: Fix ETR buffer use-after-free issue\n\nWhen ETR is enabled as CS_MODE_SYSFS, if the buffer size is changed\nand enabled again, currently sysfs_buf will point to the newly\nallocated memory(buf_new) and free the old memory(buf_old). But the\netr_buf that is being used by the ETR remains pointed to buf_old, not\nupdated to buf_new. In this case, it will result in a memory\nuse-after-free issue.\n\nFix this by checking ETR\u0027s mode before updating and releasing buf_old,\nif the mode is CS_MODE_SYSFS, then skip updating and releasing it."
          },
          {
            "lang": "es",
            "value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncoresight: ETR: Solucionar el problema de uso despu\u00e9s de liberaci\u00f3n del b\u00fafer ETR\n\nCuando ETR est\u00e1 habilitado como CS_MODE_SYSFS, si el tama\u00f1o del b\u00fafer se cambia y se habilita de nuevo, actualmente sysfs_buf apuntar\u00e1 a la memoria reci\u00e9n asignada (buf_new) y liberar\u00e1 la memoria antigua (buf_old). Pero el etr_buf que est\u00e1 siendo utilizado por el ETR permanece apuntando a buf_old, no actualizado a buf_new. En este caso, resultar\u00e1 en un problema de uso despu\u00e9s de liberaci\u00f3n de memoria.\n\nSolucione esto verificando el modo de ETR antes de actualizar y liberar buf_old; si el modo es CS_MODE_SYSFS, entonces omita su actualizaci\u00f3n y liberaci\u00f3n."
          }
        ],
        "id": "CVE-2025-68376",
        "lastModified": "2026-10-21T13:18:23.520",
        "metrics": {},
        "published": "2025-12-24T11:16:01.193",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/4e83434247ff8005a0b9a1ee997864abf8f259ec"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/5d5d130835b417c7bfd6c942f0149e34397d4463"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/70acbc9c77686b7a521af6d7a543dcd9c324cf07"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/cda077a19f5c8d6ec61e5b97deca203d95e3a422"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Deferred"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:16:55+00:00",
      "cve": "CVE-2025-68376",
      "id": "CVE-2025-68376",
      "initial_release_date": "2025-12-24T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: coresight: ETR: Fix ETR buffer use-after-free issue",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-68376.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
Events included in the timeline

Loading timeline…


    Loading…

    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.