{"api_version":"1","generated_at":"2026-10-27T21:14:47+00:00","cve":"CVE-2025-68376","urls":{"html":"https://cve.report/CVE-2025-68376","api":"https://cve.report/api/cve/CVE-2025-68376.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-68376","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-68376"},"summary":{"title":"coresight: ETR: Fix ETR buffer use-after-free issue","description":"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's mode before updating and releasing buf_old,\nif the mode is CS_MODE_SYSFS, then skip updating and releasing it.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-12-24 11:16:01","updated_at":"2026-10-21 13:18:23"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/5d5d130835b417c7bfd6c942f0149e34397d4463","name":"https://git.kernel.org/stable/c/5d5d130835b417c7bfd6c942f0149e34397d4463","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/70acbc9c77686b7a521af6d7a543dcd9c324cf07","name":"https://git.kernel.org/stable/c/70acbc9c77686b7a521af6d7a543dcd9c324cf07","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cda077a19f5c8d6ec61e5b97deca203d95e3a422","name":"https://git.kernel.org/stable/c/cda077a19f5c8d6ec61e5b97deca203d95e3a422","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3","name":"https://git.kernel.org/stable/c/35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4e83434247ff8005a0b9a1ee997864abf8f259ec","name":"https://git.kernel.org/stable/c/4e83434247ff8005a0b9a1ee997864abf8f259ec","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-68376","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68376","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bd2767ec3df2775bc336f441f9068a989ccb919d 5d5d130835b417c7bfd6c942f0149e34397d4463 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bd2767ec3df2775bc336f441f9068a989ccb919d 4e83434247ff8005a0b9a1ee997864abf8f259ec git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bd2767ec3df2775bc336f441f9068a989ccb919d 70acbc9c77686b7a521af6d7a543dcd9c324cf07 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bd2767ec3df2775bc336f441f9068a989ccb919d cda077a19f5c8d6ec61e5b97deca203d95e3a422 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bd2767ec3df2775bc336f441f9068a989ccb919d 35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fdd3ceb0001da6768bede9779a0190a42e65c404 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.5.8 6.6 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.160 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.114 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17.13 6.17.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.2 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"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's 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"},"nvd":{"publishedDate":"2025-12-24 11:16:01","lastModifiedDate":"2026-10-21 13:18:23","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"68376","Ordinal":"1","Title":"coresight: ETR: Fix ETR buffer use-after-free issue","CVE":"CVE-2025-68376","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"68376","Ordinal":"1","NoteData":"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's mode before updating and releasing buf_old,\nif the mode is CS_MODE_SYSFS, then skip updating and releasing it.","Type":"Description","Title":"coresight: ETR: Fix ETR buffer use-after-free issue"}]}}}