CVE-2022-48988
kernel: memcg: fix possible use-after-free in memcg_write_event_control()
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 21, 2024
Updated · October 29, 2026
Description
A flaw was found in the Linux kernel's memory cgroup (memcg) component. A missing file type check in the memcg_write_event_control() function allows arbitrary files to bypass validation. This can lead to a use-after-free condition when d_name and parent accesses race against file renames and removals. A local attacker could exploit this vulnerability to potentially escalate privileges or cause a denial of service.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
CVSS / CWE
CVSS 3.1 · 7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-416 · Use After Free