From: Alexandra Winter <wintera@linux.ibm.com>
To: Bryam Vargas <hexlabsecurity@proton.me>
Cc: Thorsten Winkler <twinkler@linux.ibm.com>,
Hidayath Khan <hidayath@linux.ibm.com>,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Paolo Abeni <pabeni@redhat.com>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
linux-s390@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] net/iucv: fix use-after-free of a severed iucv_path
Date: Fri, 24 Jul 2026 12:19:05 +0200 [thread overview]
Message-ID: <7a35b2b9-b87c-4e70-85bf-6ef0320ed49a@linux.ibm.com> (raw)
In-Reply-To: <20260724093301.9627-1-hexlabsecurity@proton.me>
On 24.07.26 11:33, Bryam Vargas wrote:
> Alexandra,
>
>> After iucv_sever_path it should not be possible to call
>> iucv_process_message_q() anymore.
> For the close path, yes -- iucv_sock_close() ends at IUCV_CLOSED/SOCK_ZAPPED
> and recvmsg() is out, so message_q just leaks. The peer-sever path is
> different: iucv_callback_connrej() severs and then sets IUCV_DISCONN, leaving
> the socket open. recvmsg()'s early return needs message_q.list empty; with a
> saved entry it falls through, and if a datagram is still on sk_receive_queue it
> reaches iucv_process_message_q() and hands the freed path to message_receive()
> -- pathid is the read.
>
Thank you very much for the explanation. I overlooked that one. I think this
was a design bug in f0703c80e515 ("[AF_IUCV]: postpone receival of iucv-packets").
It doesn't make sense to check the message_q if IUCV_DISCONN.
I'm taking notes for future cleanups.
[...]
>
> I'll fold the reachability point into the receive-path locking rework and send
> that RFC to netdev and linux-s390, as you asked.
>
Looking forward to that, thank you.
> Thanks,
> Bryam
prev parent reply other threads:[~2026-07-24 10:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-07 7:00 [PATCH net] net/iucv: fix use-after-free of a severed iucv_path Bryam Vargas via B4 Relay
2026-07-21 7:30 ` patchwork-bot+netdevbpf
2026-07-21 11:37 ` Alexandra Winter
2026-07-24 9:33 ` Bryam Vargas
2026-07-24 10:19 ` Alexandra Winter [this message]
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=7a35b2b9-b87c-4e70-85bf-6ef0320ed49a@linux.ibm.com \
--to=wintera@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=hexlabsecurity@proton.me \
--cc=hidayath@linux.ibm.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=twinkler@linux.ibm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox