fix: the dhcp server copies the hardware address (ch... in...#11372
fix: the dhcp server copies the hardware address (ch... in...#11372orbisai0security wants to merge 1 commit intoRT-Thread:masterfrom
Conversation
Automated security fix generated by Orbis Security AI
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: componentsReviewers: @Maihuanyi Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-05-07 13:38 CST)
📝 Review Instructions
|
Summary
Fix critical severity security issue in
components/net/lwip-dhcpd/dhcp_server_raw.c.Vulnerability
V-001components/net/lwip-dhcpd/dhcp_server_raw.c:269Description: The DHCP server copies the hardware address (chaddr) from an incoming DHCP packet into a fixed-size destination buffer using the length field (hlen) directly from the attacker-controlled packet, without first verifying that hlen does not exceed the destination buffer size. An attacker can set hlen to 255 (maximum byte value) while the destination buffer is sized for 16 bytes (maximum Ethernet hardware address per RFC 2131), causing up to 239 bytes of heap overflow that corrupts adjacent memory structures.
Changes
components/net/lwip-dhcpd/dhcp_server_raw.cVerification
Automated security fix by OrbisAI Security