CVE-2025-38076 Details
Description
In the Linux kernel, the following vulnerability has been resolved: alloc_tag: allocate percpu counters for module tags dynamically When a module gets unloaded it checks whether any of its tags are still in use and if so, we keep the memory containing module's allocation tags alive until all tags are unused. However percpu counters referenced by the tags are freed by free_module(). This will lead to UAF if the memory allocated by a module is accessed after module was unloaded. To fix this we allocate percpu counters for module allocation tags dynamically and we keep it alive for tags which are still in use after module unloading. This also removes the requirement of a larger PERCPU_MODULE_RESERVE when memory allocation profiling is enabled because percpu memory for counters does not need to be reserved anymore.
A use-after-free vulnerability has been identified in the Linux kernel's handling of per-CPU counters for module allocation tags. When a module is unloaded, it retains memory for its allocation tags until they are no longer in use. However, the per-CPU counters referenced by these tags are freed when the module is unloaded, leading to a use-after-free condition if the module's memory is accessed afterward. This vulnerability has been addressed by dynamically allocating per-CPU counters for module tags, ensuring they remain available for in-use tags after a module is unloaded. This change also eliminates the need for a larger PERCPU_MODULE_RESERVE when memory allocation profiling is enabled, as per-CPU memory for counters no longer requires reservation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/12ca42c237756182aad8ab04654c952765cb9061 | kernel.org | Patch |
| https://git.kernel.org/stable/c/3cc733e6d96c938d2b82be96858a0ab900eb6fdc | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.13, < 6.14.9 6.15 rc1 6.15 rc2 6.15 rc3 6.15 rc4 6.15 rc5 6.15 rc6 6.15 rc7 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 14, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |