CVE-2022-49879
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49879 is a vulnerability in the Linux kernel's ext4 filesystem implementation, discovered and disclosed on May 1, 2025. The vulnerability affects the directory entry handling mechanism in the ext4 filesystem, specifically when the rec_len field in directory entries contains invalid values that are not multiples of 4 (NVD, Red Hat).

Technical details

The vulnerability occurs in the ext4_rec_len_to_disk() function, called from make_indexed_dir(), where a corrupted filesystem image can trigger a BUG() condition. The issue manifests when the rec_len field in a directory entry is not a multiple of 4, which is a requirement for valid entries. This condition triggers a kernel BUG_ON() at fs/ext4/ext4.h:2413. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) (Red Hat).

Impact

When exploited, this vulnerability can lead to a denial of service condition by triggering a kernel panic, resulting in system crash. The attack requires a specially crafted filesystem image to be mounted on the affected system (Wiz).

Mitigation and workarounds

The vulnerability has been patched by adding a call to ext4_check_dir_entry() to validate the directory entry, which returns -EFSCORRUPTED if the entry is invalid. This validation prevents the system from crashing when encountering malformed directory entries (NVD, Red Hat).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64181HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-4.15
NoYesJul 19, 2026
CVE-2026-64186NONEN/A
  • Linux Kernel logoLinux Kernel
  • libperf
NoYesJul 19, 2026
CVE-2026-64183NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-aws-6.14
NoYesJul 19, 2026
CVE-2026-64182NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-oracle-6.17
NoYesJul 19, 2026
CVE-2026-64180NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-5.4
NoYesJul 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management