CVE-2022-48712 ext4: fix error handling in ext4_fc_record_modified_inode()
A flaw in the Linux kernel's ext4 file system allows memory corruption due to improper error handling, potentially leading to code execution or system crashes.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-48712?
CVE-2022-48712 is a high-severity memory corruption vulnerability in Linux kernel, published on 20 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
ext4: fix error handling in ext4_fc_record_modified_inode()
Current code does not fully takes care of krealloc() error case, which could lead to silent memory corruption or a kernel bug. This patch fixes that.
Also it cleans up some duplicated error handling logic from various functions in fast_commit.c file.
Weakness: CWE-787
Which versions are affected by CVE-2022-48712?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-48712?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-48712 being exploited?
There is no known exploitation of CVE-2022-48712 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-48712, GHSA-w48q-m5vp-9pqr, UBUNTU-CVE-2022-48712.