CVE-2026-63825
Received Received - Intake

Race Condition in Linux Kernel GCOV Counter Updates

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

Publication date: 2026-07-19

Last updated on: 2026-07-19

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: gcov: use atomic counter updates to fix concurrent access crashes GCC's GCOV instrumentation can merge global branch counters with loop induction variables as an optimization. In inflate_fast(), the inner copy loops get transformed so that the GCOV counter value is loaded multiple times to compute the loop base address, start index, and end bound. Since GCOV counters are global (not per-CPU), concurrent execution on different CPUs causes the counter to change between loads, producing inconsistent values and out-of-bounds memory writes. The crash manifests during IPComp (IP Payload Compression) processing when inflate_fast() runs concurrently on multiple CPUs: BUG: unable to handle page fault for address: ffffd0a3c0902ffa RIP: inflate_fast+1431 Call Trace: zlib_inflate __deflate_decompress crypto_comp_decompress ipcomp_decompress [xfrm_ipcomp] ipcomp_input [xfrm_ipcomp] xfrm_input At the crash point, the compiler generated three loads from the same global GCOV counter (__gcov0.inflate_fast+216) to compute base, start, and end for an indexed loop. Another CPU modified the counter between loads, making the values inconsistent - the write went 3.4 MB past a 65 KB buffer. Add -fprofile-update=prefer-atomic to CFLAGS_GCOV at the global level in the top-level Makefile, guarded by a try-run compile test. The test compiles a minimal program with and without -fprofile-update=prefer-atomic using the full KBUILD_CFLAGS, then compares undefined symbols in the resulting object files. If prefer-atomic introduces new undefined references (such as __atomic_fetch_add_8 on i386 or __aarch64_ldadd8_relax on arm64 with outline-atomics), the flag is not added -- the kernel does not link against libatomic. On architectures where GCC inlines 64-bit atomic counter updates (x86_64, s390, ...) the test passes and the flag is enabled, preventing the compiler from merging counters with loop induction variables and fixing the observed concurrent-access crash. On architectures where the flag would introduce libatomic dependencies, it is silently omitted and behaviour is no worse than before this patch. Move the CFLAGS_GCOV block from its original position (before the arch Makefile include) to after the core KBUILD_CFLAGS assignments but before the scripts/Makefile.gcc-plugins include. This placement ensures the try-run test sees arch-specific flags (-m32, -march=, -mno-outline-atomics) while avoiding GCC plugin flags (-fplugin=) that would break the test on clean builds when plugin shared objects do not yet exist.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-19
Last Modified
2026-07-19
Generated
2026-07-20
AI Q&A
2026-07-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
gnu gcc From 4.0.0 (inc)
gnu gcc *
gnu gcov *

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 vulnerability in the Linux kernel involves a race condition in GCC's GCOV instrumentation. When inflate_fast() runs concurrently on multiple CPUs, global GCOV counters are loaded multiple times to compute loop bounds. Another CPU modifying the counter between loads causes inconsistent values, leading to out-of-bounds memory writes and crashes during IPComp processing.

Detection Guidance

This vulnerability manifests as crashes during IPComp processing with symptoms like page faults and out-of-bounds memory writes. Check kernel logs for errors like 'unable to handle page fault' or traces involving inflate_fast, zlib_inflate, or xfrm_input. Monitor for crashes during compression/decompression operations.

Impact Analysis

The vulnerability can cause system crashes due to memory corruption when inflate_fast() processes IPComp data concurrently. This may lead to kernel panics, data corruption, or denial of service if exploited maliciously or triggered by high CPU load.

Compliance Impact

This vulnerability does not directly affect compliance with GDPR, HIPAA, or similar standards. It is a low-level kernel crash caused by concurrent memory access during IPComp processing, not a data breach or privacy violation. Compliance impact would only occur if the crash led to system unavailability or data corruption, which is not specified in the provided context.

Mitigation Strategies

Apply the kernel patch that adds -fprofile-update=prefer-atomic to CFLAGS_GCOV. Update your kernel to a version containing this fix. If patching isn't possible, disable IPComp (IP Payload Compression) as a temporary workaround.

Chat Assistant

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

EPSS Chart