What’s Vulnerable › Vulnerabilities
CVE-2025-38076: alloc_tag: allocate percpu counters for module tags dynamically
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-06-18 · updated 2026-06-17
- Weakness: CWE-416
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.
Affected products
- Linux kernel: from 6.13 before 6.14.9; 6.15-rc1, 6.15-rc2, 6.15-rc3, 6.15-rc4, 6.15-rc5, 6.15-rc6 (+1) — fixed in 6.14.9
How to fix
Upgrade to a fixed version: Linux kernel 6.14.9. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/12ca42c237756182aad8ab04654c952765cb9061
- https://git.kernel.org/stable/c/3cc733e6d96c938d2b82be96858a0ab900eb6fdc
Get alerted when CVE-2025-38076 or the next vulnerability affects your stack