{"id":"CVE-2025-68376","aliases":["CVE-2025-68376"],"related":[],"kind":"vulnerability","state":"published","title":"coresight: ETR: Fix ETR buffer use-after-free issue","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncoresight: ETR: Solucionar el problema de uso después de liberación del búfer ETR\n\nCuando ETR está habilitado como CS_MODE_SYSFS, si el tamaño del búfer se cambia y se habilita de nuevo, actualmente sysfs_buf apuntará a la memoria recién asignada (buf_new) y liberará la memoria antigua (buf_old). Pero el etr_buf que está siendo utilizado por el ETR permanece apuntando a buf_old, no actualizado a buf_new. En este caso, resultará en un problema de uso después de liberación 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ón y liberación.","source":"nvd"}],"published":"2025-12-24T10:33:05.503Z","modified":"2026-10-21T13:18:23.520Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"bd2767ec3df2775bc336f441f9068a989ccb919d","fixed":"5d5d130835b417c7bfd6c942f0149e34397d4463","status":"affected"},{"type":"git","introduced":"bd2767ec3df2775bc336f441f9068a989ccb919d","fixed":"4e83434247ff8005a0b9a1ee997864abf8f259ec","status":"affected"},{"type":"git","introduced":"bd2767ec3df2775bc336f441f9068a989ccb919d","fixed":"70acbc9c77686b7a521af6d7a543dcd9c324cf07","status":"affected"},{"type":"git","introduced":"bd2767ec3df2775bc336f441f9068a989ccb919d","fixed":"cda077a19f5c8d6ec61e5b97deca203d95e3a422","status":"affected"},{"type":"git","introduced":"bd2767ec3df2775bc336f441f9068a989ccb919d","fixed":"35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3","status":"affected"},{"type":"git","version":"fdd3ceb0001da6768bede9779a0190a42e65c404","status":"affected"},{"type":"semver","introduced":"6.5.8","fixed":"6.6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.13","lastAffected":"6.17.*","status":"unaffected"},{"type":"semver","introduced":"6.18.2","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/5d5d130835b417c7bfd6c942f0149e34397d4463","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4e83434247ff8005a0b9a1ee997864abf8f259ec","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/70acbc9c77686b7a521af6d7a543dcd9c324cf07","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cda077a19f5c8d6ec61e5b97deca203d95e3a422","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68376","url":"https://www.cve.org/CVERecord?id=CVE-2025-68376","licence":"CVE Terms of Use","modified":"2026-10-21T12:38:21.502Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68376","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68376","licence":"Public domain","modified":"2026-10-21T13:18:23.520Z"}],"updatedAt":"2026-11-25T22:59:09.874Z","epss":{"score":0.00277,"percentile":0.12786,"date":"2026-11-30T12:00:22.000Z"}}