BlackTreeIndependent security intelligence
← Back to the CVE catalogue
Full vulnerability report · 2024
CVE-2022-48988High confidence

memcg: fix possible use-after-free in memcg_write_event_control()

Linux · Linux

7.8HighCVSS 3.1
Recommended action
Within 7 days

High technical severity; prioritise exposed affected systems while verifying vendor guidance.

Patch available
Distribution package intelligence

Ubuntu vendor package status

Canonical’s release and source-package findings are shown separately from local repository availability.

1 package state
Repository candidate not checked

A published vendor fix does not prove that a matching update is enabled and installable on a particular asset. Confirm the local package candidate before scheduling remediation.

Ubuntu releaseSource packageVendor stateFixed versionEvidence
Ubuntu 24.04 LTSnoble · standard archivelinux-raspi-realtimeAffected, no fix publishedCanonical OVAL identifies this running kernel flavour as affected and does not publish a fixed package version in this definition.Not published in this feedCanonical record ↗Source updated 8 Sept 2026
Optional official sources

National CERT insights
?CERT means Computer Emergency Response Team; CSIRT is the closely related term Computer Security Incident Response Team.

Select the national-authority views to include. The exact source language is shown on each matched advisory. Your choice is remembered on this device and encoded in the shareable URL.

Official European source

ENISA European Vulnerability Database

Official EUVD identifiers, advisory evidence and known-exploited context. Missing fields are not treated as evidence of low risk.

1 current
ENISA EUVD identifier

EUVD-2022-53867

No EUVD known-exploited evidence

ENISA has published the identifier mapping but no EUVD description has been stored yet.

EUVD state
Present in the current official mapping
Known exploitation
Not present in the current ENISA EUVD known-exploited dataset. This is not proof of no exploitation.
ENISA score
Not supplied in the stored EUVD record
Advisory evidence
No linked advisory details stored yet
Recommended actionWithin 7 days

High technical severity; prioritise exposed affected systems while verifying vendor guidance.

Patch available
01

What, why and how

In the Linux kernel, the following vulnerability has been resolved: memcg: fix possible use-after-free in memcg_write_event_control() memcg_write_event_control() accesses the dentry->d_name of the specified control fd to route the write call. As a cgroup interface file can't be renamed, it's safe to access d_name as long as the specified file is a regular cgroup file. Also, as these cgroup interface files can't be removed before the directory, it's safe to access the parent too. Prior to 347c4a874710 ("memcg: remove cgroup_event->cft"), there was a call to __file_cft() which verified that the specified file is a regular cgroupfs file before further accesses. The cftype pointer returned from __file_cft() was no longer necessary and the commit inadvertently dropped the file type check with it allowing any file to slip through. With the invarients broken, the d_name and parent accesses can now race against renames and removals of arbitrary files and cause use-after-free's. Fix the bug by resurrecting the file type check in __file_cft(). Now that cgroupfs is implemented through kernfs, checking the file operations needs to go through a layer of indirection. Instead, let's check the superblock and dentry type.

What

In the Linux kernel, the following vulnerability has been resolved: memcg: fix possible use-after-free in memcg_write_event_control() memcg_write_event_control() accesses the dentry->d_name of the specified control fd to route the write call. As a cgroup interface file can't be renamed, it's safe to access d_name as long as the specified file is a regular cgroup file. Also, as these cgroup interface files can't be removed before the directory, it's safe to access the parent too. Prior to 347c4a874710 ("memcg: remove cgroup_event->cft"), there was a call to __file_cft() which verified that the specified file is a regular cgroupfs file before further accesses. The cftype pointer returned from __file_cft() was no longer necessary and the commit inadvertently dropped the file type check with it allowing any file to slip through. With the invarients broken, the d_name and parent accesses can now race against renames and removals of arbitrary files and cause use-after-free's. Fix the bug by resurrecting the file type check in __file_cft(). Now that cgroupfs is implemented through kernfs, checking the file operations needs to go through a layer of indirection. Instead, let's check the superblock and dentry type.

Why

The program can continue using memory after it has been released, producing unsafe and attacker-influenceable behaviour.

How

An attacker operating through local access may attempt exploitation with low privileges. If successful, the issue may cause the confidentiality, integrity or availability impact described by the vendor.

What

In the Linux kernel, the following vulnerability has been resolved: memcg: fix possible use-after-free in memcg_write_event_control() memcg_write_event_control() accesses the dentry->d_name of the specified control fd to route the write call. As a cgroup interface file can't be renamed, it's safe to access d_name as long as the specified file is a regular cgroup file. Also, as these cgroup interface files can't be removed before the directory, it's safe to access the parent too. Prior to 347c4a874710 ("memcg: remove cgroup_event->cft"), there was a call to __file_cft() which verified that the specified file is a regular cgroupfs file before further accesses. The cftype pointer returned from __file_cft() was no longer necessary and the commit inadvertently dropped the file type check with it allowing any file to slip through. With the invarients broken, the d_name and parent accesses can now race against renames and removals of arbitrary files and cause use-after-free's. Fix the bug by resurrecting the file type check in __file_cft(). Now that cgroupfs is implemented through kernfs, checking the file operations needs to go through a layer of indirection. Instead, let's check the superblock and dentry type.

Why

The program can continue using memory after it has been released, producing unsafe and attacker-influenceable behaviour.

How

An attacker operating through local access may attempt exploitation with low privileges. If successful, the issue may cause the confidentiality, integrity or availability impact described by the vendor.

02

Exploit reality and attack path

CVSS severity, EPSS forecast probability, public exploit material and CISA-confirmed exploitation are separate signals.

Observed exploitation
?Confirmed exploitation and public exploit material are separate signals. Attacks can occur without public proof-of-concept or exploit code.
No confirmed evidence

No CISA KEV match was present at the last successful refresh. This means no confirmation from that source, not proof of no exploitation.

Public PoC / exploit material
?Confirmed exploitation and public exploit material are separate signals. Attacks can occur without public proof-of-concept or exploit code.
None recorded

No exploit-tagged reference or CISA SSVC proof-of-concept state is currently recorded. Research may still exist outside the structured feeds.

Likely attack path
local access → Use After Free → cause the confidentiality, integrity or availability impact described by the vendor
Attack surface
Local
Privileges required
Low: a basic authenticated account is required
User interaction
None
Attack complexity
Low: no specialised conditions are recorded
Security boundary
Unchanged: impact remains within the vulnerable component's security authority
Weakness
?CWE means Common Weakness Enumeration: a standard category for the underlying weakness.
CWE-416

CWE-416: Use After Free. The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.

CVSS vector
?CVSS means Common Vulnerability Scoring System. The vector records the metric values used to calculate technical severity.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Common Vulnerability Scoring System 3.1: the compact vector below is decoded into plain language.

AVLocalAttack vector: The attacker needs local access to the vulnerable system.ACLowAttack complexity: No specialised conditions are required beyond attacker-controlled input.PRLowPrivileges required: The attacker needs basic user-level privileges.UINoneUser interaction: No action by another user is required.SUnchangedScope: The security impact remains within the vulnerable component's authority.CHighConfidentiality impact: A successful attack can cause a major loss.IHighIntegrity impact: A successful attack can cause a major loss.AHighAvailability impact: A successful attack can cause a major loss.
Post-exploitation / living off the land
The issue can support a local privilege or sandbox boundary transition; normal system utilities may then be available in the gained context.
CWE-416
A

Official authority intelligence

Only matched European and national findings are included. Language selectors and unavailable sources are omitted.

BSI · German · WID-SEC-W-2024-3251Linux Kernel: Mehrere Schwachstellen ermöglichen Denial of Service

Ein Angreifer kann mehrere Schwachstellen in Linux Kernel ausnutzen, um einen Denial of Service Angriff durchzuführen oder andere, nicht näher bekannte Auswirkungen zu erzielen..

Official advisory
CERT-FR · French · CERTFR-2025-AVI-1057Multiples vulnérabilités dans les produits VMware

d?id=CVE-2022-48976 Référence CVE CVE-2022-48978 https://www.cve.org/CVERecord?id=CVE-2022-48978 Référence CVE CVE-2022-48981 https://www.cve.org/CVERecord?id=CVE-2022-48981 Référence CVE CVE-2022-48982 https://www.cve.org/CVERecord?id=CVE-2022-48982 Référence CVE CVE-2022-48983 https://www.cve.org/CVERecord?id=CVE-2022-48983 Référence CVE CVE-2022-48984 https://www.cve.org/CVERecord?id=CVE-2022-48984 Référence CVE CVE-2022-48985 https://www.cve.org/CVERecord?id=CVE-2022-48985 Référence CVE CVE-2022-48986 https://www.cve.org/CVERecord?id=CVE-2022-48986 Référence CVE CVE-2022-48987 https://www.cve.org/CVERecord?id=CVE-2022-48987 Référence CVE CVE-2022-48988 https://www.cve.org/CVERecord?id=CVE-2022-48988 Référence CVE CVE-2022-48989 https://www.cve.org/CVERecord?id=CVE-2022-48989 Référence CVE CVE-2022-4899 https://www.cve.org/CVERecord?id=CVE-2022-4899 Référence CVE CVE-2022-48992 https://www.cve.org/CVERecord?id=CVE-2022-48992 Référence CVE CVE-2022-48994 https://www.cve.org/CVERecord?id=CVE-2022-48994 Référence CVE CVE-2022-48997 https://www.cve.org/CVERecord?id=CVE-2022-48997 Référence CVE CVE-2022-49005 https://www.cve.org/CVERecord?id=CVE-2022-49005 Référence CVE CVE-2022-49006 https://www.cve.org/CVERecord?id=CVE-2022-49006 Référence CVE CVE-2022-49011 https://www.cve.org/CVERecord?id=CV

Official advisory
CERT-FR · French · CERTFR-2025-AVI-0024Multiples vulnérabilités dans le noyau Linux de SUSE

d?id=CVE-2022-48962 Référence CVE CVE-2022-48966 https://www.cve.org/CVERecord?id=CVE-2022-48966 Référence CVE CVE-2022-48967 https://www.cve.org/CVERecord?id=CVE-2022-48967 Référence CVE CVE-2022-48969 https://www.cve.org/CVERecord?id=CVE-2022-48969 Référence CVE CVE-2022-48971 https://www.cve.org/CVERecord?id=CVE-2022-48971 Référence CVE CVE-2022-48972 https://www.cve.org/CVERecord?id=CVE-2022-48972 Référence CVE CVE-2022-48973 https://www.cve.org/CVERecord?id=CVE-2022-48973 Référence CVE CVE-2022-48978 https://www.cve.org/CVERecord?id=CVE-2022-48978 Référence CVE CVE-2022-48985 https://www.cve.org/CVERecord?id=CVE-2022-48985 Référence CVE CVE-2022-48988 https://www.cve.org/CVERecord?id=CVE-2022-48988 Référence CVE CVE-2022-48991 https://www.cve.org/CVERecord?id=CVE-2022-48991 Référence CVE CVE-2022-48992 https://www.cve.org/CVERecord?id=CVE-2022-48992 Référence CVE CVE-2022-48997 https://www.cve.org/CVERecord?id=CVE-2022-48997 Référence CVE CVE-2022-49000 https://www.cve.org/CVERecord?id=CVE-2022-49000 Référence CVE CVE-2022-49002 https://www.cve.org/CVERecord?id=CVE-2022-49002 Référence CVE CVE-2022-49010 https://www.cve.org/CVERecord?id=CVE-2022-49010 Référence CVE CVE-2022-49011 https://www.cve.org/CVERecord?id=CVE-2022-49011 Référence CVE CVE-2022-49014 https://www.cve.org/CVERecord?id=

Official advisory
CERT-FR · French · CERTFR-2024-AVI-1102Multiples vulnérabilités dans le noyau Linux de SUSE

d?id=CVE-2022-48977 Référence CVE CVE-2022-48978 https://www.cve.org/CVERecord?id=CVE-2022-48978 Référence CVE CVE-2022-48979 https://www.cve.org/CVERecord?id=CVE-2022-48979 Référence CVE CVE-2022-48980 https://www.cve.org/CVERecord?id=CVE-2022-48980 Référence CVE CVE-2022-48981 https://www.cve.org/CVERecord?id=CVE-2022-48981 Référence CVE CVE-2022-48982 https://www.cve.org/CVERecord?id=CVE-2022-48982 Référence CVE CVE-2022-48983 https://www.cve.org/CVERecord?id=CVE-2022-48983 Référence CVE CVE-2022-48985 https://www.cve.org/CVERecord?id=CVE-2022-48985 Référence CVE CVE-2022-48987 https://www.cve.org/CVERecord?id=CVE-2022-48987 Référence CVE CVE-2022-48988 https://www.cve.org/CVERecord?id=CVE-2022-48988 Référence CVE CVE-2022-48989 https://www.cve.org/CVERecord?id=CVE-2022-48989 Référence CVE CVE-2022-48990 https://www.cve.org/CVERecord?id=CVE-2022-48990 Référence CVE CVE-2022-48991 https://www.cve.org/CVERecord?id=CVE-2022-48991 Référence CVE CVE-2022-48992 https://www.cve.org/CVERecord?id=CVE-2022-48992 Référence CVE CVE-2022-48994 https://www.cve.org/CVERecord?id=CVE-2022-48994 Référence CVE CVE-2022-48995 https://www.cve.org/CVERecord?id=CVE-2022-48995 Référence CVE CVE-2022-48997 https://www.cve.org/CVERecord?id=CVE-2022-48997 Référence CVE CVE-2022-48999 https://www.cve.org/CVERecord?id=

Official advisory
CERT-FR · French · CERTFR-2024-AVI-1048Multiples vulnérabilités dans le noyau Linux de SUSE

d?id=CVE-2022-48971 Référence CVE CVE-2022-48972 https://www.cve.org/CVERecord?id=CVE-2022-48972 Référence CVE CVE-2022-48973 https://www.cve.org/CVERecord?id=CVE-2022-48973 Référence CVE CVE-2022-48975 https://www.cve.org/CVERecord?id=CVE-2022-48975 Référence CVE CVE-2022-48977 https://www.cve.org/CVERecord?id=CVE-2022-48977 Référence CVE CVE-2022-48978 https://www.cve.org/CVERecord?id=CVE-2022-48978 Référence CVE CVE-2022-48981 https://www.cve.org/CVERecord?id=CVE-2022-48981 Référence CVE CVE-2022-48985 https://www.cve.org/CVERecord?id=CVE-2022-48985 Référence CVE CVE-2022-48987 https://www.cve.org/CVERecord?id=CVE-2022-48987 Référence CVE CVE-2022-48988 https://www.cve.org/CVERecord?id=CVE-2022-48988 Référence CVE CVE-2022-48991 https://www.cve.org/CVERecord?id=CVE-2022-48991 Référence CVE CVE-2022-48992 https://www.cve.org/CVERecord?id=CVE-2022-48992 Référence CVE CVE-2022-48994 https://www.cve.org/CVERecord?id=CVE-2022-48994 Référence CVE CVE-2022-48995 https://www.cve.org/CVERecord?id=CVE-2022-48995 Référence CVE CVE-2022-48997 https://www.cve.org/CVERecord?id=CVE-2022-48997 Référence CVE CVE-2022-48999 https://www.cve.org/CVERecord?id=CVE-2022-48999 Référence CVE CVE-2022-49000 https://www.cve.org/CVERecord?id=CVE-2022-49000 Référence CVE CVE-2022-49002 https://www.cve.org/CVERecord?id=

Official advisory
CERT-FR · French · CERTFR-2024-AVI-1033Multiples vulnérabilités dans le noyau Linux de SUSE

d?id=CVE-2022-48971 Référence CVE CVE-2022-48972 https://www.cve.org/CVERecord?id=CVE-2022-48972 Référence CVE CVE-2022-48973 https://www.cve.org/CVERecord?id=CVE-2022-48973 Référence CVE CVE-2022-48975 https://www.cve.org/CVERecord?id=CVE-2022-48975 Référence CVE CVE-2022-48977 https://www.cve.org/CVERecord?id=CVE-2022-48977 Référence CVE CVE-2022-48978 https://www.cve.org/CVERecord?id=CVE-2022-48978 Référence CVE CVE-2022-48981 https://www.cve.org/CVERecord?id=CVE-2022-48981 Référence CVE CVE-2022-48985 https://www.cve.org/CVERecord?id=CVE-2022-48985 Référence CVE CVE-2022-48987 https://www.cve.org/CVERecord?id=CVE-2022-48987 Référence CVE CVE-2022-48988 https://www.cve.org/CVERecord?id=CVE-2022-48988 Référence CVE CVE-2022-48991 https://www.cve.org/CVERecord?id=CVE-2022-48991 Référence CVE CVE-2022-48992 https://www.cve.org/CVERecord?id=CVE-2022-48992 Référence CVE CVE-2022-48994 https://www.cve.org/CVERecord?id=CVE-2022-48994 Référence CVE CVE-2022-48995 https://www.cve.org/CVERecord?id=CVE-2022-48995 Référence CVE CVE-2022-48997 https://www.cve.org/CVERecord?id=CVE-2022-48997 Référence CVE CVE-2022-48999 https://www.cve.org/CVERecord?id=CVE-2022-48999 Référence CVE CVE-2022-49000 https://www.cve.org/CVERecord?id=CVE-2022-49000 Référence CVE CVE-2022-49002 https://www.cve.org/CVERecord?id=

Official advisory
CERT-FR · French · CERTFR-2024-AVI-0999Multiples vulnérabilités dans le noyau Linux de SUSE

d?id=CVE-2022-48972 Référence CVE CVE-2022-48973 https://www.cve.org/CVERecord?id=CVE-2022-48973 Référence CVE CVE-2022-48975 https://www.cve.org/CVERecord?id=CVE-2022-48975 Référence CVE CVE-2022-48977 https://www.cve.org/CVERecord?id=CVE-2022-48977 Référence CVE CVE-2022-48978 https://www.cve.org/CVERecord?id=CVE-2022-48978 Référence CVE CVE-2022-48980 https://www.cve.org/CVERecord?id=CVE-2022-48980 Référence CVE CVE-2022-48981 https://www.cve.org/CVERecord?id=CVE-2022-48981 Référence CVE CVE-2022-48985 https://www.cve.org/CVERecord?id=CVE-2022-48985 Référence CVE CVE-2022-48987 https://www.cve.org/CVERecord?id=CVE-2022-48987 Référence CVE CVE-2022-48988 https://www.cve.org/CVERecord?id=CVE-2022-48988 Référence CVE CVE-2022-48991 https://www.cve.org/CVERecord?id=CVE-2022-48991 Référence CVE CVE-2022-48992 https://www.cve.org/CVERecord?id=CVE-2022-48992 Référence CVE CVE-2022-48994 https://www.cve.org/CVERecord?id=CVE-2022-48994 Référence CVE CVE-2022-48995 https://www.cve.org/CVERecord?id=CVE-2022-48995 Référence CVE CVE-2022-48997 https://www.cve.org/CVERecord?id=CVE-2022-48997 Référence CVE CVE-2022-48999 https://www.cve.org/CVERecord?id=CVE-2022-48999 Référence CVE CVE-2022-49000 https://www.cve.org/CVERecord?id=CVE-2022-49000 Référence CVE CVE-2022-49002 https://www.cve.org/CVERecord?id=

Official advisory
03

Patch and workaround

Operational remediation based on structured source evidence.

Status
?Patch availability is based on structured fixed-version fields and authoritative update references. If no fix is verified, check the vendor advisory before making a change.
Patch available
Affected
347c4a8747104a945ecced358944e42879176ca5 < b77600e26fd48727a95ffd50ba1e937efb548125; 347c4a8747104a945ecced358944e42879176ca5 < e1ae97624ecf400ea56c238bff23e5cd139df0b8; 347c4a8747104a945ecced358944e42879176ca5 < 35963b31821920908e397146502066f6b032c917; 347c4a8747104a945ecced358944e42879176ca5 < f1f7f36cf682fa59db15e2089039a2eeb58ff2ad; 347c4a8747104a945ecced358944e42879176ca5 < aad8bbd17a1d586005feb9226c2e9cfce1432e13; 347c4a8747104a945ecced358944e42879176ca5 < 0ed074317b835caa6c03bcfa8f133365324673dc; 347c4a8747104a945ecced358944e42879176ca5 < 4a7ba45b1a435e7097ca0f79a847d0949d0eb088; 3.14
Fixed
< 3.14; 4.14.302 ≤ 4.14.*; 4.19.269 ≤ 4.19.*; 5.4.227 ≤ 5.4.*; 5.10.159 ≤ 5.10.*; 5.15.83 ≤ 5.15.*; 6.0.13 ≤ 6.0.*; 6.1 ≤ *
Action
Review the linked authoritative reference and apply the recorded fixed release appropriate to the affected product branch.
Workaround
No verified workaround is recorded. Limit untrusted access and use least privilege until authoritative guidance is available.
04

Evidence and provenance

Published 21 Oct 2024 · Last source change 5 Aug 2026, 08:53 UTC · CWE-416 · Use After Free

CVE recordCVE.org · 5.2
CVSS sourceCNA
EPSS source
?The date BlackTree first stored a score for this CVE from the daily FIRST EPSS feed.
FIRST · tracked since 2026-08-14
European sourceENISA EUVD · EUVD-2022-53867
Product sourceCNA
Remediation sourceCVE/CNA references
CWE sourceNIST NVD
NVD statusNVD modified after enrichment

Core structured fields are present and their contributing authorities are shown above.

Material change intelligence

What changed after publication

View recent updates →

No material field changes have been recorded since change tracking began. Routine source refreshes and cosmetic edits are intentionally excluded.

Material fields only · duplicate refreshes suppressed · history retained for the configured operational retention period
Technical terms and abbreviations used in this report
CVE
Common Vulnerabilities and Exposures: the public identifier for one disclosed vulnerability.
CVSS
Common Vulnerability Scoring System: a technical severity framework; it is not patching priority by itself.
EPSS
Exploit Prediction Scoring System: FIRST's estimate of the probability that exploitation activity will be observed in the next 30 days; it is a forecast, not confirmation.
CWE
Common Weakness Enumeration: the standard category describing the underlying software or hardware weakness.
CNA
CVE Numbering Authority: an organisation authorised to assign and publish CVE records.
CISA ADP
Cybersecurity and Infrastructure Security Agency Authorized Data Publisher: structured enrichment added to a CVE record.
NVD
National Vulnerability Database: NIST's enrichment service for CVE records.
CERT / CSIRT
A computer security incident response team that publishes warnings or coordinates incident response.
PoC
Proof of concept: public material that demonstrates or helps reproduce exploitation.
CSAF
Common Security Advisory Framework: a machine-readable format for security advisories.
LoTL
Living off the land: abuse of legitimate tools or system functions during an attack.
Free version - for non-commercial use only.CVE-2022-48988 · cve.blacktree.nl