One Defect in RouterOS PIM-SM: A Rendezvous-Point Range That Orphans a Held Group

We tested MikroTik RouterOS as a PIM-SM router and uncovered one defect. Three conformant PIM messages, 102 octets of payload between them, stop the router processing PIM permanently and hold one of its four cores at 100%, while unicast forwarding, OSPF and the management interface all keep working. MikroTik does not treat it as a security issue and no fix is planned, so the product is named.

We tested MikroTik RouterOS as a PIM-SM router, driving its multicast control plane from a directly attached host, and uncovered one defect: after a sequence of three conformant messages the router stops processing PIM and does not resume.

Unicast forwarding continues, OSPF continues, and the management interface answers in 0.02 seconds, so nothing about the device looks wrong from outside. Multicast routing is gone until the router is rebooted, and one of its four cores is held at 100% from the moment it happens.

No credential is used. No packet is malformed. Nothing is flooded. The three messages carry 102 octets of PIM payload between them, and the same three sent in a different order leave the router healthy.

It reproduces on 7.25.1, released 2026-11-02 and current at the time of testing, and on 7.25 and 7.23.2. Every run was against one device, a hEX RB750Gr3 at the mmips architecture.

The product is named here, which the rest of this series does not do. We reported it to MikroTik, it is not being treated as a security issue, and no fix is planned, so there is nothing left to withhold.

Denial of service: PIM-SM stops, and the rest of the router keeps running

A PIM router announces itself on each enabled segment every 30 seconds by default, so its own Hellos are the protocol's liveness signal. Counted from the segment, with no management session open at any point:

| window | Hellos from the router | | --- | ---: | | baseline, 90s | 3 | | after our Hello, 75s | 3 | | after the first Bootstrap, 75s | 2 | | **after the second Bootstrap, 75s** | **0** | | **final window, 150s** | **0** |

‍

Identical on 7.23.2, 7.25 and 7.25.1.

From the console afterwards, every /routing pimsm submenu blocks indefinitely, including the one that would disable and re-enable the instance. /system resource, /system identity, /routing ospf neighbor and the multicast membership menu all answer in 0.02 seconds. Per core load reads 57, 42, 2, 0 with the routing process at 25.1% of a four core box, which is one thread spinning. Over 80 seconds after the trigger an external syslog recorded 8 OSPF lines and 0 PIM lines.

So the failure is confined to one task inside the routing process. That is narrower than a router falling over, and it is harder to notice for the same reason. An operator monitoring reachability, unicast routing, CPU alarms at a sensible threshold or the management interface sees a healthy device, and the multicast service is gone.

Nothing restored it short of a reboot. The router was watched for 225 seconds after the last packet with nothing further sent, and PIM never came back.

The trigger: a Bootstrap range strictly inside the one the router accepted, orphaning the group it holds

The router holds multicast state for a group, 239.255.255.250 in the runs below, either because a host sent a membership report or because the group is pinned in configuration. A Bootstrap message advertises which rendezvous point serves which range of groups, and the router accepts one such range and then another.

The router stops when a Bootstrap advertises a range that is strictly inside the last range it accepted, that orphans the group it is holding, meaning that group was covered by the old range and is not covered by the new one, and that arrives promptly after the range it replaces. All three are necessary, and none of them suffices alone or in pairs.

| first range | second range | inside | orphans the held group | result | | --- | --- | --- | --- | --- | | `239.0.0.0/8` | `239.192.0.0/12` | yes | yes | **PIM-SM stops** | | `239.0.0.0/8` | `238.192.0.0/12` | **no** | yes | PIM-SM keeps running | | `239.240.0.0/12` | `239.240.0.0/24` | yes | yes | **PIM-SM stops** | | `239.0.0.0/8` | `239.255.0.0/16` | yes | **no** | PIM-SM keeps running | | `239.0.0.0/8` | `239.192.0.0/12`, 100 seconds later | yes | yes | PIM-SM keeps running |

‍

The third row rules out a dependence on the first range being a short prefix: a /12 first range stops the router when the second range is inside it. The fourth rules out narrowing on its own, because the held group is inside both 239.0.0.0/8 and 239.255.0.0/16, so that pair narrows without orphaning anything.

An advertisement that is not inside the range the router is already holding is discarded rather than accepted, so the router only ever narrows, and each of the three conditions is measured against the last range it accepted rather than against the last message it was sent.

This was established with a factorial design rather than by narrowing from a guess: 28 arms, each one a single property move from another arm, each run against a freshly rebooted device. The three condition rule accounts for all 28 verdicts, predicting every arm that stopped the router and every arm that left it running.

The exact timing bound has not been measured. The router stops at a gap of 20 seconds and at a gap of 75 seconds, and keeps running at 100 seconds. It is not the rendezvous point holdtime: raising the advertised holdtime from 105 to 600 seconds, so the first range was still live by a factor of six when the second arrived, left the 100 second arm running.

The number of messages does not matter either. Sending the first range four times rather than once still stops the router. What mattered in the arms that appeared to depend on a burst was which prefix the burst ended on.

The preconditions, and that each one is load bearing

PIM-SM has to be enabled on an interface the attacker can reach at layer 2. That bounds the exposure, and it is the whole of the bound, because PIM-SM as specified carries no authentication and so has no credential step to fail.

| # | condition | how an attacker meets it | | --- | --- | --- | | 1 | the router holds multicast state for some group | send one membership report, or join the group with an ordinary socket | | 2 | the sender is an established PIM neighbour | send one Hello and repeat it each Hello Period | | 3 | the Bootstrap wins the bootstrap router election | priority 200 beats a router acting as its own bootstrap router | | 4 | the Bootstrap names the sender's own address as the bootstrap router | set the field | | 5 | the Bootstrap carries a rendezvous point set | one group record and one rendezvous point record is enough |

‍

Each of conditions 2 to 5 was shown to be load bearing by removing it, one variant per freshly rebooted device, each differing from the firing sequence in exactly one respect. Without the Hello ahead of it, with the group and rendezvous point records stripped out (36 octets down to 14), with a third party address named as the bootstrap router instead of the sender, and with a bootstrap router priority of 0 and a low address, the router kept running in every case.

Conditions 3 and 4 are the pair that constrains a reading. A bootstrap router the device accepts but cannot reach is harmless. One it accepts and already holds as a directly connected neighbour is not. That reads as the device proceeding into state it builds only for a reachable bootstrap router, and not coming out of it, which is four measurements rather than anything anyone has seen in the code.

Where the router stops, in its own log

The device's own log cannot be read afterwards, because the menu that reads it is inside the process that has stopped, so the runs logged to an external syslog server with the PIM and routing topics at debug level. The two Bootstraps differ by one octet, and the log boundary is one line wide.

| first range, fragment tag `3f0` | second range, fragment tag `3f4` | | --- | --- | | `store rp set with fragment 3f0` | `store rp set with fragment 3f4` | | `uib { grp: 239.255.255.250 } update` | *(nothing follows)* | | `uib { src, grp } update` | | | `change state to accept preferred` | | | completes in **1 ms** | never completes |

‍

So the work that does not terminate sits between storing the rendezvous point set and updating the upstream bindings, and the combination that reaches it is a group that had an upstream binding through a range which the new rendezvous point set no longer covers, with the old binding recent enough to still be in whatever state the update walks.

That is as far as a black box reading goes. The device names the step it does not come out of, and says nothing from inside it.

What has not been established

Stated so that none of it has to be inferred from silence.

  • The mechanism. Nothing above explains why the device does not come out of that step. This was a running device with no access to source code, and the log boundary is where the reading ends.
  • Other hardware. One device, a hEX RB750Gr3, architecture mmips. No ARM, ARM64, x86 or tile build, and no cloud router.
  • Other versions. 7.23.2, 7.25 and 7.25.1 reproduce it, and 7.25 carries a substantial PIM rework which this survived unchanged. Nothing between or before those was tested.
  • The timing bound. Reproduced at 20 and 75 seconds, kept running at 100. The boundary between them is not measured.
  • PIM-SM over IPv6, which arrived in 7.25 and was not tested.
  • Whether anything short of a reboot recovers it. Nothing sent after the trigger changed anything, and no systematic attempt at recovery was made.

Finding this with Penzzer

PIM has a protocol-aware target. Select Protocol Independent Multicast (PIM) under INET4 and give it the router's address. A walk reaches all nine PIM-SM message types, including the Bootstrap that this article's defect turns on and the Candidate rendezvous point advertisement beside it.

A protocol-aware run against this router walked 21,904 cases in 3,603 seconds and reported no finding. Across 776 liveness samples over 65 minutes the device was unharmed: free memory moved by 0.4 MiB over the run, the ping reply stayed at 4 ms in every sample, and the designated router role was held throughout. A field walk moves the fields of a message through their ranges and sends what it builds. The defect here is a relationship between two messages that are each conformant on their own, where what the second one means to the receiver depends on what the first one established 20 seconds earlier.

Driving that relationship is what a curated attack module is for.

| Attack module | What it drives | | --- | --- | | A rendezvous-point range that orphans a group the target holds | A range strictly inside the one the target accepted, which stops covering a group the target is holding | | Bootstrap rendezvous-point count mismatch | The fragment rendezvous-point count on a Bootstrap, against the message that carries it | | Bootstrap rendezvous-point set state exhaustion | Rendezvous-point entries retained per message | | Candidate rendezvous-point prefix count mismatch | A declared prefix count against the advertisement that carries it | | Encoded address family and width mismatch | A declared address family against an address of the other family's width | | Encoded address mask length bounds | The group mask length, including values out of range for the shift it drives | | Join source count state exhaustion | Routing entries created per join, and what each one costs | | Rendezvous-point holdtime that never expires | The holdtime value, including the sentinel that means permanent | | Truncated pdus of defined message types | Each message type ending before its fixed fields are complete | | Undefined pdu types and versions | Type and version values outside the implemented set |

‍

The first of those drives the sequence in this article directly. Its case arm, octet for octet the sequence above, stopped this router when it was run on its own.

The oracle is the one the protocol supplies. A PIM Hello is not answered, so the router's own announcements are the signal: a speaker that was announcing itself on a segment 30 seconds ago and is not announcing itself now is the finding, and seven of the ten modules above carry that check.

One operational note for anyone driving this against their own equipment. Reboot between arms. The stop is permanent, so a device that has already stopped has no speaker left to hear, and the next run stands down reporting nothing.

What this article is, and is not

The defect above is a sample of what this kind of testing surfaces, not a description of Penzzer's PIM coverage. It is what one router happened to get wrong on one of its control protocols.

The attack library spans defect classes well beyond what this article shows: memory safety, information disclosure, resource exhaustion, availability, hangs and algorithmic complexity, input validation, protocol state logic, type and format handling, and error handling. Across the 106 protocols with a protocol-aware target, a run also generates its test cases from the structure of the protocol itself.

The same limit applies in reverse. What a test looks for is a property of the test, not a claim about your device. The protocol-aware run against this router reported no finding over 21,904 cases, and that is what a clean result means.

If you run PIM-SM

The exposure is exactly the set of interfaces with PIM-SM enabled. A segment that carries untrusted hosts and PIM-SM at the same time is the whole of the attack surface, and PIM-SM has no authentication to turn on.

Two questions about the code. When a new rendezvous point set removes coverage of a group that currently has an upstream binding, is the update that follows bounded? And can that update be reached while the previous set's structure is partly torn down, which is the likeliest reading of why timing is a condition at all?

One question about monitoring. Does anything you run watch the multicast control plane as something distinct from reachability, unicast routing and total CPU? On the evidence here all three of those read healthy while the service was gone, and the signal that was available the whole time was a router that had stopped announcing itself on its own segment.

Other Post
Uncover Hidden Vulnerabilities

Identify security flaws before attackers do, automatically and at scale with Penzzer's intelligent fuzzing engine.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.