{"id":"CVE-2025-40337","aliases":["CVE-2025-40337"],"related":[],"kind":"vulnerability","state":"published","title":"net: stmmac: Correctly handle Rx checksum offload errors","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: Correctly handle Rx checksum offload errors\n\nThe stmmac_rx function would previously set skb->ip_summed to\nCHECKSUM_UNNECESSARY if hardware checksum offload (CoE) was enabled\nand the packet was of a known IP ethertype.\n\nHowever, this logic failed to check if the hardware had actually\nreported a checksum error. The hardware status, indicating a header or\npayload checksum failure, was being ignored at this stage. This could\ncause corrupt packets to be passed up the network stack as valid.\n\nThis patch corrects the logic by checking the `csum_none` status flag,\nwhich is set when the hardware reports a checksum error. If this flag\nis set, skb->ip_summed is now correctly set to CHECKSUM_NONE,\nensuring the kernel's network stack will perform its own validation and\nproperly handle the corrupt packet.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: Correctly handle Rx checksum offload errors\n\nThe stmmac_rx function would previously set skb->ip_summed to\nCHECKSUM_UNNECESSARY if hardware checksum offload (CoE) was enabled\nand the packet was of a known IP ethertype.\n\nHowever, this logic failed to check if the hardware had actually\nreported a checksum error. The hardware status, indicating a header or\npayload checksum failure, was being ignored at this stage. This could\ncause corrupt packets to be passed up the network stack as valid.\n\nThis patch corrects the logic by checking the `csum_none` status flag,\nwhich is set when the hardware reports a checksum error. If this flag\nis set, skb->ip_summed is now correctly set to CHECKSUM_NONE,\nensuring the kernel's network stack will perform its own validation and\nproperly handle the corrupt packet.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: stmmac: Manejar correctamente los errores de descarga de suma de verificación Rx\n\nLa función stmmac_rx anteriormente establecía skb -> ip_summed a CHECKSUM_UNNECESSARY si la descarga de suma de verificación por hardware (CoE) estaba habilitada y el paquete era de un tipo de ethernet IP conocido.\n\nSin embargo, esta lógica no verificaba si el hardware había reportado realmente un error de suma de verificación. El estado del hardware, que indicaba un fallo de suma de verificación de encabezado o de carga útil, estaba siendo ignorado en esta etapa. Esto podría causar que paquetes corruptos se pasaran a la pila de red como válidos.\n\nEste parche corrige la lógica al verificar el indicador de estado 'csum_none', que se establece cuando el hardware reporta un error de suma de verificación. Si este indicador está establecido, skb -> ip_summed ahora se establece correctamente a CHECKSUM_NONE, asegurando que la pila de red del kernel realizará su propia validación y manejará correctamente el paquete corrupto.","source":"nvd"}],"published":"2025-12-09T04:09:53.808Z","modified":"2026-10-30T13:18:16.447Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":8.2,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3c20f72f9108b2fcf30ec63d8a4203736c01ccd0","fixed":"3c5e5fccc4138c072d99be4ebe6b16df6a70a40c","status":"affected"},{"type":"git","introduced":"3c20f72f9108b2fcf30ec63d8a4203736c01ccd0","fixed":"63fbe0e6413279d5ea5842e2423e351ded547683","status":"affected"},{"type":"git","introduced":"3c20f72f9108b2fcf30ec63d8a4203736c01ccd0","fixed":"719fcdf29051f7471d5d433475af76219019d33d","status":"affected"},{"type":"git","introduced":"3c20f72f9108b2fcf30ec63d8a4203736c01ccd0","fixed":"1aa319e0f12d2d761a31556b82a5852c98eb0bea","status":"affected"},{"type":"git","introduced":"3c20f72f9108b2fcf30ec63d8a4203736c01ccd0","fixed":"ee0aace5f844ef59335148875d05bec8764e71e8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.2","status":"unaffected"},{"type":"semver","introduced":"6.1.191","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/3c5e5fccc4138c072d99be4ebe6b16df6a70a40c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/63fbe0e6413279d5ea5842e2423e351ded547683","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/719fcdf29051f7471d5d433475af76219019d33d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1aa319e0f12d2d761a31556b82a5852c98eb0bea","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee0aace5f844ef59335148875d05bec8764e71e8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40337","url":"https://www.cve.org/CVERecord?id=CVE-2025-40337","licence":"CVE Terms of Use","modified":"2026-10-30T12:23:03.136Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40337","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40337","licence":"Public domain","modified":"2026-10-30T13:18:16.447Z"}],"updatedAt":"2026-11-25T22:59:08.474Z","epss":{"score":0.00516,"percentile":0.45399,"date":"2026-12-02T12:00:21.000Z"}}