{"id":"CVE-2025-68363","aliases":["CVE-2025-68363"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Check skb->transport_header is set in bpf_skb_check_mtu","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Check skb->transport_header is set in bpf_skb_check_mtu\n\nThe bpf_skb_check_mtu helper needs to use skb->transport_header when\nthe BPF_MTU_CHK_SEGS flag is used:\n\n\tbpf_skb_check_mtu(skb, ifindex, &mtu_len, 0, BPF_MTU_CHK_SEGS)\n\nThe transport_header is not always set. There is a WARN_ON_ONCE\nreport when CONFIG_DEBUG_NET is enabled + skb->gso_size is set +\nbpf_prog_test_run is used:\n\nWARNING: CPU: 1 PID: 2216 at ./include/linux/skbuff.h:3071\n skb_gso_validate_network_len\n bpf_skb_check_mtu\n bpf_prog_3920e25740a41171_tc_chk_segs_flag # A test in the next patch\n bpf_test_run\n bpf_prog_test_run_skb\n\nFor a normal ingress skb (not test_run), skb_reset_transport_header\nis performed but there is plan to avoid setting it as described in\ncommit 2170a1f09148 (\"net: no longer reset transport_header in __netif_receive_skb_core()\").\n\nThis patch fixes the bpf helper by checking\nskb_transport_header_was_set(). The check is done just before\nskb->transport_header is used, to avoid breaking the existing bpf prog.\nThe WARN_ON_ONCE is limited to bpf_prog_test_run, so targeting bpf-next.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Check skb->transport_header is set in bpf_skb_check_mtu\n\nThe bpf_skb_check_mtu helper needs to use skb->transport_header when\nthe BPF_MTU_CHK_SEGS flag is used:\n\n\tbpf_skb_check_mtu(skb, ifindex, &mtu_len, 0, BPF_MTU_CHK_SEGS)\n\nThe transport_header is not always set. There is a WARN_ON_ONCE\nreport when CONFIG_DEBUG_NET is enabled + skb->gso_size is set +\nbpf_prog_test_run is used:\n\nWARNING: CPU: 1 PID: 2216 at ./include/linux/skbuff.h:3071\n skb_gso_validate_network_len\n bpf_skb_check_mtu\n bpf_prog_3920e25740a41171_tc_chk_segs_flag # A test in the next patch\n bpf_test_run\n bpf_prog_test_run_skb\n\nFor a normal ingress skb (not test_run), skb_reset_transport_header\nis performed but there is plan to avoid setting it as described in\ncommit 2170a1f09148 (\"net: no longer reset transport_header in __netif_receive_skb_core()\").\n\nThis patch fixes the bpf helper by checking\nskb_transport_header_was_set(). The check is done just before\nskb->transport_header is used, to avoid breaking the existing bpf prog.\nThe WARN_ON_ONCE is limited to bpf_prog_test_run, so targeting bpf-next.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nbpf: Verificar que skb -> transport_header esté configurado en bpf_skb_check_mtu\n\nLa función auxiliar bpf_skb_check_mtu necesita usar skb -> transport_header cuando se usa la bandera BPF_MTU_CHK_SEGS:\n\n\tbpf_skb_check_mtu(skb, ifindex, &mtu_len, 0, BPF_MTU_CHK_SEGS)\n\nEl transport_header no siempre está configurado. Hay un informe WARN_ON_ONCE cuando CONFIG_DEBUG_NET está habilitado + skb -> gso_size está configurado + se usa bpf_prog_test_run:\n\nWARNING: CPU: 1 PID: 2216 en ./include/linux/skbuff.h:3071\n skb_gso_validate_network_len\n bpf_skb_check_mtu\n bpf_prog_3920e25740a41171_tc_chk_segs_flag # Una prueba en el siguiente parche\n bpf_test_run\n bpf_prog_test_run_skb\n\nPara un skb de entrada normal (no test_run), se realiza skb_reset_transport_header, pero hay un plan para evitar configurarlo como se describe en el commit 2170a1f09148 ('net: ya no restablecer transport_header en __netif_receive_skb_core()').\n\nEste parche corrige la función auxiliar bpf verificando skb_transport_header_was_set(). La verificación se realiza justo antes de que se use skb -> transport_header, para evitar romper el programa bpf existente. El WARN_ON_ONCE está limitado a bpf_prog_test_run, por lo que apunta a bpf-next.","source":"nvd"}],"published":"2025-12-24T10:32:51.236Z","modified":"2026-11-10T13:17:58.357Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"34b2021cc61642d61c3cf943d9e71925b827941b","fixed":"b3171a5e4622e915e94599a55f4964078bdec27e","status":"affected"},{"type":"git","introduced":"34b2021cc61642d61c3cf943d9e71925b827941b","fixed":"97b876fa88322625228792cf7a5fd77531815a80","status":"affected"},{"type":"git","introduced":"34b2021cc61642d61c3cf943d9e71925b827941b","fixed":"30ce906557a21adef4cba5901c8e995dc18263a9","status":"affected"},{"type":"git","introduced":"34b2021cc61642d61c3cf943d9e71925b827941b","fixed":"1c30e4afc5507f0069cc09bd561e510e4d97fbf7","status":"affected"},{"type":"git","introduced":"34b2021cc61642d61c3cf943d9e71925b827941b","fixed":"942268e2726ac7f16e3ec49dbfbbbe7cf5af9da5","status":"affected"},{"type":"git","introduced":"34b2021cc61642d61c3cf943d9e71925b827941b","fixed":"d946f3c98328171fa50ddb908593cf833587f725","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.12","status":"unaffected"},{"type":"semver","introduced":"6.1.160","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.120","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.63","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.13","lastAffected":"6.17.*","status":"unaffected"},{"type":"semver","introduced":"6.18.2","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","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/b3171a5e4622e915e94599a55f4964078bdec27e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/97b876fa88322625228792cf7a5fd77531815a80","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/30ce906557a21adef4cba5901c8e995dc18263a9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1c30e4afc5507f0069cc09bd561e510e4d97fbf7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/942268e2726ac7f16e3ec49dbfbbbe7cf5af9da5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d946f3c98328171fa50ddb908593cf833587f725","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68363","url":"https://www.cve.org/CVERecord?id=CVE-2025-68363","licence":"CVE Terms of Use","modified":"2026-11-10T12:38:12.539Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68363","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68363","licence":"Public domain","modified":"2026-11-10T13:17:58.357Z"}],"updatedAt":"2026-11-25T22:59:09.868Z","epss":{"score":0.00253,"percentile":0.17961,"date":"2026-12-01T12:00:22.000Z"}}