qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix NBD CVE-2020-10761
@ 2020-06-10 16:37 Eric Blake
  2020-06-10 16:37 ` [PATCH v2 1/2] nbd/server: Avoid long error message assertions CVE-2020-10761 Eric Blake
  2020-06-10 16:37 ` [PATCH v2 2/2] block: Call attention to truncation of long NBD exports Eric Blake
  0 siblings, 2 replies; 6+ messages in thread
From: Eric Blake @ 2020-06-10 16:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: xuwei, vsementsov, qemu-stable, qemu-block, ppandit

In qemu 4.2, I accidentally introduced the ability for an NBD client
obeying the specification to kill qemu as NBD server with an assertion
failure when the client requests an unusually long export name, as a
regression from the intended graceful server error message back to the
client.

In v2:
- use strnlen instead of strlen
- malloc a sane string rather than using a static buffer [Vladimir]
- enhance commit message
- tweak iotest to use different abbreviation than qemu-nbd
- add R-b on patch 2

Once this is reviewed, I'll then spin v2 of my NBD pull request.

Eric Blake (2):
  nbd/server: Avoid long error message assertions CVE-2020-10761
  block: Call attention to truncation of long NBD exports

 block.c                    |  7 +++++--
 block/nbd.c                | 21 +++++++++++++--------
 nbd/server.c               | 23 ++++++++++++++++++++---
 tests/qemu-iotests/143     |  4 ++++
 tests/qemu-iotests/143.out |  2 ++
 5 files changed, 44 insertions(+), 13 deletions(-)

-- 
2.27.0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-15 20:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-10 16:37 [PATCH v2 0/2] Fix NBD CVE-2020-10761 Eric Blake
2020-06-10 16:37 ` [PATCH v2 1/2] nbd/server: Avoid long error message assertions CVE-2020-10761 Eric Blake
2020-06-10 17:17   ` Vladimir Sementsov-Ogievskiy
2020-06-15 20:38   ` Eric Blake
2020-06-10 16:37 ` [PATCH v2 2/2] block: Call attention to truncation of long NBD exports Eric Blake
2020-06-15 20:39   ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).