Wiz Agents & Workflows are here

CVE-2020-12655
Linux Kernel vulnerability analysis and mitigation

Overview

An issue was discovered in xfs_agf_verify in fs/xfs/libxfs/xfs_alloc.c in the Linux kernel through 5.6.10. The vulnerability (CVE-2020-12655) was discovered by Zheng Bin and reported in early 2020. The issue affects the XFS file system implementation where attackers may trigger a sync of excessive duration via an XFS v5 image with crafted metadata (Ubuntu Security, NVD).

Technical details

The vulnerability exists in the XFS file system's AGF (Allocation Group Free space) verification mechanism. The issue occurs when the filesystem encounters crafted metadata where agf_freeblks is set to 0 while the actual count is different (e.g., counted 3224 blocks), and agf_longest contains invalid values (e.g., 536874136). This mismatch between metadata values can cause the system to enter an endless loop during write operations (Kernel Commit). The vulnerability has a CVSS v3.1 base score of 5.5 (Medium) with attack vector being Local, attack complexity Low, and privileges required Low (Oracle VM Bulletin).

Impact

When exploited, this vulnerability can cause a denial of service condition through a system hang during sync operations. The issue specifically manifests when attempting to write to a filesystem with maliciously crafted metadata, causing excessive duration syncs that can effectively freeze the system (Ubuntu Security).

Mitigation and workarounds

The issue was fixed in Linux kernel version 5.6.13 through a patch that adds additional validation checks in the xfs_agf_verify function. The fix includes verifying agf_freeblks against agf_longest and agf_length values to prevent the problematic condition (Kernel Commit). Various Linux distributions have backported this fix to their supported kernel versions, including Ubuntu 20.04 LTS (5.4.0-45.49), Ubuntu 18.04 LTS (4.15.0-115.116), and Ubuntu 16.04 LTS (4.4.0-222.255) (Ubuntu Security).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23395CRITICAL9.1
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-devel-matched
NoYesMar 25, 2026
CVE-2026-23399MEDIUM6.5
  • Linux KernelLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesMar 28, 2026
CVE-2026-23398MEDIUM6.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug
NoYesMar 26, 2026
CVE-2026-23397MEDIUM4.4
  • Linux KernelLinux Kernel
  • kernel-rt-64k-modules-core
NoYesMar 26, 2026
CVE-2026-31788N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-fde
NoYesMar 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management