Re: [PATCH] nbd: fix uaf in nbd_genl_connect() error path
- To: josef@toxicpanda.com, xiubli@redhat.com, prasanna.kalever@redhat.com, ming.lei@redhat.com, Zheng Qixing <zhengqixing@huaweicloud.com>
- Cc: linux-block@vger.kernel.org, nbd@other.debian.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com, yangerkun@huawei.com, zhengqixing@huawei.com
- Subject: Re: [PATCH] nbd: fix uaf in nbd_genl_connect() error path
- From: Jens Axboe <axboe@kernel.dk>
- Date: Mon, 07 Jul 2025 11:58:17 -0600
- Message-id: <[🔎] 175191109743.897627.1231024341560474795.b4-ty@kernel.dk>
- In-reply-to: <20250612132405.364904-1-zhengqixing@huaweicloud.com>
- References: <20250612132405.364904-1-zhengqixing@huaweicloud.com>
On Thu, 12 Jun 2025 21:24:05 +0800, Zheng Qixing wrote:
> There is a use-after-free issue in nbd:
>
> block nbd6: Receive control failed (result -104)
> block nbd6: shutting down sockets
> ==================================================================
> BUG: KASAN: slab-use-after-free in recv_work+0x694/0xa80 drivers/block/nbd.c:1022
> Write of size 4 at addr ffff8880295de478 by task kworker/u33:0/67
>
> [...]
Applied, thanks!
[1/1] nbd: fix uaf in nbd_genl_connect() error path
commit: aa9552438ebf015fc5f9f890dbfe39f0c53cf37e
Best regards,
--
Jens Axboe
Reply to: