Use-after-free in Linux kernel - CVE-2025-38076
Published: June 19, 2025
Vulnerability details
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a use-after-free error within the codetag_module_init() and codetag_unload_module() functions in lib/codetag.c, within the needs_section_mem(), clean_unused_module_areas_locked(), release_module_tags(), mas_unlock() and alloc_tag_init() functions in lib/alloc_tag.c. A local user can escalate privileges on the system.
Affected software
Ubuntu
linux (Ubuntu package)
linux-aws-6.14 (Ubuntu package)
linux-oem-6.14 (Ubuntu package)
linux-azure (Ubuntu package)
linux-realtime-6.14 (Ubuntu package)
linux-oracle-6.14 (Ubuntu package)
linux-raspi (Ubuntu package)
How to mitigate CVE-2025-38076
linux-aws-6.14 (Ubuntu package) - addressed in versions 6.14.0-32.32~24.04.1, 6.14.0-1013.13~24.04.1
linux-oem-6.14 (Ubuntu package) - update to 6.14.0-1012.12
linux-azure (Ubuntu package) - update to 6.14.0-1012.12
linux-realtime-6.14 (Ubuntu package) - update to 6.14.0-1012.12~24.04.1
linux-oracle-6.14 (Ubuntu package) - update to 6.14.0-1013.13~24.04.1
linux-raspi (Ubuntu package) - update to 6.14.0-1014.14