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

 

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

Published: June 19, 2025


Vulnerability identifier: #VU111463
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-38069
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 pci_epf_test_set_bar() and pci_epf_test_free_space() functions in drivers/pci/endpoint/functions/pci-epf-test.c. A local user can escalate privileges on the system.


Affected software

Linux kernel
Ubuntu
linux (Ubuntu package)
linux-kvm (Ubuntu package)
linux-aws (Ubuntu package)
linux-gcp (Ubuntu package)
linux-azure (Ubuntu package)
linux-oracle (Ubuntu package)
linux-lowlatency (Ubuntu package)
linux-gke (Ubuntu package)
linux-aws-5.15 (Ubuntu package)
linux-lowlatency-hwe-5.15 (Ubuntu package)
linux-hwe-5.15 (Ubuntu package)
linux-fips (Ubuntu package)
linux-azure-5.15 (Ubuntu package)
linux-gkeop (Ubuntu package)
linux-nvidia-tegra-igx (Ubuntu package)
linux-nvidia-tegra (Ubuntu package)
linux-azure-fde-5.15 (Ubuntu package)
linux-ibm-5.15 (Ubuntu package)
linux-intel-iotg (Ubuntu package)
linux-realtime (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-ibm (Ubuntu package)
linux-intel-iotg-5.15 (Ubuntu package)
linux-oracle-5.15 (Ubuntu package)
linux-gcp-5.15 (Ubuntu package)
linux-nvidia-tegra-5.15 (Ubuntu package)
linux-azure-fde (Ubuntu package)
linux-intel-iot-realtime (Ubuntu package)
linux-gcp-fips (Ubuntu package)
linux-aws-fips (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-aws-6.14 (Ubuntu package)
linux-realtime-6.14 (Ubuntu package)
linux-oem-6.14 (Ubuntu package)
linux-oracle-6.14 (Ubuntu package)
linux-raspi (Ubuntu package)

How to mitigate CVE-2025-38069

Install update from vendor's repository.

linux (Ubuntu package) - addressed in versions 6.8.0-147.147, 6.14.0-32.32, 6.14.0-32.32.1~24.04.1, 6.14.0-32.32.1, 6.14.0-1012.12~24.04.1, 6.14.0-1013.13, 6.14.0-1016.17~24.04.1, 6.14.0-1016.17
linux-aws (Ubuntu package) - update to 6.8.0-1067.70
linux-gcp (Ubuntu package) - update to 6.8.0-1071.79
linux-azure (Ubuntu package) - addressed in versions 6.8.0-1071.79, 6.14.0-1012.12
linux-oracle (Ubuntu package) - update to 6.8.0-1064.67
linux-lowlatency (Ubuntu package) - update to 6.8.0-147.147.1
linux-gke (Ubuntu package) - update to 6.8.0-1066.74
linux-fips (Ubuntu package) - update to 6.8.0-147.147+fips1
linux-gkeop (Ubuntu package) - update to 6.8.0-1052.56
linux-nvidia-tegra-igx (Ubuntu package) - update to 5.15.0-1059.59
linux-nvidia-tegra (Ubuntu package) - addressed in versions 5.15.0-1070.72, 6.8.0-1035.38
linux-realtime (Ubuntu package) - update to 6.8.1-1062.63
linux-ibm (Ubuntu package) - update to 6.8.0-1067.68
linux-nvidia-tegra-5.15 (Ubuntu package) - update to 5.15.0-1070.72~20.04.1
linux-azure-fde (Ubuntu package) - addressed in versions 5.15.0-1124.133, 6.8.0-1069.76
linux-gcp-fips (Ubuntu package) - update to 6.8.0-1071.79+fips1
linux-aws-fips (Ubuntu package) - update to 6.8.0-1067.70+fips1
linux-azure-fips (Ubuntu package) - update to 6.8.0-1071.79+fips1
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-realtime-6.14 (Ubuntu package) - update to 6.14.0-1012.12~24.04.1
linux-oem-6.14 (Ubuntu package) - update to 6.14.0-1012.12
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

External References

Related Security Bulletins