nRF Sniffer for BLE : capture stuck when parsing invalid advertisement packet

When receiving an ADV_IND with length = 0 (invalid), nrfutil-ble-sniffer stops writing to the capture file, even if it is still reading data from the serial port.
With Wireshark, the capture stops with "Error from extcap pipe: Error: Failed to get packet".

Environment :
 - nrfutil-ble-sniffer 0.22.0 (9daaffc 2026-10-29) on Linux
 - sniffer firmware 5.0.0 on nRF52840 dongle

nrfutil ble-sniffer sniff --port /dev/ttyACM1 --output-pcap-file test.pcap --log-output=stdout --log-level=trace

...
DEBUG - [nrfutil_ble_sniffer::packet::packet_manager] Attempting to retrieve new UART packet
DEBUG - [nrfutil_ble_sniffer::packet] Got EVENT_PACKET_ADV_PDU
DEBUG - [nrfutil_ble_sniffer::packet::ble::advertisement] CRC flag is set. Packet will be more finegrainely parsed.
DEBUG - [nrfutil_ble_sniffer::packet::ble] Parsed phy as 0, thus will be parsing metadata as uncoded.
DEBUG - [nrfutil_ble_sniffer::packet::ble::advertisement] Got advertisement type: 0
(stuck)


Corresponding data read on the serial port, captured with strace :
 | 00000  ab 14 00 03 d0 02 02 0a  01 25 35 00 00 6f 5b 67  .........%5..o[g |
 | 00010  01 d6 be 89 8e 00 00 00  1d b5 38 bc              ..........8.     |

Note that reading continues on the serial port, so the dongle is still capturing data, and the software is still reading it, but the analysis and capture file writing stops.

Parents
  • Hi,

    Thank you for the bug report. It is highly appreciated!

    I have not yet reproduced this, due to lack of a faulty advertiser. Is this issue something you see often, and/or can easily reproduce?

    If you have firmware for an nRF device for reproducing the given faulty advertisements, then please share it so we can quickly reproduce the issue. If that firmware is confidential, then you can open a private ticket, refer to this one, and attach the firmware there.

    In any case I have registered your report for us to look further into.

    Regards,
    Terje

Reply
  • Hi,

    Thank you for the bug report. It is highly appreciated!

    I have not yet reproduced this, due to lack of a faulty advertiser. Is this issue something you see often, and/or can easily reproduce?

    If you have firmware for an nRF device for reproducing the given faulty advertisements, then please share it so we can quickly reproduce the issue. If that firmware is confidential, then you can open a private ticket, refer to this one, and attach the firmware there.

    In any case I have registered your report for us to look further into.

    Regards,
    Terje

Children
  • The real faulty advertiser is unkown.
    But I made a firmware to reproduce the issue using Zephyr : it is based on the beacon example, but modified to send ADV_IND with no advertising data, and with the BLE stack being modified to set the length to 0 instead of the advertising address.
    I attached a zip file for the nRF52840 dongle : plugging it immediately stops nrfutil-ble-sniffer.
    3005.beacon.zip

Related