From: syzbot <syzbot+b2cfdac9ae5278d4b621@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [syzbot] Fix use-after-free in udmabuf_create
Date: Sun, 02 Jun 2024 22:42:44 -0700 [thread overview]
Message-ID: <0000000000006e98250619f5cd99@google.com> (raw)
In-Reply-To: <000000000000a82e6e0619e9c192@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: Fix use-after-free in udmabuf_create
Author: nightu.pwn@gmail.com
please test file uaf in udmabuf_create
#syz test
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
0e1980c40b6e
--- a/drivers/dma-buf/udmabuf.c
+++ b/drivers/dma-buf/udmabuf.c
@@ -382,6 +382,7 @@ static long udmabuf_create(struct miscdevice *device,
kfree(folios);
fput(memfd);
+ memfd = NULL;
}
flags = head->flags & UDMABUF_FLAGS_CLOEXEC ? O_CLOEXEC : 0;
next prev parent reply other threads:[~2024-06-03 5:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-02 15:20 [syzbot] [squashfs?] VFS: Close: file count is zero (use-after-free) syzbot
2024-06-03 5:42 ` syzbot [this message]
2024-06-03 5:51 ` [syzbot] " syzbot
2024-06-03 6:19 ` syzbot
2024-06-13 6:23 ` Kasireddy, Vivek
2024-06-13 7:10 ` syzbot
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=0000000000006e98250619f5cd99@google.com \
--to=syzbot+b2cfdac9ae5278d4b621@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox