CVE-2024-29441
ROS2 Humble DoS via nodes; disputed vulnerability claim.
- CWE-770 (inferred)
- Resource Management
- Remote
An issue was discovered in ROS2 (Robot Operating System 2) Humble Hawksbill in ROS_VERSION 2 and ROS_PYTHON_VERSION 3, allows remote attackers to cause a denial of service (DoS) via the ROS2 nodes. NOTE: this is disputed by multiple third parties who believe there was not reasonable evidence to determine the existence of a vulnerability.
- CWE
- CWE-770 (inferred)
- Published
- 2024-04-10
- OWASP
- A06 Vulnerable and Outdated Components
- Orthogonal defect classification
- Timing/Serialization
- Code defect classification
- Timing Issues
- Category
- Resource Management
- Subcategory
- Resource Exhaustion
- Accessibility scope
- Remote
- Impact
- Denial of Service (DoS)
- Affected component
- ROS2
Solution
Upgrade ROS 2 to version Humble Hawksbill 2.2.0 (or any later release in the Humble series) which contains the fix for this issue.
Vulnerable code sample
import rclpy
from rclpy.node import Node
from std_msgs.msg import String
import time
class Talker(Node):
def __init__(self):
super().__init__('talker')
# VULNERABLE: unbounded loop creates publishers continuously, exhausting resources
while True:
self.create_publisher(String, 'chatter', 10)
def main():
rclpy.init()
talker = Talker()
rclpy.spin(talker)
rclpy.shutdown()Patched code sample
import rclpy
from rclpy.node import Node
from std_msgs.msg import String
import time
class Talker(Node):
def __init__(self):
super().__init__('talker')
# FIX: create a single publisher and reuse it, preventing resource exhaustion
self.publisher_ = self.create_publisher(String, 'chatter', 10)
def main():
rclpy.init()
talker = Talker()
rclpy.spin(talker)
rclpy.shutdown()Cite this entry
@misc{vaitp:cve202429441,
title = {{ROS2 Humble DoS via nodes; disputed vulnerability claim.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2024},
note = {VAITP Python Vulnerability Dataset, entry CVE-2024-29441},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-29441/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
