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

Published Jun 18, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

alloctag: 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 freemodule(). 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 PERCPUMODULERESERVE when memory allocation profiling is enabled because percpu memory for counters does not need to be reserved anymore.

Affected Software

9 affected components
Linux Linux kernel
Linux Linux kernel>=6.13<6.14.9
Linux Linux kernel=6.15-rc1
Linux Linux kernel=6.15-rc2
Linux Linux kernel=6.15-rc3
Linux Linux kernel=6.15-rc4
Linux Linux kernel=6.15-rc5
Linux Linux kernel=6.15-rc6
Linux Linux kernel=6.15-rc7

Event History

Jun 18, 2025
CVE Published
via MITRE·09:33 AM
Data Sourced
via MITRE·09:33 AM
Description
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38076?

CVE-2025-38076 is categorized with a severity level that requires prompt attention due to potential security risks associated with memory management in the Linux kernel.

2

How do I fix CVE-2025-38076?

To fix CVE-2025-38076, ensure that you upgrade to the latest patched version of the Linux kernel that addresses this vulnerability.

3

What are the potential impacts of CVE-2025-38076?

CVE-2025-38076 could lead to memory leaks and instability in the system if the module's allocation tags are not properly managed upon unloading.

4

Which versions of the Linux kernel are affected by CVE-2025-38076?

CVE-2025-38076 affects various versions of the Linux kernel prior to the release of the security patch that resolves this issue.

5

Is CVE-2025-38076 a remote or local vulnerability?

CVE-2025-38076 is considered a local vulnerability that requires access to the system to exploit.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203