# CVE-2022-49047: ep93xx: clock: Fix UAF in ep93xx_clk_register_gate()

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-02)
- Published: 2025-02-26T01:54:23.471Z
- Modified: 2026-06-17T05:16:55.880Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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;
^ ~~~~~~~~

(As written by CVE List.)

## Affected

- Linux Linux: from 9645ccc7bd7a16cd73c3be9dee70cd702b03be37 before 0f12166872da46c6b57ba2f1314bbf310b3bf017; from 9645ccc7bd7a16cd73c3be9dee70cd702b03be37 before 3b68b08885217abd9c57ff9b3bb3eb173eee02a9; 5.16 (not affected: before 5.16; from 5.17.4 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 5.16 before 5.17.4; 5.18

## References

- <https://git.kernel.org/stable/c/0f12166872da46c6b57ba2f1314bbf310b3bf017> (patch)
- <https://git.kernel.org/stable/c/3b68b08885217abd9c57ff9b3bb3eb173eee02a9> (patch)

## Sources

- CVE List: [CVE-2022-49047](https://www.cve.org/CVERecord?id=CVE-2022-49047), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49047](https://nvd.nist.gov/vuln/detail/CVE-2022-49047), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49047 · Whole record: https://cve.day/CVE-2022-49047.json · Rebuilt by cve.day 2026-11-25T22:58:20.115Z
