# CVE-2025-40363: net: ipv6: fix field-spanning memcpy warning in AH output

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-16T13:40:03.265Z
- **Modified:** 2026-10-14T13:10:00.187Z

## 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

## 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

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2da805a61ef5272a2773775ce14c3650adb84248; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9bf27de51bd6db5ff827780ec0eba55de230ba45; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0bf756ae1e69fec5e6332c37830488315d6d771b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 75b16b2755e12999ad850756ddfb88ad4bfc7186; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f28dde240160f3c48a50d641d210ed6a3b9596ed; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c14cf41094136691c92ef756872570645d61f4a1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b056f971bd72b373b7ae2025a8f3bd18f69653d3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2327a3d6f65ce2fe2634546dde4a25ef52296fec (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 2327a3d6f65ce2fe2634546dde4a25ef52296fec or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/2da805a61ef5272a2773775ce14c3650adb84248>
- other: <https://git.kernel.org/stable/c/9bf27de51bd6db5ff827780ec0eba55de230ba45>
- other: <https://git.kernel.org/stable/c/0bf756ae1e69fec5e6332c37830488315d6d771b>
- other: <https://git.kernel.org/stable/c/75b16b2755e12999ad850756ddfb88ad4bfc7186>
- other: <https://git.kernel.org/stable/c/f28dde240160f3c48a50d641d210ed6a3b9596ed>
- other: <https://git.kernel.org/stable/c/c14cf41094136691c92ef756872570645d61f4a1>
- other: <https://git.kernel.org/stable/c/b056f971bd72b373b7ae2025a8f3bd18f69653d3>
- other: <https://git.kernel.org/stable/c/2327a3d6f65ce2fe2634546dde4a25ef52296fec>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40363>

HTML: <https://flawdb.com/CVE-2025-40363> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40363>
