Use-after-free in Linux kernel - CVE-2025-39877

 

Use-after-free in Linux kernel - CVE-2025-39877

Published: September 23, 2025


Vulnerability identifier: #VU116036
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-39877
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability: No public exploit available

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 state_show() function in mm/damon/sysfs.c. A local user can escalate privileges on the system.


Affected software

Linux kernel
Ubuntu
linux (Ubuntu package)
linux-aws-fips (Ubuntu package)
linux-xilinx (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-aws-6.8 (Ubuntu package)
linux-raspi (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-6.8 (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-realtime (Ubuntu package)

How to mitigate CVE-2025-39877

Install update from vendor's repository.

linux (Ubuntu package) - addressed in versions 6.8.0-106.106, 6.8.0-106.106.1, 6.8.0-106.106.1~22.04.1, 6.8.0-106.106~22.04.1, 6.8.0-1035.38, 6.8.0-1047.48, 6.8.0-1047.48~22.04.1, 6.8.0-1048.53, 6.8.0-1049.49, 6.8.0-1049.49~22.04.1, 6.8.0-1050.53, 6.8.0-1052.55, 6.8.0-1052.55~22.04.1
linux-aws-fips (Ubuntu package) - addressed in versions 6.8.0-106.106+fips1, 6.8.0-1050.53+fips1, 6.8.0-1052.55+fips1
linux-xilinx (Ubuntu package) - update to 6.8.0-1029.30
linux-nvidia (Ubuntu package) - addressed in versions 6.8.0-1049.52, 6.8.0-1049.52.1, 6.8.0-1049.52~22.04.1
linux-aws-6.8 (Ubuntu package) - update to 6.8.0-1050.53~22.04.1
linux-raspi (Ubuntu package) - addressed in versions 6.8.0-1050.54, 6.8.0-2040.41
linux-azure (Ubuntu package) - update to 6.8.0-1051.57
linux-azure-6.8 (Ubuntu package) - update to 6.8.0-1051.57~22.04.1
linux-azure-fips (Ubuntu package) - update to 6.8.0-1052.58+fips1
linux-realtime (Ubuntu package) - addressed in versions 6.8.1-1045.46, 6.8.1-1045.46~22.04.1

External References

Related Security Bulletins