Heap-based buffer overflow in Fast DDS - CVE-2023-39946
Published: August 22, 2023
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in eprosima::fastdds::dds::ParameterPropertyList_t::push_back_helper() function. A remote attacker can send an overly long CDR string to the discovery multicast port, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Affected software
Debian Linux
Ubuntu
fastdds-tools (Ubuntu package)
libfastrtps2.5 (Ubuntu package)
fastdds (Debian package)
libfastrtps2.9 (Ubuntu package)
How to mitigate CVE-2023-39946
fastdds-tools (Ubuntu package) - addressed in versions Ubuntu Pro, 2.9.1+ds-1ubuntu0.1
libfastrtps2.5 (Ubuntu package) - update to Ubuntu Pro
fastdds (Debian package) - addressed in versions 2.1.0+ds-9+deb11u1, 2.9.1+ds-1+deb12u1
libfastrtps2.9 (Ubuntu package) - update to 2.9.1+ds-1ubuntu0.1