Files
dnsmasq/src
Dominik 9e3e0465cd helper: fix OOB read in grab_extradata_lua bounds check
The loop in grab_extradata_lua checked *next != 0 in the loop
condition before the body could test next == end, so when next
reached end the byte *end was read out-of-bounds. The non-Lua
sibling grab_extradata had the correct order (test next == end
before dereferencing). Fix by adopting the same idiom.

Security: a DHCP client can supply a vendor-class option whose
content fills the extradata buffer with no trailing NUL, causing
a 1-byte OOB read in the Lua helper child (already non-root).
Requires HAVE_LUASCRIPT and a configured Lua script. Not feasible
for triggering a crash from remote reliably.

Signed-off-by: Dominik <dl6er@dl6er.de>
2026-03-30 17:57:44 +01:00
..
2025-02-08 22:58:42 +00:00
2025-01-23 17:08:39 +00:00
2026-03-01 12:19:11 +00:00
2025-01-23 17:08:39 +00:00
2025-08-20 12:36:03 +01:00
2025-07-27 15:27:40 +01:00
2026-03-15 16:03:29 +00:00
2025-01-23 17:08:39 +00:00
2025-01-23 17:08:39 +00:00
2026-02-01 15:44:13 +00:00
2025-01-23 17:08:39 +00:00
2025-06-20 15:48:47 +01:00
2025-05-14 22:35:51 +01:00
2025-01-23 17:08:39 +00:00
2025-01-23 17:08:39 +00:00
2025-01-23 17:08:39 +00:00
2025-01-23 17:08:39 +00:00
2025-03-29 21:41:40 +00:00
2025-01-23 17:08:39 +00:00
2025-03-29 21:41:40 +00:00
2025-08-21 22:13:43 +01:00
2026-02-03 22:33:32 +00:00
2025-03-29 21:41:40 +00:00
2025-06-20 15:48:47 +01:00
2025-09-01 22:35:02 +01:00