CVE-2025-38076
Linux Ubuntu vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2025-38076) was discovered in the Linux kernel related to the allocation of percpu counters for module tags. The issue was disclosed on June 18, 2025, affecting the kernel's memory management system, specifically in the handling of module tag allocation (NVD, Wiz).

Technical details

The vulnerability occurs in the module unloading process. When a module is unloaded, it checks if any of its tags are still in use and keeps the memory containing module's allocation tags alive if needed. However, the percpu counters referenced by the tags are freed by free_module(). This leads to a Use-After-Free (UAF) condition if the memory allocated by a module is accessed after the module has been unloaded (NVD, Wiz).

Impact

When exploited, this vulnerability can lead to Use-After-Free conditions in the Linux kernel, potentially resulting in memory corruption and system instability. The issue specifically impacts scenarios where module memory is accessed after the module has been unloaded (Wiz).

Mitigation and workarounds

The fix involves modifying the allocation mechanism to allocate percpu counters for module allocation tags dynamically and maintaining them for tags that are still in use after module unloading. This solution also removes the requirement of a larger PERCPUMODULERESERVE when memory allocation profiling is enabled (NVD, Wiz).

Additional resources


SourceThis report was generated using AI

Related Linux Ubuntu vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-64460HIGH7.5
  • Linux DebianLinux Debian
  • python-django
NoYesDec 02, 2025
CVE-2025-13735HIGH7.4
  • Linux UbuntuLinux Ubuntu
  • linux-fips
NoNoNov 26, 2025
CVE-2025-13372MEDIUM4.3
  • Linux DebianLinux Debian
  • py3-django
NoYesDec 02, 2025
CVE-2025-2486LOW3.7
  • Linux UbuntuLinux Ubuntu
  • edk2
NoYesNov 26, 2025
CVE-2025-66270N/AN/A
  • Linux DebianLinux Debian
  • kdeconnect
NoYesNov 27, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management