Skip to content

dns: Protect against too long hostnames and malicious packets

Sascha Hauer barebox 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am 20260402-net-dns-buffer-overflows-v1-0-30621fe8c6b7@pengutronix.de change-id 20260402-net-dns-buffer-overflows-0b3a418dcdc2

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2net: dns: fix packet buffer overflow from long hostnamesnet/dns.c+14 -30 replies
2/2net: dns: fix OOB read in dns_recv query type checknet/dns.c+6 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchClaude Opus 4.6 (1M context)
1/2Co-Authored-By
2/2Co-Authored-By

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] dns: Protect against too long hostnames and malicious packets

This fixes some problems in the DNS code with wrong/malicious incoming data.

---
Sascha Hauer (2):
net: dns: fix packet buffer overflow from long hostnames
net: dns: fix OOB read in dns_recv query type check

 net/dns.c | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

---
base-commit: 0933e8f2ebf0d91dfcf177a4e4292b02921a53f1
change-id: 20260402-net-dns-buffer-overflows-0b3a418dcdc2

Best regards,

Signature · 1 line
Sascha Hauer <[email protected]>