CVE-2022-50306

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

State
Published
Severity
7.1 High
Published
Sep 15, 2025
Updated
Aug 5, 2026
Reserved
Sep 15, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 to before 6969367c1500c15eddc38fda12f6d15518ad6d03Affected
  • 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 to before f234294812c9b68d603650d28743eafb718e7ad5Affected
  • 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 to before 1b45cc5c7b920fd8bf72e5a888ec7abeadf41e09Affected
LinuxLinux
  • 5.10Affected
  • before 5.10Not affected
  • 5.15.87 through 5.15.*Not affected
  • 6.0.6 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.