{"id":"CVE-2026-74621","aliases":["CVE-2026-74621"],"related":[],"kind":"vulnerability","state":"published","title":"net/sched: act_ct: fix sk_buff leak when the header checks reject a packet","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: act_ct: fix sk_buff leak when the header checks reject a packet\n\ntcf_ct_handle_fragments() runs its header sanity checks before handing\nanything to the defragmentation engine:\n\n\tif (family == NFPROTO_IPV4)\n\t\terr = tcf_ct_ipv4_is_fragment(skb, &frag);\n\telse\n\t\terr = tcf_ct_ipv6_is_fragment(skb, &frag);\n\tif (err || !frag)\n\t\treturn err;\n\ntcf_ct_ipv4_is_fragment() returns -EINVAL or -ENOMEM;\ntcf_ct_ipv6_is_fragment() adds -EPROTO when ipv6_find_hdr() fails. None of\nthem frees or queues the skb, so on that path the caller still owns it.\n\ntcf_ct_act() however funnels every non-zero return into the\nownership-transfer exit:\n\n\terr = tcf_ct_handle_fragments(net, skb, family, p->zone, &defrag);\n\tif (err)\n\t\tgoto out_frag;\n\t...\nout_frag:\n\tif (err != -EINPROGRESS)\n\t\ttcf_action_inc_drop_qstats(&c->common);\n\treturn TC_ACT_CONSUMED;\n\nTC_ACT_CONSUMED means the action took ownership of the skb, so no caller\nfrees it - sch_handle_ingress(), sch_handle_egress() and\ntcf_qevent_handle() all deliberately skip the free for that verdict. The\nskb is therefore orphaned: one sk_buff plus its data buffer is leaked per\nmalformed packet, unbounded. Note the drop counter is already incremented\nfor these errors, so the statistics claim a drop that never happens.\n\nThree different ownership states reach out_frag: today - the skb may be\nqueued by the defrag engine (-EINPROGRESS), already freed by\nnf_ct_handle_fragments(), or still owned by us. Tell the caller which of\nthose it is, and free the packet ourselves in the last case, which\nrestores the TC_ACT_SHOT behaviour that predated the Fixes: commit.\n\nReproduced on v7.2-rc6 with a 54-byte frame carrying a 40-byte IPv6\nheader with nexthdr = 0 (hop-by-hop) and nothing after it, on a\nclsact ingress chain with \"action ct\". kmemleak reports one leaked\n232-byte skbuff_head_cache object plus its 704-byte data buffer per\npacket; with this patch it reports none.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: act_ct: fix sk_buff leak when the header checks reject a packet\n\ntcf_ct_handle_fragments() runs its header sanity checks before handing\nanything to the defragmentation engine:\n\n\tif (family == NFPROTO_IPV4)\n\t\terr = tcf_ct_ipv4_is_fragment(skb, &frag);\n\telse\n\t\terr = tcf_ct_ipv6_is_fragment(skb, &frag);\n\tif (err || !frag)\n\t\treturn err;\n\ntcf_ct_ipv4_is_fragment() returns -EINVAL or -ENOMEM;\ntcf_ct_ipv6_is_fragment() adds -EPROTO when ipv6_find_hdr() fails. None of\nthem frees or queues the skb, so on that path the caller still owns it.\n\ntcf_ct_act() however funnels every non-zero return into the\nownership-transfer exit:\n\n\terr = tcf_ct_handle_fragments(net, skb, family, p->zone, &defrag);\n\tif (err)\n\t\tgoto out_frag;\n\t...\nout_frag:\n\tif (err != -EINPROGRESS)\n\t\ttcf_action_inc_drop_qstats(&c->common);\n\treturn TC_ACT_CONSUMED;\n\nTC_ACT_CONSUMED means the action took ownership of the skb, so no caller\nfrees it - sch_handle_ingress(), sch_handle_egress() and\ntcf_qevent_handle() all deliberately skip the free for that verdict. The\nskb is therefore orphaned: one sk_buff plus its data buffer is leaked per\nmalformed packet, unbounded. Note the drop counter is already incremented\nfor these errors, so the statistics claim a drop that never happens.\n\nThree different ownership states reach out_frag: today - the skb may be\nqueued by the defrag engine (-EINPROGRESS), already freed by\nnf_ct_handle_fragments(), or still owned by us. Tell the caller which of\nthose it is, and free the packet ourselves in the last case, which\nrestores the TC_ACT_SHOT behaviour that predated the Fixes: commit.\n\nReproduced on v7.2-rc6 with a 54-byte frame carrying a 40-byte IPv6\nheader with nexthdr = 0 (hop-by-hop) and nothing after it, on a\nclsact ingress chain with \"action ct\". kmemleak reports one leaked\n232-byte skbuff_head_cache object plus its 704-byte data buffer per\npacket; with this patch it reports none.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet/sched: act_ct: corrige la fuga de sk_buff cuando las comprobaciones de cabecera rechazan un paquete\n\ntcf_ct_handle_fragments() ejecuta sus comprobaciones de integridad de cabecera antes de entregar cualquier cosa al motor de desfragmentación:\n\n\tif (family == NFPROTO_IPV4)\n\t\terr = tcf_ct_ipv4_is_fragment(skb, &frag);\n\telse\n\t\terr = tcf_ct_ipv6_is_fragment(skb, &frag);\n\tif (err || !frag)\n\t\treturn err;\n\ntcf_ct_ipv4_is_fragment() devuelve -EINVAL o -ENOMEM;\ntcf_ct_ipv6_is_fragment() añade -EPROTO cuando ipv6_find_hdr() falla. Ninguno de ellos libera o encola el skb, por lo que en esa ruta el llamador todavía lo posee.\n\ntcf_ct_act() sin embargo canaliza cada retorno no nulo hacia la salida de transferencia de propiedad:\n\n\terr = tcf_ct_handle_fragments(net, skb, family, p -> zone, &defrag);\n\tif (err)\n\t\tgoto out_frag;\n\t...\nout_frag:\n\tif (err != -EINPROGRESS)\n\t\ttcf_action_inc_drop_qstats(&c -> common);\n\treturn TC_ACT_CONSUMED;\n\nTC_ACT_CONSUMED significa que la acción tomó posesión del skb, por lo que ningún llamador lo libera - sch_handle_ingress(), sch_handle_egress() y tcf_qevent_handle() omiten deliberadamente la liberación para ese veredicto. El skb queda, por lo tanto, huérfano: un sk_buff más su búfer de datos se fuga por cada paquete malformado, sin límites. Nótese que el contador de caídas ya se incrementa para estos errores, por lo que las estadísticas afirman una caída que nunca ocurre.\n\nTres estados de propiedad diferentes alcanzan out_frag: hoy - el skb puede ser encolado por el motor de desfragmentación (-EINPROGRESS), ya liberado por nf_ct_handle_fragments(), o todavía en nuestra posesión. Informar al llamador cuál de ellos es, y liberar el paquete nosotros mismos en el último caso, lo que restaura el comportamiento TC_ACT_SHOT que precedió al commit de Fixes:.\n\nReproducido en v7.2-rc6 con una trama de 54 bytes que transporta una cabecera IPv6 de 40 bytes con nexthdr = 0 (salto a salto) y nada después de ella, en una cadena de entrada clsact con 'action ct'. kmemleak informa de un objeto skbuff_head_cache de 232 bytes fugado más su búfer de datos de 704 bytes por paquete; con este parche no informa de ninguno.","source":"nvd"}],"published":"2026-08-22T15:32:04.990Z","modified":"2026-10-16T20:17:47.303Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"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:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"172ba7d46c202e679f3ccb10264c67416aaeb1c4","fixed":"b5dbecc2016e1692fd1c2532af9c41ba729cb747","status":"affected"},{"type":"git","introduced":"0b5b831122fc3789fff75be433ba3e4dd7b779d4","fixed":"23e97d594ddd0153020c506d5041048fbde1beb4","status":"affected"},{"type":"git","introduced":"73f7da5fd124f2cda9161e2e46114915e6e82e97","fixed":"737873a59905a54ca0d2d127ef882f3f88bf4379","status":"affected"},{"type":"git","introduced":"3f14b377d01d8357eba032b4cabc8c1149b458b6","fixed":"47d99828591d0fe8be4b9c8992ff3b8e47968db9","status":"affected"},{"type":"git","introduced":"3f14b377d01d8357eba032b4cabc8c1149b458b6","fixed":"b47bb899e04b5407c5a63fe88d4b6676586a6e84","status":"affected"},{"type":"git","introduced":"3f14b377d01d8357eba032b4cabc8c1149b458b6","fixed":"439d3e404f9d5e515911cc8132cde198b337c19e","status":"affected"},{"type":"git","introduced":"3f14b377d01d8357eba032b4cabc8c1149b458b6","fixed":"8a7ed561671aa6a911a2de99e59ef670a4d0b1df","status":"affected"},{"type":"git","version":"f5346df0591d10bc948761ca854b1fae6d2ef441","status":"affected"},{"type":"semver","introduced":"5.15.148","fixed":"5.15.217","status":"affected"},{"type":"semver","introduced":"6.1.75","fixed":"6.1.184","status":"affected"},{"type":"semver","introduced":"6.6.14","fixed":"6.6.152","status":"affected"},{"type":"semver","introduced":"6.7.2","fixed":"6.8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","status":"unaffected"},{"type":"semver","introduced":"5.15.217","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.184","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.152","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.104","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.45","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.9","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","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/b5dbecc2016e1692fd1c2532af9c41ba729cb747","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/23e97d594ddd0153020c506d5041048fbde1beb4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/737873a59905a54ca0d2d127ef882f3f88bf4379","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/47d99828591d0fe8be4b9c8992ff3b8e47968db9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b47bb899e04b5407c5a63fe88d4b6676586a6e84","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/439d3e404f9d5e515911cc8132cde198b337c19e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8a7ed561671aa6a911a2de99e59ef670a4d0b1df","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-16T19:02:40.438Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74621","url":"https://www.cve.org/CVERecord?id=CVE-2026-74621","licence":"CVE Terms of Use","modified":"2026-10-16T19:06:02.607Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74621","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74621","licence":"Public domain","modified":"2026-10-16T20:17:47.303Z"}],"updatedAt":"2026-11-25T22:59:34.902Z","epss":{"score":0.0049,"percentile":0.43725,"date":"2026-12-01T12:00:22.000Z"}}