Use-after-free in Linux kernel - CVE-2022-50159
Published: June 19, 2025 / Updated: June 21, 2025
Vulnerability identifier: #VU111428
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-2022-50159
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 ima_get_kexec_buffer() function in drivers/of/kexec.c. A local user can escalate privileges on the system.
Affected software
Linux kernel
openEuler
kernel
bpftool
bpftool-debuginfo
kernel-debuginfo
kernel-debugsource
kernel-devel
kernel-headers
kernel-source
kernel-tools
kernel-tools-debuginfo
kernel-tools-devel
perf
perf-debuginfo
python3-perf
python3-perf-debuginfo
openEuler
kernel
bpftool
bpftool-debuginfo
kernel-debuginfo
kernel-debugsource
kernel-devel
kernel-headers
kernel-source
kernel-tools
kernel-tools-debuginfo
kernel-tools-devel
perf
perf-debuginfo
python3-perf
python3-perf-debuginfo
How to mitigate CVE-2022-50159
Install update from vendor's repository.
Linux kernel - update to 5.18.18
kernel - update to 5.10.0-301.0.0.204
bpftool - update to 5.10.0-301.0.0.204
bpftool-debuginfo - update to 5.10.0-301.0.0.204
kernel-debuginfo - update to 5.10.0-301.0.0.204
kernel-debugsource - update to 5.10.0-301.0.0.204
kernel-devel - update to 5.10.0-301.0.0.204
kernel-headers - update to 5.10.0-301.0.0.204
kernel-source - update to 5.10.0-301.0.0.204
kernel-tools - update to 5.10.0-301.0.0.204
kernel-tools-debuginfo - update to 5.10.0-301.0.0.204
kernel-tools-devel - update to 5.10.0-301.0.0.204
perf - update to 5.10.0-301.0.0.204
perf-debuginfo - update to 5.10.0-301.0.0.204
python3-perf - update to 5.10.0-301.0.0.204
python3-perf-debuginfo - update to 5.10.0-301.0.0.204
kernel - update to 5.10.0-301.0.0.204
bpftool - update to 5.10.0-301.0.0.204
bpftool-debuginfo - update to 5.10.0-301.0.0.204
kernel-debuginfo - update to 5.10.0-301.0.0.204
kernel-debugsource - update to 5.10.0-301.0.0.204
kernel-devel - update to 5.10.0-301.0.0.204
kernel-headers - update to 5.10.0-301.0.0.204
kernel-source - update to 5.10.0-301.0.0.204
kernel-tools - update to 5.10.0-301.0.0.204
kernel-tools-debuginfo - update to 5.10.0-301.0.0.204
kernel-tools-devel - update to 5.10.0-301.0.0.204
perf - update to 5.10.0-301.0.0.204
perf-debuginfo - update to 5.10.0-301.0.0.204
python3-perf - update to 5.10.0-301.0.0.204
python3-perf-debuginfo - update to 5.10.0-301.0.0.204
External References
- https://git.kernel.org/stable/c/1b2263d6c86fca8f30e18231778393bfc287bb27
- https://git.kernel.org/stable/c/beb5bba5dd132650c073f815c685c60c3e5b783b
- https://git.kernel.org/stable/c/cbf9c4b9617b6767886a913705ca14b7600c77db
- https://git.kernel.org/stable/c/dc3b8525f83ac6bbc885bb24bbb8a76f4622200e
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.18.18