CVE-2022-50512
ext4: fix potential memory leak in ext4_fc_record_regions()
Mitigation
- Upgrade Linux to 7069d105c1f15c442b68af43f7fde784f3126739 or later.
Who should check
- Anyone running Linux >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 2cfb769d60a2a57eb3566765428b6131cd16dcfe; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 417b0455a0b6d0f60a2930592731d1f8340e24be; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < a4058b869e6c5e517c79e30532a350d0f3115c3e; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 518566e71ad86b7c2f1bf6d9caee9588bb7ac158; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 7069d105c1f15c442b68af43f7fde784f3126739
- Anyone running Linux 5.10
Vulnerability facts
- Affected
- Linux >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 2cfb769d60a2a57eb3566765428b6131cd16dcfe; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 417b0455a0b6d0f60a2930592731d1f8340e24be; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < a4058b869e6c5e517c79e30532a350d0f3115c3e; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 518566e71ad86b7c2f1bf6d9caee9588bb7ac158; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 7069d105c1f15c442b68af43f7fde784f3126739; Linux 5.10
- Fixed in
- Linux 2cfb769d60a2a57eb3566765428b6131cd16dcfe, Linux 417b0455a0b6d0f60a2930592731d1f8340e24be, Linux 518566e71ad86b7c2f1bf6d9caee9588bb7ac158, Linux 7069d105c1f15c442b68af43f7fde784f3126739
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- CWE
- CWE-401
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 2cfb769d60a2a57eb3566765428b6131cd16dcfe; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 417b0455a0b6d0f60a2930592731d1f8340e24be; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < a4058b869e6c5e517c79e30532a350d0f3115c3e; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 518566e71ad86b7c2f1bf6d9caee9588bb7ac158; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 7069d105c1f15c442b68af43f7fde784f3126739 | — | cvelist |
| Linux | 5.10 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-50512. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-50512.md Affected: Linux >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 2cfb769d60a2a57eb3566765428b6131cd16dcfe; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 417b0455a0b6d0f60a2930592731d1f8340e24be; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < a4058b869e6c5e517c79e30532a350d0f3115c3e; >= 8016e29f4362e285f0f7e38… Fixed in: Linux 2cfb769d60a2a57eb3566765428b6131cd16dcfe, Linux 417b0455a0b6d0f60a2930592731d1f8340e24be, Linux 518566e71ad86b7c2f1bf6d9caee9588bb7ac158, Linux 7069d105c1f15c442b68af43f7fde784f3126739 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/2cfb769d60a2a57eb3566765428b6131cd16dcfe
- https://git.kernel.org/stable/c/417b0455a0b6d0f60a2930592731d1f8340e24be
- https://git.kernel.org/stable/c/a4058b869e6c5e517c79e30532a350d0f3115c3e
- https://git.kernel.org/stable/c/518566e71ad86b7c2f1bf6d9caee9588bb7ac158
- https://git.kernel.org/stable/c/7069d105c1f15c442b68af43f7fde784f3126739
FAQ
Is CVE-2022-50512 being exploited?
There is no confirmed exploitation: CVE-2022-50512 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-50512?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-50512?
Linux >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 2cfb769d60a2a57eb3566765428b6131cd16dcfe; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 417b0455a0b6d0f60a2930592731d1f8340e24be; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < a4058b869e6c5e517c79e30532a350d0f3115c3e; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 518566e71ad86b7c2f1bf6d9caee9588bb7ac158; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 7069d105c1f15c442b68af43f7fde784f3126739; Linux 5.10.
Is there a fix for CVE-2022-50512?
Yes. Fixed in Linux 2cfb769d60a2a57eb3566765428b6131cd16dcfe, Linux 417b0455a0b6d0f60a2930592731d1f8340e24be, Linux 518566e71ad86b7c2f1bf6d9caee9588bb7ac158, Linux 7069d105c1f15c442b68af43f7fde784f3126739. Upgrade Linux to 7069d105c1f15c442b68af43f7fde784f3126739 or later.
How do I check if I'm affected by CVE-2022-50512?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.