CVE-2025-40363
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40363 is a Linux kernel vulnerability in the IPv6 Authentication Header (AH) output path (net/ipv6/ah6.c) caused by field-spanning memcpy operations that trigger kernel WARN_ON assertions via the fortify-string sanitizer. The issue affects the ah6_output() and ah6_output_done() functions, where extension headers are incorrectly copied to/from the 16-byte IPv6 address fields, causing writes beyond the field boundary. It was published on December 16, 2025, and affects Linux kernel versions from the initial commit (1da177e4c3f4) up to the patched stable releases (Feedly, EUVD). No CVSS score has been assigned at this time.

Technical details

The root cause is an improper use of memcpy in ah6_output() and ah6_output_done() (net/ipv6/ah6.c, line 439) where a 40-byte copy is performed targeting the saddr field of the IPv6 header, which is only 16 bytes wide (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer). The kernel's fortify-string compile-time and runtime checks detect this as a field-spanning write and emit a WARN_ON splat: memcpy: detected field-spanning write (size 40) of single field "&top_iph->saddr". The warnings are technically false positives because the extension headers are intentionally laid out contiguously after the IPv6 header in memory; however, the fix separates the address and extension header copies and introduces helper functions to eliminate code duplication (Feedly).

Impact

The primary impact is kernel stability — the fortify-string warning can trigger a kernel WARN_ON during IPv6 IPsec AH packet processing, potentially causing log noise or, in hardened configurations, a kernel panic (BUG_ON). Systems using IPv6 with IPsec Authentication Headers are affected. There is no evidence of direct memory corruption or privilege escalation, as the underlying memory layout is intentional; the risk is primarily availability-related for systems relying on IPv6 AH-based IPsec (Feedly).

Mitigation and workarounds

Patches have been backported to multiple stable Linux kernel branches. Fixed versions include: 5.4.302, 5.10.247, 5.15.197, 6.1.159, 6.6.117, 6.12.58, 6.17.8, and 6.18. Downstream distributions including Ubuntu (USN-8096-1/2/3/5), Debian LTS, Amazon Linux 2, Oracle Linux 8, and SUSE have issued updated kernel packages (Ubuntu Advisory, Debian LTS, Amazon Linux). Administrators should update to the latest patched kernel version for their distribution. As a temporary workaround, disabling IPv6 IPsec AH processing (if not required) can prevent the warning from triggering.

Community reactions

The vulnerability has received routine coverage from Linux security advisory aggregators and scanner vendors (Tenable/Nessus, Qualys), with no notable researcher commentary or significant social media discussion. Multiple downstream distributions have issued kernel updates addressing this and other kernel CVEs in batch advisories (Ubuntu Advisory, Debian LTS).

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-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 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