diff options
| author | 陈谋顺 <[email protected]> | 2026-10-09 11:16:57 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2026-10-10 17:20:57 +0800 |
| commit | 887ca7175cfef7f11f8566020d23335e9a73f271 (patch) | |
| tree | 0fda17a87a261925543091a16c9aa6709438ece0 /components/external | |
| parent | cd92c3d06c880d097059ee3e0bf17cd54abb4603 (diff) | |
[components][lwip] dhcpd: check buffer bounds when parsing options
The option loop advanced by the option length without checking the
number of bytes actually received by recvfrom(), so a malformed or
truncated DHCP packet could make the server read past the end of the
receive buffer.
Check that the option type, length and payload stay inside the received
data before reading them, and stop parsing when a requested IP option
is shorter than 4 bytes or a message type option is shorter than 1 byte.
Fixes #11323
Diffstat (limited to 'components/external')
0 files changed, 0 insertions, 0 deletions
