CVE-2026-80536
Received Received - Intake

Buffer Overflow in Linux Kernel XFS Filesystem

Vulnerability report for CVE-2026-80536, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-26

Last updated on: 2026-08-26

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: xfs: bounds-check buffer log item's dirty bitmap xlog_recover_do_reg_buffer() replays each dirty region described by a buffer log item's bitmap into the buffer read for that item: memcpy(xfs_buf_offset(bp, (uint)bit << XFS_BLF_SHIFT), item->ri_buf[i].iov_base, nbits << XFS_BLF_SHIFT); The destination offset (bit/nbits, from the logged dirty bitmap) and the buffer size (from the logged blf_len) are both attacker-controlled and otherwise unrelated, yet the only thing bounding the copy is an ASSERT(), which compiles away on production kernels. A crafted image logging a small blf_len together with a bitmap bit past the end of that buffer drives the memcpy() past the buffer's allocation, corrupting adjacent kernel heap during mount-time log recovery. This is reachable by anyone who can get a crafted image mounted -- the malicious-filesystem threat model XFS already guards against elsewhere. Turn the ASSERT() into a real XFS_IS_CORRUPT() check that aborts recovery of the buffer with -EFSCORRUPTED, consistent with the validate-and-fail idiom already used in xlog_recover_do_inode_buffer() and xfs_dquot_item_recover.c. xlog_recover_do_reg_buffer() therefore becomes STATIC int and its three callers propagate the error. Found and confirmed with KASAN on a CONFIG_XFS_DEBUG=n build: the crafted image trips a slab-out-of-bounds write before this change and fails recovery cleanly with -EFSCORRUPTED after it.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-26
Last Modified
2026-08-26
Generated
2026-08-26
AI Q&A
2026-08-26
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a heap corruption vulnerability in the Linux kernel's XFS file system. It occurs during log recovery when replaying dirty regions from a buffer log item. An attacker can craft a malicious file system image that causes a memcpy() to write beyond the allocated buffer, corrupting adjacent kernel heap memory. The issue stems from missing bounds checking on attacker-controlled values.

Detection Guidance

This vulnerability is specific to the XFS filesystem in the Linux kernel and is triggered during log recovery. Detection requires checking kernel logs for mount-time errors or corruption events. Use dmesg or journalctl to review kernel logs for XFS-related errors during filesystem mounts. If KASAN is enabled, it may detect slab-out-of-bounds writes during log replay.

Impact Analysis

If exploited, this vulnerability could allow an attacker with the ability to mount a crafted file system image to corrupt kernel memory. This may lead to system crashes, privilege escalation, or other malicious activities depending on the corrupted memory's purpose. The impact is limited to systems using XFS file systems.

Mitigation Strategies

Update your Linux kernel to a patched version that includes the fix for this XFS vulnerability. Avoid mounting untrusted filesystems until the kernel is updated. If you cannot update immediately, disable XFS logging or avoid using XFS filesystems until the patch is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-80536. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart