1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/sys/net
Maciej Jurczak 3be2c51c42 nanocoap: Fixed buffer read out of the input packet bounds issue.
If token length in the header was longer than actually provided in the following payload, read out of the input buffer bounds or processing of data beyond the actual input packet bound could happen. In order to remove the risk, the options loop condition was modified to early detect the condition and abort packet processing if a malformed packet is detected.

nanocoap: Added pointer range check after token length parsing.

Added a check to verify if the current packet parsing pointer is still within the packet boundaries after incrementing by the token length declared in the header. If packet is malformed an error code is returned.

nanocoap: Combined packet length checks

Combined packet length checks after reading token length and processing options into a single packet length validation after the options parsing loop. The entry to the options parsing loop is safe as the while loop condition protects against entering the loop if the token length was invalid.
2020-05-25 22:44:39 +02:00
..
application_layer nanocoap: Fixed buffer read out of the input packet bounds issue. 2020-05-25 22:44:39 +02:00
ble ble/skald: remove broken assert in init() 2019-09-26 22:07:23 +02:00
credman sys/net: add credman (D)TLS credential manager 2019-07-19 13:56:21 +02:00
crosslayer ieee802154: add definitions & config options for MR-O-QPSK 2020-04-29 10:41:37 +02:00
gnrc Merge pull request #13740 from miri64/gnrc_ipv6_nib/fix/abr-add-pio-iface 2020-05-12 15:43:45 +02:00
link_layer ieee802154: Expose configurations to Kconfig 2020-04-08 18:28:23 +02:00
netdev_test sys/net: iolist updates 2018-03-06 14:00:32 +01:00
netif netif: introduce descriptor based netif 2019-10-11 10:59:14 +02:00
network_layer sys/net: fix typos 2019-11-23 22:39:38 +01:00
routing net: Remove NHDP module 2020-02-18 13:20:05 +01:00
sock sock_async_event: update for async callback argument support 2020-03-11 16:54:12 +01:00
transport_layer sys: fix doxygen grouping 2018-06-11 19:12:02 +02:00
doc.txt doc: add net to sys group 2015-08-30 14:00:33 +02:00
Kconfig Merge pull request #13315 from jia200x/pr/kconfig/ieee802154 2020-04-08 19:34:55 +02:00