# CVE-2026-112158: MikroTik RouterOS integer overflow in ipt_SAME module

Source: https://junglewise.ai/threats/cve-2026-112158-a-weakness-has-been-identified-in-mikrotik-routeros-up-to-6-40-5  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-19. Updated: 2026-10-19  
License: CC BY 4.0 with a link back

CVE-2026-112158 · Severity: medium · CVSS 6.5 · Published 2026-10-19

MikroTik RouterOS is a network operating system used to configure routers and manage network traffic. An integer overflow vulnerability in the ipt_SAME kernel module can be exploited remotely to cause unexpected behavior or a system crash, potentially disrupting network connectivity.

Technologies: [MikroTik RouterOS](https://junglewise.ai/threats/technologies/routeros). Vendors: [MikroTik](https://junglewise.ai/threats/vendors/mikrotik).

## Quick answers

**Is CVE-2026-112158 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-112158 being exploited in the wild.

**How severe is CVE-2026-112158?** Medium severity, with a CVSS score of 6.5, published 19 October 2026.

**Which products and versions are affected?** MikroTik RouterOS up to 6.40.5, 6.44, and 7.20.8.

**Is there a fix for CVE-2026-112158?** Yes: fixed in RouterOS 7.21.5, 7.23.1. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-112158 attacked?** It is attacked over the network, in an operating system.

**Am I affected by CVE-2026-112158?** Check whether you run MikroTik RouterOS at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in RouterOS 7.21.5, 7.23.1

## Technical details

An integer overflow exists in the same_check function of the ipt_SAME.ko kernel module in RouterOS. The vulnerability can be triggered remotely through network manipulation without requiring authentication. Successful exploitation may lead to system instability or denial of service. Fixes are available in RouterOS 7.21.5 and 7.23.1.

## Affected products

- MikroTik RouterOS up to 6.40.5, 6.44, and 7.20.8

## Timeline

- 2026-10-19: disclosed

## References

- [https://github.com/MeetFireAgain/cve/mikrotik/routeros-ipt-same-integer-overflow-brick.md](https://github.com/MeetFireAgain/cve/mikrotik/routeros-ipt-same-integer-overflow-brick.md)
- [https://vuldb.com/cve/CVE-2026-112158](https://vuldb.com/cve/CVE-2026-112158)

## Related threats

- [MikroTik RouterOS session token replay authentication bypass in WebFig](https://junglewise.ai/threats/cve-2026-89035-mikrotik-routeros-through-7-24-5-contains-a-session-token-replay)
- [MikroTik RouterOS WinBox incorrect authorization in authentication](https://junglewise.ai/threats/cve-2026-103903-an-incorrect-authorization-vulnerability-in-the-winbox)
- [MikroTik RouterOS integer underflow](https://junglewise.ai/threats/cve-2026-84411-mikrotik-routeros)
- [MikroTik RouterOS improper input validation in BGP labelled-VPN NLRI](https://junglewise.ai/threats/cve-2026-93345-mikrotik-routeros-before-7-25beta4-contains-an-improper-input)
- [MikroTik firmware cleartext credential storage](https://junglewise.ai/threats/cve-2025-56566-mikrotik-firmware-cleartext-credential-storage)
