CVE-2022-50306 ext4: fix potential out of bound read in ext4_fc_replay_scan()

High 7.1 Published Updated

A local attacker can cause an out-of-bounds read and potential denial of service by mounting a corrupted ext4 filesystem image.

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-50306?

CVE-2022-50306 is a high-severity memory corruption vulnerability in Linux kernel, published on 15 Sep 2025. 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

In the Linux kernel, the following vulnerability has been resolved:

ext4: fix potential out of bound read in ext4_fc_replay_scan()

For scan loop must ensure that at least EXT4_FC_TAG_BASE_LEN space. If remain space less than EXT4_FC_TAG_BASE_LEN which will lead to out of bound read when mounting corrupt file system image. ADD_RANGE/HEAD/TAIL is needed to add extra check when do journal scan, as this three tags will read data during scan, tag length couldn't less than data length which will read.

Weakness: CWE-125

Which versions are affected by CVE-2022-50306?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-50306?

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-50306 being exploited?

There is no known exploitation of CVE-2022-50306 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-50306, GHSA-9vr8-rq9x-pjp8, ROOT-OS-DEBIAN-11-CVE-2022-50306, UBUNTU-CVE-2022-50306.

Is CVE-2022-50306 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free