All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org,
	"qemu-stable@nongnu.org Marc-André Lureau"
	<marcandre.lureau@redhat.com>
Subject: Re: [PULL 1/4] io: fix busy-wait when uncorking
Date: Fri, 4 Dec 2026 09:47:28 -0600	[thread overview]
Message-ID: <axLgA9ldIso4Bj3V@redhat.com> (raw)
In-Reply-To: <20261204130510.855744-2-berrange@redhat.com>

On Fri, Dec 04, 2026 at 01:05:07PM +0000, Daniel P. Berrangé wrote:
> If we have corked data pending on the TLS channel, when uncorking
> if we don't make progress sending any data, the code currently
> busy-waits as it mistakenly expects QCRYPTO_TLS_SESSION_ERR_BLOCK.
> 
> This return value is never set by the uncork method, as that will
> always return the amount of outstanding data. IOW, to detect this
> situation we need to look for the amount of corked data being
> unchanged.
> 
> The busy-waiting would allow a lesser privileged, but none the less
> authenticated & authorized, network client to create a denial of
> service attack on the whole VM which can be owned by a user with
> high privileges.
> 
> Fixes: https://gitlab.com/qemu-project/qemu/-/work_items/5027
> Fixes: CVE-2026-141376
> Fixes: 99a8b5a0 ("io: cork TLW writes to avoid small TLS records", v11.2.0-rc0)

(oops - I typo'd s/TLS/TLW/ when feeding a line to Dan, who then
pasted it in as I typed)

cc: qemu-stable

since the original commit has already been included by backport in
stable releases

> Reviewed-by: Eric Blake <eblake@redhat.com>
> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization:  qemu.org | libguestfs.org



  reply	other threads:[~2026-12-04 15:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 13:05 [PULL for-11.2 0/4] Misc fixes patches Daniel P. Berrangé
2026-12-04 13:05 ` [PULL 1/4] io: fix busy-wait when uncorking Daniel P. Berrangé
2026-12-04 15:47   ` Eric Blake [this message]
2026-12-04 13:05 ` [PULL 2/4] io: fix EOF check in websocket decoding code Daniel P. Berrangé
2026-12-04 13:05 ` [PULL 3/4] tests/functional: update to newer sunxi kernels again Daniel P. Berrangé
2026-12-04 13:05 ` [PULL 4/4] hw/virtio: don't mark virtio-crypto as secure Daniel P. Berrangé
2026-12-04 19:31 ` [PULL for-11.2 0/4] Misc fixes patches Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axLgA9ldIso4Bj3V@redhat.com \
    --to=eblake@redhat.com \
    --cc=berrange@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.