Use-after-free in Linux kernel - CVE-2024-38561

 

Use-after-free in Linux kernel - CVE-2024-38561

Published: June 20, 2024 / Updated: May 13, 2025


Vulnerability identifier: #VU92308
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-2024-38561
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 kunit_try_catch_run() function in lib/kunit/try-catch.c. A local user can escalate privileges on the system.


Affected software

Linux kernel
openEuler
Ubuntu
linux (Ubuntu package)
linux-lowlatency (Ubuntu package)
linux-raspi (Ubuntu package)
linux-azure (Ubuntu package)
linux-gcp (Ubuntu package)
linux-aws (Ubuntu package)
linux-ibm (Ubuntu package)
linux-oracle (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-oem-6.8 (Ubuntu package)
linux-nvidia-lowlatency (Ubuntu package)
linux-nvidia-6.8 (Ubuntu package)
linux-gke (Ubuntu package)
python3-perf-debuginfo
python3-perf
perf-debuginfo
perf
kernel-tools-devel
kernel-tools-debuginfo
kernel-tools
kernel-source
kernel-headers
kernel-devel
kernel-debugsource
kernel-debuginfo
kernel
bpftool
bpftool-debuginfo

How to mitigate CVE-2024-38561

Install update from vendor's website.

Linux kernel - addressed in versions 6.1.93, 6.6.33, 6.8.12, 6.10
linux (Ubuntu package) - update to 6.8.0-40.40
linux-lowlatency (Ubuntu package) - update to 6.8.0-40.40.1
linux-raspi (Ubuntu package) - update to 6.8.0-1009.10
linux-azure (Ubuntu package) - update to 6.8.0-1012.14
linux-gcp (Ubuntu package) - update to 6.8.0-1012.13
linux-aws (Ubuntu package) - update to 6.8.0-1013.14
linux-ibm (Ubuntu package) - update to 6.8.0-1010.10
linux-oracle (Ubuntu package) - update to 6.8.0-1010.10
linux-nvidia (Ubuntu package) - update to 6.8.0-1011.11
linux-oem-6.8 (Ubuntu package) - update to 6.8.0-1010.10
linux-nvidia-lowlatency (Ubuntu package) - update to 6.8.0-1011.11.1
linux-nvidia-6.8 (Ubuntu package) - update to 6.8.0-1011.11~22.04.1
linux-gke (Ubuntu package) - update to 6.8.0-1008.11
python3-perf-debuginfo - addressed in versions 5.10.0-136.88.0.169, 5.10.0-222.0.0.121, 5.10.0-222.0.0.125, 6.6.0-39.0.0.47
python3-perf - addressed in versions 5.10.0-136.88.0.169, 5.10.0-222.0.0.121, 5.10.0-222.0.0.125, 6.6.0-39.0.0.47
perf-debuginfo - addressed in versions 5.10.0-136.88.0.169, 5.10.0-222.0.0.121, 5.10.0-222.0.0.125, 6.6.0-39.0.0.47
perf - addressed in versions 5.10.0-136.88.0.169, 5.10.0-222.0.0.121, 5.10.0-222.0.0.125, 6.6.0-39.0.0.47
kernel-tools-devel - addressed in versions 5.10.0-136.88.0.169, 5.10.0-222.0.0.121, 5.10.0-222.0.0.125, 6.6.0-39.0.0.47
kernel-tools-debuginfo - addressed in versions 5.10.0-136.88.0.169, 5.10.0-222.0.0.121, 5.10.0-222.0.0.125, 6.6.0-39.0.0.47
kernel-tools - addressed in versions 5.10.0-136.88.0.169, 5.10.0-222.0.0.121, 5.10.0-222.0.0.125, 6.6.0-39.0.0.47
kernel-source - addressed in versions 5.10.0-136.88.0.169, 5.10.0-222.0.0.121, 5.10.0-222.0.0.125, 6.6.0-39.0.0.47
kernel-headers - addressed in versions 5.10.0-136.88.0.169, 5.10.0-222.0.0.121, 5.10.0-222.0.0.125, 6.6.0-39.0.0.47
kernel-devel - addressed in versions 5.10.0-136.88.0.169, 5.10.0-222.0.0.121, 5.10.0-222.0.0.125, 6.6.0-39.0.0.47
kernel-debugsource - addressed in versions 5.10.0-136.88.0.169, 5.10.0-222.0.0.121, 5.10.0-222.0.0.125, 6.6.0-39.0.0.47
kernel-debuginfo - addressed in versions 5.10.0-136.88.0.169, 5.10.0-222.0.0.121, 5.10.0-222.0.0.125, 6.6.0-39.0.0.47
kernel - addressed in versions 5.10.0-136.88.0.169, 5.10.0-222.0.0.121, 5.10.0-222.0.0.125, 6.6.0-39.0.0.47
bpftool - addressed in versions 5.10.0-222.0.0.121, 6.6.0-39.0.0.47
bpftool-debuginfo - addressed in versions 5.10.0-222.0.0.121, 6.6.0-39.0.0.47

External References

Related Security Bulletins