Open-source 4G phone software accepts a replayed message
In short
- What was found: in a preprint (not yet peer reviewed), two researchers report that srsUE, the phone-side software in the open-source srsRAN 4G stack, accepted the same integrity-protected control message twice. Both copies passed the check, the message handler ran twice, and the stored receive counter went from 3 back to 2.
- Why it matters: a phone should act on each signed network message only once. A correct signature shows a message was made with the right key, not that it is new. srsUE checked the first and not the second.
- The catch: each of four test cases was run once, on one computer with a simulated radio and null ciphering (encryption switched off), and the replayed message (EMM Information, which carries network names and time) does not change registration state.
What does "replay protection" mean?
A replay attack records a genuine message and sends it again later. If the receiver only checks that the message is correctly signed, the copy passes, because it is an exact copy.
Control messages between a phone and the mobile core network are called NAS (non-access stratum) messages. In 4G (LTE) the core network element is the Mobility Management Entity (MME). Once security is active, each NAS message carries a 32-bit integrity code (MAC) and an 8-bit sequence number. Each side also keeps a running 24-bit counter, NAS COUNT, per direction, and the receiver rebuilds the full COUNT from its own state plus the received sequence number.
The authors cite the 3GPP specification (TS 24.301 section 4.4.3.2): for a given security context, a COUNT value shall be accepted at most once, and only if integrity verifies. That is the replay rule. In plain terms (our wording), the counter must only move forward.
What did the researchers test?
The authors, Saad Kabir Uddin (independent researcher, Dhaka) and Raihan Islam Arnob (University of Lynchburg, USA), ran srsUE, the eNodeB (base station) srsENB and the core srsEPC over ZeroMQ loopback on one host. ZeroMQ stands in for the radio, so nothing was transmitted over the air. They added logging to the phone's receive path and modified the EPC to resend recorded messages. The setup used EIA1 integrity and null (EEA0) ciphering, and a synthetic subscriber identity and keys.
The table's wording of the results is ours, built from the paper's Table 3.
What happened when the message was replayed?
In T2 the repeated 51-byte message appeared as identical payloads in S1AP frames 12 and 13. The phone logged an integrity pass and ran the EMM Information handler for each. The duplicate's record showed the receive COUNT moving from 3 to 2. The message from another session (T3) was rejected, which the authors say fits a different key rather than a counter mismatch.
Where is the bug?
The authors trace it to nas_base::integrity_check. The function builds an estimated COUNT from the stored high bits and the received sequence number, checks the MAC with it, and, if the MAC matches, stores the estimate whenever it differs from the current value, "including when count_est is smaller". Nothing compares it with COUNT values already accepted.
In the T2 run the original message carried sequence number 2 and was checked with COUNT 2, after which the handler advanced the counter to 3. The duplicate carried the same number, so the estimate was 2, the MAC matched, and the counter was set from 3 back to 2 before the handler ran again and returned it to 3. The authors stress that 3 to 2 is the integrity event, not the final counter of the run.
The source comment cites TS 24.301 section 4.4.3.3, which does require the receiver to replace its stored COUNT after a successful check. The authors say the code implements that step but not the rules around it.
Is this new?
Partly. The paper says an srsRAN issue filed on 17 November 2026 (#1580) reports the same root cause for srsUE's 5G NAS, including a receive COUNT rolling back from 3 to 2. Because the 4G and 5G NAS classes inherit from the same base class and call the same function, the authors say their result "independently" confirms it on the 4G path, with packet-level evidence and a cross-session control. They also inspected, but did not build or run, srsRAN 4G master as of 2 December 2026 (commit 9d2aac7d) and say the logic is unchanged.
What is not shown
- One run per case, one build (commit cc8f48a7), null ciphering and a simulated radio. Timing sensitivity was not measured.
- Only one message type: EMM Information was repeated. The authors did not test messages that change state, such as a GUTI Reallocation Command or a network-initiated Detach Request, and saw no change in registration state.
- No real attack: the threat model assumes an attacker who can re-send recorded downlink bytes but cannot forge new ones. The authors do not model how to inject them over the air, and no commercial network or device was involved.
- Integrity outcomes come from the phone's own log; the MAC and keys were not independently recomputed.
- The proposed fix is untested: reject a message whose estimated COUNT is not above the highest accepted, and never move the stored COUNT backwards. Wrap-around and message loss were not checked.
Terms in plain English
- srsRAN 4G: an open-source 4G software stack used in research and teaching; srsUE is its phone side.
- Integrity protection: a code that shows a message was made with the right key and not altered (our wording).
- Replay protection: refusing a valid message that has already been accepted (our wording).
- NAS COUNT: a running message counter used in the integrity check.
Where things stand
This is a v1 preprint submitted to arXiv on 3 December 2026 (cs.CR). The authors plan to test a fix, add their 4G evidence to the upstream report, repeat with ciphering on, try messages that change registration state, and release the modified EPC. That patch is not yet released, and raw captures stay private because they contain subscriber material. The testbed configuration, runner, logging patch and analysis tools are on GitHub (saadkabiruddin/NASReplayLab).
Sources
- NASReplayLab: An Experimental Analysis of Downlink NAS Replay Protection in the srsRAN 4G UE, arXiv, 3 December 2026
Sources
Related stories
- Preprint says fake base stations can keep phones looping in 4G and 5G
- One programmable metasurface panel can sense a person or send data
- IETF defines Quality of Outcome, a 0-100% network score per app
- ITU adopts its first resolution on lunar exploration, it says
- Quantum-dot glass panel lets a light receiver accept ±75° signals
- Tyvak says its 12U cubesat carried two-way 5G links in orbit
More from Wi-Fi Wizards
- AR display carries perovskite LED light through bendable fibre
- Metasurface layer cuts eye-tracking compute 47% for AR/VR headsets
- Samsung says SmartTag3 points to lost items from up to 60 metres
- Samsung says its 27-inch Odyssey G6 reaches 1,100 Hz in HD
- Apple's HomeView case is a glued heat sink, iFixit finds