CVE-2022-49408: ext4: fix memory leak in parse_apply_sb_mount_options()
In the Linux kernel, the following vulnerability has been resolved:
ext4: fix memory leak in parse_apply_sb_mount_options()
If processing the on-disk mount options fails after any memory was
allocated in the ext4_fs_context, e.g. s_qf_names, then this memory is
leaked. Fix this by calling ext4_fc_free() instead of kfree() directly.
Reproducer:
mkfs.ext4 -F /dev/vdc
tune2fs /dev/vdc -E mount_opts=usrjquota=file
echo clear > /sys/kernel/debug/kmemleak
mount /dev/vdc /vdc
echo scan > /sys/kernel/debug/kmemleak
sleep 5
echo scan > /sys/kernel/debug/kmemleak
cat /sys/kernel/debug/kmemleak
Security readout for executives and security teams
Plain-English summary
CVE-2022-49408 is a Linux kernel ext4 bug where failed processing of stored mount options can leak allocated memory. The main business risk is availability: repeated triggering could consume kernel memory and degrade or crash systems. It requires local access and no public source here shows active exploitation.
Executive priority
Treat as a normal-priority kernel availability fix, not an emergency internet-facing incident. Prioritize multi-user Linux hosts, build systems, virtualization workers, and environments that handle untrusted disk images or local mounts.
Technical view
The issue is a CWE-401 memory leak in ext4 parse_apply_sb_mount_options(). If on-disk mount option processing fails after ext4_fs_context allocations such as s_qf_names, cleanup used kfree() instead of ext4_fc_free(). CVSS is 5.5 with local, low-complexity, low-privilege availability impact only.
Likely exposure
Exposure is most relevant on Linux systems using affected ext4 kernel code, especially where local users, services, or automation can mount or process ext4 filesystems with stored mount options. Distro backports may change exact exposure, so kernel vendor status matters.
Exploitation context
The source bundle marks KEV false and provides no evidence of active exploitation. The CVSS vector indicates local access with low privileges and no user interaction. The public description includes a reproducer, but this assessment does not provide offensive steps.
Researcher notes
The evidence supports a local availability flaw in ext4 cleanup error handling. The source bundle does not prove broad exploitability, remote reachability, or confidentiality/integrity impact. Exact affected ranges are ambiguous without distribution-specific kernel backport data.
Mitigation direction
Update to a vendor-supported kernel containing the referenced ext4 stable fixes.
Check Linux distribution advisories for backported fixes and affected package versions.
Restrict local mount capability to trusted administrators and controlled automation.
Avoid processing untrusted ext4 images on affected kernels where possible.
Validation and detection
Inventory running kernel versions and distribution package build numbers.
Confirm vendor advisories map your kernel to fixed or unaffected status.
Review whether systems allow local users or services to mount ext4 filesystems.
Monitor affected hosts for unusual memory pressure after failed mount activity.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-401: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-401 · source CWE mapping
Missing Release of Memory after Effective Lifetime
Missing Release of Memory after Effective Lifetime represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.