{"id":"CVE-2025-40363","aliases":["CVE-2025-40363"],"related":[],"kind":"vulnerability","state":"published","title":"net: ipv6: fix field-spanning memcpy warning in AH output","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ipv6: fix field-spanning memcpy warning in AH output\n\nFix field-spanning memcpy warnings in ah6_output() and\nah6_output_done() where extension headers are copied to/from IPv6\naddress fields, triggering fortify-string warnings about writes beyond\nthe 16-byte address fields.\n\n  memcpy: detected field-spanning write (size 40) of single field \"&top_iph->saddr\" at net/ipv6/ah6.c:439 (size 16)\n  WARNING: CPU: 0 PID: 8838 at net/ipv6/ah6.c:439 ah6_output+0xe7e/0x14e0 net/ipv6/ah6.c:439\n\nThe warnings are false positives as the extension headers are\nintentionally placed after the IPv6 header in memory. Fix by properly\ncopying addresses and extension headers separately, and introduce\nhelper functions to avoid code duplication.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ipv6: fix field-spanning memcpy warning in AH output\n\nFix field-spanning memcpy warnings in ah6_output() and\nah6_output_done() where extension headers are copied to/from IPv6\naddress fields, triggering fortify-string warnings about writes beyond\nthe 16-byte address fields.\n\n  memcpy: detected field-spanning write (size 40) of single field \"&top_iph->saddr\" at net/ipv6/ah6.c:439 (size 16)\n  WARNING: CPU: 0 PID: 8838 at net/ipv6/ah6.c:439 ah6_output+0xe7e/0x14e0 net/ipv6/ah6.c:439\n\nThe warnings are false positives as the extension headers are\nintentionally placed after the IPv6 header in memory. Fix by properly\ncopying addresses and extension headers separately, and introduce\nhelper functions to avoid code duplication.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: ipv6: corregir advertencia de memcpy que abarca campos en la salida AH\n\nCorrige las advertencias de memcpy que abarcan campos en ah6_output() y ah6_output_done() donde las cabeceras de extensión son copiadas a/desde campos de dirección IPv6, lo que activa advertencias de fortify-string sobre escrituras más allá de los campos de dirección de 16 bytes.\n\nmemcpy: escritura que abarca campos detectada (tamaño 40) del campo único '&top_iph -> saddr' en net/ipv6/ah6.c:439 (tamaño 16)\nADVERTENCIA: CPU: 0 PID: 8838 en net/ipv6/ah6.c:439 ah6_output+0xe7e/0x14e0 net/ipv6/ah6.c:439\n\nLas advertencias son falsos positivos ya que las cabeceras de extensión se colocan intencionalmente después de la cabecera IPv6 en memoria. Se corrige copiando correctamente las direcciones y las cabeceras de extensión por separado, e introduciendo funciones auxiliares para evitar la duplicación de código.","source":"nvd"}],"published":"2025-12-16T13:40:03.265Z","modified":"2026-10-14T13:10:00.187Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"2da805a61ef5272a2773775ce14c3650adb84248","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"9bf27de51bd6db5ff827780ec0eba55de230ba45","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"0bf756ae1e69fec5e6332c37830488315d6d771b","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"75b16b2755e12999ad850756ddfb88ad4bfc7186","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"f28dde240160f3c48a50d641d210ed6a3b9596ed","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"c14cf41094136691c92ef756872570645d61f4a1","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"b056f971bd72b373b7ae2025a8f3bd18f69653d3","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"2327a3d6f65ce2fe2634546dde4a25ef52296fec","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"5.4.302","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.247","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.197","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.117","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.58","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.8","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/2da805a61ef5272a2773775ce14c3650adb84248","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9bf27de51bd6db5ff827780ec0eba55de230ba45","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0bf756ae1e69fec5e6332c37830488315d6d771b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/75b16b2755e12999ad850756ddfb88ad4bfc7186","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f28dde240160f3c48a50d641d210ed6a3b9596ed","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c14cf41094136691c92ef756872570645d61f4a1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b056f971bd72b373b7ae2025a8f3bd18f69653d3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2327a3d6f65ce2fe2634546dde4a25ef52296fec","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-16T19:57:03.348Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40363","url":"https://www.cve.org/CVERecord?id=CVE-2025-40363","licence":"CVE Terms of Use","modified":"2026-06-16T19:57:11.691Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40363","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40363","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.475Z","epss":{"score":0.00227,"percentile":0.1431,"date":"2026-12-01T12:00:22.000Z"}}