CVE-2025-40363
kernel: net: ipv6: fix field-spanning memcpy warning in AH output
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · December 16, 2025
Updated · June 30, 2026
Description
A fortify-source warning was found in the IPv6 AH (Authentication Header) implementation in the Linux kernel. The memcpy operations in ah6_output() copy 40 bytes into a 16-byte address field, which triggers FORTIFY_SOURCE warnings. While intentional (copying header plus extensions), this pattern could mask real buffer overflows.
Statement
This is primarily a code quality issue flagged by FORTIFY_SOURCE hardening. The memcpy is intentional but uses incorrect field references. The fix separates address and extension header copies properly.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-131 · Incorrect Calculation of Buffer Size