CVE-2022-49047·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ep93xx: clock: Fix UAF in ep93xx_clk_register_gate() arch/arm/mach-ep93xx/clock.c:154:2: warning: Use of memory after it is freed [clang-analyzer-unix.Malloc] arch/arm/mach-ep93xx/clock.c:151:2: note: Taking true branch if (IS_ERR(clk)) ^ arch/arm/mach-ep93xx/clock.c:152:3: note: Memory is released kfree(psc); ^~~~~~~~~~ arch/arm/mach-ep93xx/clock.c:154:2: note: Use of memory after it is freed return &psc->hw; ^ ~~~~~~~~
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.17.4
- Published
- 2025-02-26
Affected versions
From: 5.16
Until: 5.17.4
Fixed in: 5.17.4
How to fix this CVE
Update your Linux kernel to version 5.17.4 or later to resolve a use-after-free vulnerability in the ep93xx clock gate registration function. This memory safety issue could allow a local attacker with limited privileges to trigger a kernel crash or potentially execute arbitrary code. Systems running kernel versions 5.16 through 5.17.3 should prioritize this update immediately.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check kernel version with: uname -r | grep -E '^5\.(16|17\.[0-3])'
- Step 2: Confirm ep93xx architecture with: grep -i ep93xx /proc/cpuinfo || echo 'Not ep93xx-based'
- Step 3: Review kernel logs for memory-related errors with: sudo dmesg | grep -i -E '(UAF|use-after-free|kernel BUG|segfault)' | tail -20
- Step 4: Verify kernel update was applied by running: uname -r | grep -E '^5\.(17\.[4-9]|1[8-9]|[2-9][0-9])' (should return a version >= 5.17.4)
FAQ
What is CVE-2022-49047?
This CVE is a use-after-free vulnerability in the ep93xx clock gate registration routine within the Linux kernel. The flaw occurs when memory is freed prematurely but still referenced afterward, potentially leading to kernel instability or code execution.
Is CVE-2022-49047 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available. However, the local privilege requirement and high CVSS score (7.8) warrant timely patching.
What versions of Kernel are affected by CVE-2022-49047?
Linux kernel versions 5.16.0 through 5.17.3 are vulnerable. Kernel 5.17.4 and all later versions contain the fix.
How do I check if my server is vulnerable to CVE-2022-49047?
Run 'uname -r' and check if the output matches 5.16.* or 5.17.[0-3]. If it does, your system is vulnerable. Additionally verify your architecture supports ep93xx with 'grep -i ep93xx /proc/cpuinfo'.
Does Defensia detect CVE-2022-49047?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2022-49047 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-49047. Free for 1 server.
Get started free