{"id":"CVE-2026-112158","kind":"vulnerability","aliases":["CVE-2026-112158"],"related":[],"title":"MikroTik RouterOS: integer overflow in ipt_SAME kernel module","description":"A weakness has been identified in MikroTik RouterOS up to 6.40.5/6.44/7.20.8. Impacted is the function same_check of the file ipt_SAME.ko. Executing a manipulation can lead to integer overflow. The attack may be launched remotely. Upgrading to version 7.21.5 and 7.23.1 is recommended to address this issue. You should upgrade the affected component.","summary":"A flaw in the same_check function of the ipt_SAME.ko kernel module in MikroTik RouterOS can be triggered by a crafted manipulation, causing an integer overflow. The sources do not state the exact effect beyond that, but the flaw is described as remotely triggerable.","severity":"high","cvss":7.1,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["infrastructure","mikrotik","network-gear","routeros","routers"],"not_affected_if":["patched-version"],"how_to_check":"- Check the RouterOS version on the device with `/system resource print` and compare it against the affected range up to `6.40.5`, `6.44` and `7.20.8`\n- unknown for other checks; the sources do not say whether ipt_SAME is enabled by default","fix":"- Upgrade RouterOS to `7.21.5` or `7.23.1`, as recommended by the sources\n- unknown for any workaround","status":"open","published_at":"2026-10-19T16:17:05+00:00","first_seen_at":"2026-10-23T21:57:18+00:00","triaged_at":"2026-10-25T03:34:54+00:00","updated_at":"2026-10-25T03:34:54+00:00","category":"infrastructure","confidence":0.5,"triage":{"at":"2026-10-25T03:34:54Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade RouterOS to `7.21.5` or `7.23.1`, as recommended by the sources\n- unknown for any workaround","reach":"internet","title":"MikroTik RouterOS: integer overflow in ipt_SAME kernel module","impact":"high","summary":"A flaw in the same_check function of the ipt_SAME.ko kernel module in MikroTik RouterOS can be triggered by a crafted manipulation, causing an integer overflow. The sources do not state the exact effect beyond that, but the flaw is described as remotely triggerable.","category":"infrastructure","nicknames":[],"who_cares":["mikrotik","routeros","routers","network-gear"],"confidence":0.5,"needs_auth":"unknown","worst_case":"Remote attacker may trigger integer overflow in router kernel module","analyst_note":"Confirm the attack vector, the effect of the overflow (crash or code execution), and whether ipt_SAME is loaded by default, using the NVD entry at https://nvd.nist.gov/vuln/detail/CVE-2026-112158 and the MikroTik advisory.","how_to_check":"- Check the RouterOS version on the device with `/system resource print` and compare it against the affected range up to `6.40.5`, `6.44` and `7.20.8`\n- unknown for other checks; the sources do not say whether ipt_SAME is enabled by default","needs_analyst":true,"not_affected_if":["patched-version"],"who_is_affected":"Teams running MikroTik RouterOS devices within the listed affected version ranges, including routers and firewalls reachable from the network. The sources do not say which configurations expose the ipt_SAME module, so whether devices on a patched or unusual setup are affected is unknown.","user_interaction":"unknown","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.000654,"input_tokens":3350,"output_tokens":639,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-112158':12A,15A '-2026':11A,14A '/6.44/7.20.8':78C '6.40.5':77C '7.21.5':106C '7.23.1':108C 'address':112C 'affect':119C 'attack':98C 'beyond':57B 'caus':45B 'check':28B,84C 'compon':120C 'craft':43B 'cve':10A,13A 'describ':63B 'effect':56B 'exact':55B 'execut':89C 'file':87C 'flaw':24B,61B 'function':29B,82C 'gear':20B 'identifi':71C 'impact':79C 'infrastructur':16B 'integ':3A,47B,95C 'ipt':6A 'ipt_same.ko':32B,88C 'issu':114C 'kernel':8A,33B 'launch':101C 'lead':93C 'manipul':44B,91C 'may':99C 'mikrotik':1A,17B,36B,73C 'modul':9A,34B 'network':19B 'network-gear':18B 'overflow':4A,48B,96C 'recommend':110C 'remot':65B,102C 'router':22B 'routero':2A,21B,37B,74C 'sourc':50B 'state':53B 'trigger':40B,66B 'upgrad':103C,117C 'version':105C 'weak':68C","nicknames":[],"mitigations":[],"who_affected":"Teams running MikroTik RouterOS devices within the listed affected version ranges, including routers and firewalls reachable from the network. The sources do not say which configurations expose the ipt_SAME module, so whether devices on a patched or unusual setup are affected is unknown.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-19T16:17:05+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"cna@vuldb.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-112158","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112158","severity":null,"published_at":"2026-10-19T16:17:05+00:00","modified_at":"2026-10-19T20:43:24+00:00","first_seen_at":"2026-10-23T21:57:18+00:00","fetched_at":"2026-10-23T22:28:57+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}