Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug parsing PDU session establishment request with Maximum number of supported packet filters IE #3

@nplrkn

Description

@nplrkn

Seen testing with a Motorola 5G phone.

The buffer.advance(1) here skips over the peeked IEI type:

 0x55 => {
    buffer.advance(1); // Skip IEI
    message.maximum_number_of_supported_packet_filters = Some(NasMaximumNumberOfSupportedPacketFilters::decode(buffer)?);
 },

...but NasMaximumNumberOfSupportedPacketFilters::decode() then wrongly takes 3 bytes instead of 2.

The result is that the next IEI offset is wrong, we go into the 'unknown IEI' case, and the library asserts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions