Skip to content

Another NBD CVE fix: incomplete read

Eric Blake qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4nbd: Refactor structured payload interpretationblock/nbd.c+15 -31 reply
2/4nbd: Pass back offset/length for all structured read repliesblock/nbd.c+35 -101 reply
3/4nbd/client: Don't leak uninitialized memory on malicious serverblock/nbd.c+23 -11 reply
4/4nbd: Add iotest exposing previous CVE fixtests/qemu-iotests/tests/nbd-structured-read-gaps tests/qemu-iotests/tests/nbd-structured-read-gaps.out+220 -07 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchStefan Hajnoczi
1/4R-b
2/4R-b
3/4R-b
4/4

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 for-11.2 0/4] Another NBD CVE fix: incomplete read

https://gitlab.com/qemu-project/qemu/-/work_items/3815

This one is a bug with QEMU as NBD client leaking qemu heap data under the influence from a malicious server. Not as dramatic as the denial-of-service attacks that my two CVE fixes earlier this week (those were both assertion failures on QEMU as NBD server to a malicious client), but the data exfiltration may make other attacks on QEMU easier to pull off. As before, the ability to insist on TLS and perform x509 cert checks reduces the risk when you restrict NBD connections to assumed-safe servers.

Eric Blake (4):
nbd: Refactor structured payload interpretation
nbd: Pass back offset/length for all structured read replies nbd/client: Don't leak uninitialized memory on malicious server
nbd: Add iotest exposing previous CVE fix

 block/nbd.c                                   |  87 +++++--
 .../tests/nbd-structured-read-gaps            | 215 ++++++++++++++++++
 .../tests/nbd-structured-read-gaps.out        |   5 +
 3 files changed, 293 insertions(+), 14 deletions(-)
 create mode 100755 tests/qemu-iotests/tests/nbd-structured-read-gaps
 create mode 100644 tests/qemu-iotests/tests/nbd-structured-read-gaps.out
Signature · 1 line
2.56.0