В FRRouting (FRR) 8.3 по 10.5.1, bgp_notify_decapsulate_hard_reset() в bgpd/bgp_packet.c не проверяет длину поля данных полученного сообщения BGP NOTIFICATION Cease/Hard Reset (RFC 8538). Когда поле данных имеет длину ровно в один байт, функция считывает один байт за конец кучи буфера, и 16-битная длина инкапсулированных данных уменьшается до 65535, в результате чего считывание out-of-bounds в 65535 байт сопровождается отказом утверждения. Удаленный BGP, который установил сеанс и договорился о возможности Graceful Restart с битом Notification (N), может отправить такое сообщение, чтобы сломать демон bgpd, прекратив все сеансы BGP (отказ в обслуживании).
Это исправлено в 10.0.5, 10.1.5, 10.2.6, 10.3.4, 10.4.3, 10.5.2 и 10.6.0.
Показать оригинальное описание (EN)
In FRRouting (FRR) 8.3 through 10.5.1, bgp_notify_decapsulate_hard_reset() in bgpd/bgp_packet.c does not validate the length of the data field of a received BGP NOTIFICATION Cease/Hard Reset message (RFC 8538). When the data field is exactly one byte long, the function reads one byte past the end of a heap buffer and the 16-bit length of the encapsulated data underflows to 65535, causing a 65535-byte out-of-bounds heap read followed by an assertion failure. A remote BGP peer that has established a session and negotiated the Graceful Restart capability with the Notification (N) bit can send such a message to crash the bgpd daemon, terminating all BGP sessions (denial of service). This is fixed in 10.0.5, 10.1.5, 10.2.6, 10.3.4, 10.4.3, 10.5.2 and 10.6.0.
Характеристики атаки
Последствия
Строка CVSS v4.0