CVE-2025-40363
net: ipv6: fix field-spanning memcpy warning in AH output
Mitigation
- Upgrade Linux to 2327a3d6f65ce2fe2634546dde4a25ef52296fec or later.
Who should check
- Anyone running Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2da805a61ef5272a2773775ce14c3650adb84248; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9bf27de51bd6db5ff827780ec0eba55de230ba45; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0bf756ae1e69fec5e6332c37830488315d6d771b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 75b16b2755e12999ad850756ddfb88ad4bfc7186; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f28dde240160f3c48a50d641d210ed6a3b9596ed; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c14cf41094136691c92ef756872570645d61f4a1; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b056f971bd72b373b7ae2025a8f3bd18f69653d3; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2327a3d6f65ce2fe2634546dde4a25ef52296fec
- Anyone running Linux 2.6.12
Vulnerability facts
- Affected
- Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2da805a61ef5272a2773775ce14c3650adb84248; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9bf27de51bd6db5ff827780ec0eba55de230ba45; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0bf756ae1e69fec5e6332c37830488315d6d771b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 75b16b2755e12999ad850756ddfb88ad4bfc7186; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f28dde240160f3c48a50d641d210ed6a3b9596ed; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c14cf41094136691c92ef756872570645d61f4a1; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b056f971bd72b373b7ae2025a8f3bd18f69653d3; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2327a3d6f65ce2fe2634546dde4a25ef52296fec; Linux 2.6.12
- Fixed in
- Linux 2da805a61ef5272a2773775ce14c3650adb84248, Linux 9bf27de51bd6db5ff827780ec0eba55de230ba45, Linux 0bf756ae1e69fec5e6332c37830488315d6d771b, Linux 75b16b2755e12999ad850756ddfb88ad4bfc7186, Linux 2327a3d6f65ce2fe2634546dde4a25ef52296fec
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: net: ipv6: fix field-spanning memcpy warning in AH output Fix field-spanning memcpy warnings in ah6_output() and ah6_output_done() where extension headers are copied to/from IPv6 address fields, triggering fortify-string warnings about writes beyond the 16-byte address fields. memcpy: detected field-spanning write (size 40) of single field "&top_iph->saddr" at net/ipv6/ah6.c:439 (size 16) WARNING: CPU: 0 PID: 8838 at net/ipv6/ah6.c:439 ah6_output+0xe7e/0x14e0 net/ipv6/ah6.c:439 The warnings are false positives as the extension headers are intentionally placed after the IPv6 header in memory. Fix by properly copying addresses and extension headers separately, and introduce helper functions to avoid code duplication.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2da805a61ef5272a2773775ce14c3650adb84248; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9bf27de51bd6db5ff827780ec0eba55de230ba45; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0bf756ae1e69fec5e6332c37830488315d6d771b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 75b16b2755e12999ad850756ddfb88ad4bfc7186; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f28dde240160f3c48a50d641d210ed6a3b9596ed; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c14cf41094136691c92ef756872570645d61f4a1; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b056f971bd72b373b7ae2025a8f3bd18f69653d3; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2327a3d6f65ce2fe2634546dde4a25ef52296fec | — | cvelist |
| Linux | 2.6.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-40363. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-40363.md Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2da805a61ef5272a2773775ce14c3650adb84248; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9bf27de51bd6db5ff827780ec0eba55de230ba45; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0bf756ae1e69fec5e6332c37830488315d6d771b; >= 1da177e4c3f41524e886b7f… Fixed in: Linux 2da805a61ef5272a2773775ce14c3650adb84248, Linux 9bf27de51bd6db5ff827780ec0eba55de230ba45, Linux 0bf756ae1e69fec5e6332c37830488315d6d771b, Linux 75b16b2755e12999ad850756ddfb88ad4bfc7186, Linux 2327a3d6f65ce2fe2634546dde4a25ef52296fec Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- https://git.kernel.org/stable/c/2da805a61ef5272a2773775ce14c3650adb84248
- https://git.kernel.org/stable/c/9bf27de51bd6db5ff827780ec0eba55de230ba45
- https://git.kernel.org/stable/c/0bf756ae1e69fec5e6332c37830488315d6d771b
- https://git.kernel.org/stable/c/75b16b2755e12999ad850756ddfb88ad4bfc7186
- https://git.kernel.org/stable/c/f28dde240160f3c48a50d641d210ed6a3b9596ed
- https://git.kernel.org/stable/c/c14cf41094136691c92ef756872570645d61f4a1
- https://git.kernel.org/stable/c/b056f971bd72b373b7ae2025a8f3bd18f69653d3
- https://git.kernel.org/stable/c/2327a3d6f65ce2fe2634546dde4a25ef52296fec
FAQ
Is CVE-2025-40363 being exploited?
There is no confirmed exploitation: CVE-2025-40363 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-40363?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2025-40363?
Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2da805a61ef5272a2773775ce14c3650adb84248; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9bf27de51bd6db5ff827780ec0eba55de230ba45; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0bf756ae1e69fec5e6332c37830488315d6d771b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 75b16b2755e12999ad850756ddfb88ad4bfc7186; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f28dde240160f3c48a50d641d210ed6a3b9596ed; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c14cf41094136691c92ef756872570645d61f4a1; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b056f971bd72b373b7ae2025a8f3bd18f69653d3; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2327a3d6f65ce2fe2634546dde4a25ef52296fec; Linux 2.6.12.
Is there a fix for CVE-2025-40363?
Yes. Fixed in Linux 2da805a61ef5272a2773775ce14c3650adb84248, Linux 9bf27de51bd6db5ff827780ec0eba55de230ba45, Linux 0bf756ae1e69fec5e6332c37830488315d6d771b, Linux 75b16b2755e12999ad850756ddfb88ad4bfc7186, Linux 2327a3d6f65ce2fe2634546dde4a25ef52296fec. Upgrade Linux to 2327a3d6f65ce2fe2634546dde4a25ef52296fec or later.
How do I check if I'm affected by CVE-2025-40363?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.