CVE-2022-50512

ext4: fix potential memory leak in ext4_fc_record_regions()

MEDIUM
5.5
CVSS Score
Published: October 7, 2025 at 03:19 PM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: ext4: fix potential memory leak in ext4_fc_record_regions() As krealloc may return NULL, in this case 'state->fc_regions' may not be freed by krealloc, but 'state->fc_regions' already set NULL. Then will lead to 'state->fc_regions' memory leak.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.10 ≤ v < 5.10.1505.10 ≤ v < 5.15.755.10 ≤ v < 5.19.175.10 ≤ v < 6.0.35.10 ≤ v < 6.15.11 ≤ v < 5.15.755.16 ≤ v < 5.19.176.0 ≤ v < 6.0.35.108016e29f4362e285f0f7e38fadc61a5b7bdfdfa2
Vendor states this is fixed in 2cfb769d60a2a57eb3566765428b6131cd16dcfe (fixed)
Vendor states this is fixed in 417b0455a0b6d0f60a2930592731d1f8340e24be (fixed)
Vendor states this is fixed in 518566e71ad86b7c2f1bf6d9caee9588bb7ac158 (fixed)
Vendor states this is fixed in 7069d105c1f15c442b68af43f7fde784f3126739 (fixed)
Vendor states this is fixed in a4058b869e6c5e517c79e30532a350d0f3115c3e (fixed)
Vendor states this is fixed in 5.10 (unaffected)
Vendor states this is fixed in 5.10.150 (unaffected)
Vendor states this is fixed in 5.15.75 (unaffected)
Vendor states this is fixed in 5.19.17 (unaffected)
Vendor states this is fixed in 6.0.3 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card