{"id":"CVE-2025-39839","aliases":["CVE-2025-39839"],"related":[],"kind":"vulnerability","state":"published","title":"batman-adv: fix OOB read/write in network-coding decode","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbatman-adv: fix OOB read/write in network-coding decode\n\nbatadv_nc_skb_decode_packet() trusts coded_len and checks only against\nskb->len. XOR starts at sizeof(struct batadv_unicast_packet), reducing\npayload headroom, and the source skb length is not verified, allowing an\nout-of-bounds read and a small out-of-bounds write.\n\nValidate that coded_len fits within the payload area of both destination\nand source sk_buffs before XORing.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbatman-adv: fix OOB read/write in network-coding decode\n\nbatadv_nc_skb_decode_packet() trusts coded_len and checks only against\nskb->len. XOR starts at sizeof(struct batadv_unicast_packet), reducing\npayload headroom, and the source skb length is not verified, allowing an\nout-of-bounds read and a small out-of-bounds write.\n\nValidate that coded_len fits within the payload area of both destination\nand source sk_buffs before XORing.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nbatman-adv: corrección de lectura/escritura fuera de límites en la decodificación de codificación de red\n\nbatadv_nc_skb_decode_packet() confía en coded_len y solo verifica contra skb->len. XOR comienza en sizeof(struct batadv_unicast_packet), reduciendo el espacio libre de la carga útil, y la longitud del skb de origen no se verifica, permitiendo una lectura fuera de límites y una pequeña escritura fuera de límites.\n\nValidar que coded_len encaja dentro del área de carga útil tanto de los sk_buffs de destino como de origen antes de aplicar XOR.","source":"nvd"}],"published":"2025-09-19T15:26:14.688Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"2df5278b0267c799f3e877e8eeddbb6e93cda0bb","fixed":"30fc47248f02b8a14a61df469e1da4704be1a19f","status":"affected"},{"type":"git","introduced":"2df5278b0267c799f3e877e8eeddbb6e93cda0bb","fixed":"1e36c6c8dc8023b4bbe9a16e819f9998b9b6a183","status":"affected"},{"type":"git","introduced":"2df5278b0267c799f3e877e8eeddbb6e93cda0bb","fixed":"5d334bce9fad58cf328d8fa14ea1fff855819863","status":"affected"},{"type":"git","introduced":"2df5278b0267c799f3e877e8eeddbb6e93cda0bb","fixed":"dce6c2aa70e94c04c523b375dfcc664d7a0a560a","status":"affected"},{"type":"git","introduced":"2df5278b0267c799f3e877e8eeddbb6e93cda0bb","fixed":"bb37252c9af1cb250f34735ee98f80b46be3cef1","status":"affected"},{"type":"git","introduced":"2df5278b0267c799f3e877e8eeddbb6e93cda0bb","fixed":"20080709457bc1e920eb002483d7d981d9b2ac1c","status":"affected"},{"type":"git","introduced":"2df5278b0267c799f3e877e8eeddbb6e93cda0bb","fixed":"a67c6397fcb7e842d3c595243049940970541c48","status":"affected"},{"type":"git","introduced":"2df5278b0267c799f3e877e8eeddbb6e93cda0bb","fixed":"d77b6ff0ce35a6d0b0b7b9581bc3f76d041d4087","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.10","status":"unaffected"},{"type":"semver","introduced":"5.4.299","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.243","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.192","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.151","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.105","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.46","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.6","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.10","fixed":"5.4.299"},{"status":"affected","introduced":"5.5","fixed":"5.10.243"},{"status":"affected","introduced":"5.11","fixed":"5.15.192"},{"status":"affected","introduced":"5.16","fixed":"6.1.151"},{"status":"affected","introduced":"6.2","fixed":"6.6.105"},{"status":"affected","introduced":"6.7","fixed":"6.12.46"},{"status":"affected","introduced":"6.13","fixed":"6.16.6"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/30fc47248f02b8a14a61df469e1da4704be1a19f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1e36c6c8dc8023b4bbe9a16e819f9998b9b6a183","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5d334bce9fad58cf328d8fa14ea1fff855819863","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dce6c2aa70e94c04c523b375dfcc664d7a0a560a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bb37252c9af1cb250f34735ee98f80b46be3cef1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/20080709457bc1e920eb002483d7d981d9b2ac1c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a67c6397fcb7e842d3c595243049940970541c48","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d77b6ff0ce35a6d0b0b7b9581bc3f76d041d4087","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-089022.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39839","url":"https://www.cve.org/CVERecord?id=CVE-2025-39839","licence":"CVE Terms of Use","modified":"2026-08-05T12:05:32.570Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39839","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39839","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.859Z","epss":{"score":0.00267,"percentile":0.20156,"date":"2026-12-01T12:00:22.000Z"}}