CVE-2022-1304 Memory corruption in e2fsprogs
Attackers can trigger arbitrary code execution or crashes in e2fsprogs by mounting a specially crafted filesystem.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-1304?
CVE-2022-1304 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, published on 14 Apr 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
An out-of-bounds read/write vulnerability was found in e2fsprogs 1.46.5. This issue leads to a segmentation fault and possibly arbitrary code execution via a specially crafted filesystem.
Which versions are affected by CVE-2022-1304?
It affects 3 products.
Linux distribution packages (40)
e2fsprogs AlmaLinux:8 | All versions | 1.45.6-5.el8 |
e2fsprogs-devel AlmaLinux:8 | All versions | 1.45.6-5.el8 |
e2fsprogs-libs AlmaLinux:8 | All versions | 1.45.6-5.el8 |
libcom_err AlmaLinux:8 | All versions | 1.45.6-5.el8 |
libcom_err-devel AlmaLinux:8 | All versions | 1.45.6-5.el8 |
libss AlmaLinux:8 | All versions | 1.45.6-5.el8 |
libss-devel AlmaLinux:8 | All versions | 1.45.6-5.el8 |
e2fsprogs AlmaLinux:9 | All versions | 1.46.5-3.el9 |
e2fsprogs-devel AlmaLinux:9 | All versions | 1.46.5-3.el9 |
e2fsprogs-libs AlmaLinux:9 | All versions | 1.46.5-3.el9 |
libcom_err AlmaLinux:9 | All versions | 1.46.5-3.el9 |
libcom_err-devel AlmaLinux:9 | All versions | 1.46.5-3.el9 |
libss AlmaLinux:9 | All versions | 1.46.5-3.el9 |
e2fsprogs Red Hat:enterprise_linux:8::baseos | All versions | 0:1.45.6-5.el8 |
e2fsprogs-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:1.45.6-5.el8 |
e2fsprogs-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:1.45.6-5.el8 |
e2fsprogs-devel Red Hat:enterprise_linux:8::baseos | All versions | 0:1.45.6-5.el8 |
e2fsprogs-libs Red Hat:enterprise_linux:8::baseos | All versions | 0:1.45.6-5.el8 |
e2fsprogs-libs-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:1.45.6-5.el8 |
libcom_err Red Hat:enterprise_linux:8::baseos | All versions | 0:1.45.6-5.el8 |
libcom_err-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:1.45.6-5.el8 |
libcom_err-devel Red Hat:enterprise_linux:8::baseos | All versions | 0:1.45.6-5.el8 |
libss Red Hat:enterprise_linux:8::baseos | All versions | 0:1.45.6-5.el8 |
libss-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:1.45.6-5.el8 |
e2fsprogs-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:1.45.6-5.el8 |
e2fsprogs-debugsource Red Hat:enterprise_linux:8::crb | All versions | 0:1.45.6-5.el8 |
e2fsprogs-libs-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:1.45.6-5.el8 |
libcom_err-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:1.45.6-5.el8 |
libss-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:1.45.6-5.el8 |
libss-devel Red Hat:enterprise_linux:8::crb | All versions | 0:1.45.6-5.el8 |
e2fsprogs-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:1.46.5-3.el9 |
e2fsprogs-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:1.46.5-3.el9 |
e2fsprogs-devel Red Hat:enterprise_linux:9::appstream | All versions | 0:1.46.5-3.el9 |
e2fsprogs-libs-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:1.46.5-3.el9 |
libcom_err-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:1.46.5-3.el9 |
libcom_err-devel Red Hat:enterprise_linux:9::appstream | All versions | 0:1.46.5-3.el9 |
libss-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:1.46.5-3.el9 |
e2fsprogs Red Hat:enterprise_linux:9::baseos | All versions | 0:1.46.5-3.el9 |
e2fsprogs-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:1.46.5-3.el9 |
e2fsprogs-debugsource Red Hat:enterprise_linux:9::baseos | All versions | 0:1.46.5-3.el9 |
Products include E2fsprogs Project E2fsprogs, Fedoraproject Fedora, Redhat Enterprise Linux.
How do I fix CVE-2022-1304?
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-1304 being exploited?
There is no known exploitation of CVE-2022-1304 in the wild and no public exploit code.
Sources
Also known as ALPINE-CVE-2022-1304, ALSA-2022:7720, ALSA-2022:8361, AZL-9407, CLSA-2024-1711476689, DEBIAN-CVE-2022-1304 and 15 more.