Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-63825

gcov: use atomic counter updates to fix concurrent access crashes
Back to all
CVE

CVE-2026-63825

gcov: use atomic counter updates to fix concurrent access crashes

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

   _deflatedecompress

   cryptocompdecompress

   ipcompdecompress [xfrmipcomp]

   ipcompinput [xfrmipcomp]

   xfrm_input

At the crash point, the compiler generated three loads from the same

global GCOV counter (_gcov0.inflatefast+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 _atomicfetchadd8 on i386 or _aarch64ldadd8_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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

https://git.kernel.org/stable/c/49d893b9cbcfc5802a32e53a64c6c6956670d65b, https://git.kernel.org/stable/c/56cb9b7d96b28a1173a510ab25354b6599ad3a33, https://git.kernel.org/stable/c/5b959c1dbb4522b9e3ac4e26ad638b8784869841, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63825.json, https://nvd.nist.gov/vuln/detail/CVE-2026-63825, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Severity

9.8

CVSS Score
0
10

Basic Information

Base CVSS
9.8
EPSS Probability
0.00775%
EPSS Percentile
0.52992%
Introduced Version
2521f2c228ad750701ba4702484e31d876dbc386,2.6.31,6.19.0,0
Fix Available
56cb9b7d96b28a1173a510ab25354b6599ad3a33,6.18.38,7.1.3

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading