{"id":"CVE-2026-43238","aliases":["CVE-2026-43238"],"related":[],"kind":"vulnerability","state":"published","title":"net/sched: act_skbedit: fix divide-by-zero in tcf_skbedit_hash()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: act_skbedit: fix divide-by-zero in tcf_skbedit_hash()\n\nCommit 38a6f0865796 (\"net: sched: support hash selecting tx queue\")\nadded SKBEDIT_F_TXQ_SKBHASH support. The inclusive range size is\ncomputed as:\n\nmapping_mod = queue_mapping_max - queue_mapping + 1;\n\nThe range size can be 65536 when the requested range covers all possible\nu16 queue IDs (e.g. queue_mapping=0 and queue_mapping_max=U16_MAX).\nThat value cannot be represented in a u16 and previously wrapped to 0,\nso tcf_skbedit_hash() could trigger a divide-by-zero:\n\nqueue_mapping += skb_get_hash(skb) % params->mapping_mod;\n\nCompute mapping_mod in a wider type and reject ranges larger than U16_MAX\nto prevent params->mapping_mod from becoming 0 and avoid the crash.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: act_skbedit: fix divide-by-zero in tcf_skbedit_hash()\n\nCommit 38a6f0865796 (\"net: sched: support hash selecting tx queue\")\nadded SKBEDIT_F_TXQ_SKBHASH support. The inclusive range size is\ncomputed as:\n\nmapping_mod = queue_mapping_max - queue_mapping + 1;\n\nThe range size can be 65536 when the requested range covers all possible\nu16 queue IDs (e.g. queue_mapping=0 and queue_mapping_max=U16_MAX).\nThat value cannot be represented in a u16 and previously wrapped to 0,\nso tcf_skbedit_hash() could trigger a divide-by-zero:\n\nqueue_mapping += skb_get_hash(skb) % params->mapping_mod;\n\nCompute mapping_mod in a wider type and reject ranges larger than U16_MAX\nto prevent params->mapping_mod from becoming 0 and avoid the crash.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet/sched: act_skbedit: corrección de división por cero en tcf_skbedit_hash()\n\nEl commit 38a6f0865796 (’net: sched: support hash selecting tx queue’) añadió soporte para SKBEDIT_F_TXQ_SKBHASH. El tamaño del rango inclusivo se calcula como:\n\nmapping_mod = queue_mapping_max - queue_mapping + 1;\n\nEl tamaño del rango puede ser 65536 cuando el rango solicitado cubre todos los posibles IDs de cola u16 (p. ej., queue_mapping=0 y queue_mapping_max=U16_MAX). Ese valor no puede ser representado en un u16 y anteriormente se desbordaba a 0, por lo que tcf_skbedit_hash() podría desencadenar una división por cero:\n\nqueue_mapping += skb_get_hash(skb) % params  ->  mapping_mod;\n\nCalcular mapping_mod en un tipo más amplio y rechazar rangos mayores que U16_MAX para evitar que params  ->  mapping_mod se convierta en 0 y evitar el fallo.","source":"nvd"}],"published":"2026-05-06T11:28:32.950Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-369"],"affected":[{"ranges":[{"type":"git","introduced":"38a6f0865796e26fc38fff4858f681d9ae76fa0f","fixed":"59809fda4da7730cfe84a948033f47eb45db073d","status":"affected"},{"type":"git","introduced":"38a6f0865796e26fc38fff4858f681d9ae76fa0f","fixed":"9c735a7d98c982a786b0db71eb6566ee00aaa04f","status":"affected"},{"type":"git","introduced":"38a6f0865796e26fc38fff4858f681d9ae76fa0f","fixed":"015cebdfcb97b5347fb7f598ea712a281cb35840","status":"affected"},{"type":"git","introduced":"38a6f0865796e26fc38fff4858f681d9ae76fa0f","fixed":"4ece5eb4836f8ff03b9004dc2430a7169f282851","status":"affected"},{"type":"git","introduced":"38a6f0865796e26fc38fff4858f681d9ae76fa0f","fixed":"3c2b95b26860bd6f8e2310d31ea1200d3f8f173e","status":"affected"},{"type":"git","introduced":"38a6f0865796e26fc38fff4858f681d9ae76fa0f","fixed":"be054cc66f739a9ba615dba9012a07fab8e7dd6f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.19","status":"unaffected"},{"type":"semver","introduced":"6.1.165","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.128","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","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":"5.19","fixed":"6.1.165"},{"status":"affected","introduced":"6.2","fixed":"6.6.128"},{"status":"affected","introduced":"6.7","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/59809fda4da7730cfe84a948033f47eb45db073d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9c735a7d98c982a786b0db71eb6566ee00aaa04f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/015cebdfcb97b5347fb7f598ea712a281cb35840","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4ece5eb4836f8ff03b9004dc2430a7169f282851","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c2b95b26860bd6f8e2310d31ea1200d3f8f173e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/be054cc66f739a9ba615dba9012a07fab8e7dd6f","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T15:31:06.549Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43238","url":"https://www.cve.org/CVERecord?id=CVE-2026-43238","licence":"CVE Terms of Use","modified":"2026-11-06T15:32:36.828Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43238","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43238","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:20.745Z","epss":{"score":0.00128,"percentile":0.02701,"date":"2026-12-01T12:00:22.000Z"}}