CVE-2025-68376: coresight: ETR: Fix ETR buffer use-after-free issue
In the Linux kernel, the following vulnerability has been resolved:
coresight: ETR: Fix ETR buffer use-after-free issue
When ETR is enabled as CSMODESYSFS, if the buffer size is changed and enabled again, currently sysfsbuf will point to the newly allocated memory(bufnew) and free the old memory(bufold). But the etrbuf that is being used by the ETR remains pointed to bufold, not updated to bufnew. In this case, it will result in a memory use-after-free issue.
Fix this by checking ETR's mode before updating and releasing bufold, if the mode is CSMODESYSFS, then skip updating and releasing it.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-68376?
CVE-2025-68376 is classified as a medium-severity vulnerability in the Linux kernel.
How do I fix CVE-2025-68376?
To fix CVE-2025-68376, upgrade to the latest stable version of the Linux kernel that includes the patch.
What is the impact of CVE-2025-68376 on affected systems?
CVE-2025-68376 may lead to a use-after-free condition, potentially allowing unauthorized access to memory and causing system instability.
Which versions of the Linux kernel are affected by CVE-2025-68376?
CVE-2025-68376 affects various versions of the Linux kernel prior to the patch release that addresses this vulnerability.
How can I determine if my Linux system is vulnerable to CVE-2025-68376?
Check the current kernel version on your Linux system against the fixed version details associated with CVE-2025-68376.