Bug 2348290 (CVE-2022-49047) - CVE-2022-49047 kernel: ep93xx: clock: Fix UAF in ep93xx_clk_register_gate()
Summary: CVE-2022-49047 kernel: ep93xx: clock: Fix UAF in ep93xx_clk_register_gate()
Keywords:
Status: NEW
Alias: CVE-2022-49047
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:24 UTC by OSIDB Bzimport
Modified: 2025-02-27 08:48 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:24:16 UTC
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;
^ ~~~~~~~~

Comment 1 Avinash Hanwate 2025-02-26 20:19:43 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022651-CVE-2022-49047-fbc3@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.