# CVE-2025-38076: alloc_tag: allocate percpu counters for module tags dynamically

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-06-18T09:33:51.293Z
- Modified: 2026-06-17T09:16:00.360Z
- Weaknesses: CWE-416
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 0db6f8d7820a4b788565dac8eed52bfc2c3216da before 3cc733e6d96c938d2b82be96858a0ab900eb6fdc; from 0db6f8d7820a4b788565dac8eed52bfc2c3216da before 12ca42c237756182aad8ab04654c952765cb9061; 6.13 (not affected: before 6.13; from 6.14.9 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.13 before 6.14.9; 6.15

## References

- <https://git.kernel.org/stable/c/3cc733e6d96c938d2b82be96858a0ab900eb6fdc> (patch)
- <https://git.kernel.org/stable/c/12ca42c237756182aad8ab04654c952765cb9061> (patch)

## Sources

- CVE List: [CVE-2025-38076](https://www.cve.org/CVERecord?id=CVE-2025-38076), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38076](https://nvd.nist.gov/vuln/detail/CVE-2025-38076), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38076 · Whole record: https://cve.day/CVE-2025-38076.json · Rebuilt by cve.day 2026-11-25T22:58:59.373Z
