OVN: no DNS responses are generated for TCP queries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Security Advisory |
Won't Fix
|
Undecided
|
Unassigned | ||
neutron |
New
|
Undecided
|
Unassigned |
Bug Description
When a client sends a query via TCP instead of UDP, OVN does not generate an answer. The query is instead forwarded to the configured external resolvers. Example:
debian@vm1:~$ dig +tcp vm1
; <<>> DiG 9.18.16-
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 24091
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;vm1. IN A
;; AUTHORITY SECTION:
. 2468 IN SOA a.root-servers.net. nstld.verisign-
;; Query time: 0 msec
;; SERVER: 9.9.9.9#53(9.9.9.9) (TCP)
;; WHEN: Sat Aug 05 19:44:16 UTC 2023
;; MSG SIZE rcvd: 107
For comparison check the same query via UDP:
debian@vm1:~$ dig +noedns vm1
; <<>> DiG 9.18.16-
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41575
;; flags: qr rd ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;vm1. IN A
;; ANSWER SECTION:
vm1. 3600 IN A 10.128.0.77
;; Query time: 0 msec
;; SERVER: 9.9.9.9#53(9.9.9.9) (UDP)
;; WHEN: Sat Aug 05 19:45:39 UTC 2023
;; MSG SIZE rcvd: 40
(Note that the latter response does not actually come from the external server, but is spoofed by OVN.)
Marking as security bug since this may unexpectedly leak internal information (hostnames) to external third parties. Also see https:/
tags: | added: dns |
description: | updated |
Changed in ossa: | |
status: | New → Incomplete |
Can you see if the patch I mentioned in the other bug referenced here resolves this?
https:/ /patchwork<email address hidden>/
If so then we can close this and the other. Thanks.