{"id":"CVE-2026-43238","summary":"net/sched: act_skbedit: fix divide-by-zero in tcf_skbedit_hash()","details":"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-\u003emapping_mod;\n\nCompute mapping_mod in a wider type and reject ranges larger than U16_MAX\nto prevent params-\u003emapping_mod from becoming 0 and avoid the crash.","modified":"2026-06-18T03:56:08.544225905Z","published":"2026-05-06T11:28:32.950Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43238.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/015cebdfcb97b5347fb7f598ea712a281cb35840"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3c2b95b26860bd6f8e2310d31ea1200d3f8f173e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4ece5eb4836f8ff03b9004dc2430a7169f282851"},{"type":"WEB","url":"https://git.kernel.org/stable/c/59809fda4da7730cfe84a948033f47eb45db073d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9c735a7d98c982a786b0db71eb6566ee00aaa04f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/be054cc66f739a9ba615dba9012a07fab8e7dd6f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43238.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43238"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"38a6f0865796e26fc38fff4858f681d9ae76fa0f"},{"fixed":"59809fda4da7730cfe84a948033f47eb45db073d"},{"fixed":"9c735a7d98c982a786b0db71eb6566ee00aaa04f"},{"fixed":"015cebdfcb97b5347fb7f598ea712a281cb35840"},{"fixed":"4ece5eb4836f8ff03b9004dc2430a7169f282851"},{"fixed":"3c2b95b26860bd6f8e2310d31ea1200d3f8f173e"},{"fixed":"be054cc66f739a9ba615dba9012a07fab8e7dd6f"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-43238.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.19.0"},{"fixed":"6.1.165"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.128"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.75"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-43238.json"}}],"schema_version":"1.7.5"}