From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp153-170.sina.com.cn (smtp153-170.sina.com.cn [61.135.153.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42E4D3BB44 for ; Sun, 11 Jan 2026 00:23:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=61.135.153.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768091035; cv=none; b=lQ/tSxT/5wycc7mky6AhQP9jcHbRfMaT2O63zeBnxBo+F0KcTvw6AQ3I96gPDtFl93irfTi5iEmx7z4+tB8LXOTh2wkUV5jisz80OtDFmto47vL0lCpufPY+sRsjlFp+1tOjvXeBDVrodSrxTpieG5hdRpcF8yB9kLZv3uGj3eY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768091035; c=relaxed/simple; bh=iNrTBwFGP2+BLim1pVJFJRJm8BPUVs+QxddWkiqWRl4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RejZd0sTCgTpt9vUbGXPvrXWTRGlHH2WiKLskUV7GiNu7lpChx/XLB5AvK08ERVPGybbQKPN+v6uvflkUFWx8zSOLOIHdKlgAat65KFpWXHVQR4VmDE75HscnTHJMl273jHN6bYNTdiYIfnbUGIrTQJ+VaQsnSWDIuyl/i2YyPc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; dkim=pass (1024-bit key) header.d=sina.com header.i=@sina.com header.b=e/1f3mOv; arc=none smtp.client-ip=61.135.153.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sina.com header.i=@sina.com header.b="e/1f3mOv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sina.com; s=201208; t=1768091029; bh=OTL4Pzq6bLcPdTxPyX/CnuxzxrPx91Hi8RM4rzRJAyU=; h=From:Subject:Date:Message-ID; b=e/1f3mOvJ05+V7WouthkAbEG8Z13DyokYxi04F33lf4gGyBY9bGb/OHeBe0nmp0/M rch5pkugtQ2ZcQGIGJcMmJJXCfWLPc94NdA0vZj5FEbdbPqcfC4CAwXYXE2cGGIDC2 IVzw10z263mTSNffvp3I7RN5pvJas5/YXCvrhucg= X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([114.249.58.160]) by sina.com (10.54.253.34) with ESMTP id 6962ED8F00004549; Sun, 11 Jan 2026 08:23:44 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 7212716292029 X-SMAIL-UIID: E11D8109BB854C55A585C7E79895C8DD-20260111-082344-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [media?] KASAN: slab-use-after-free Read in em28xx_release_resources Date: Sun, 11 Jan 2026 08:23:31 +0800 Message-ID: <20260111002333.2152-1-hdanton@sina.com> In-Reply-To: <69608280.050a0220.1c677c.03b0.GAE@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > Date: Thu, 08 Jan 2026 20:22:24 -0800 > syzbot has found a reproducer for the following issue on: > > HEAD commit: 79b95d74470d Merge tag 'hid-for-linus-2026010801' of git:/.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=112b219a580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=a94030c847137a18 > dashboard link: https://syzkaller.appspot.com/bug?extid=16062f26c6480975e5ed > compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=152b219a580000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13e6e922580000 #syz test --- x/drivers/media/usb/em28xx/em28xx-video.c +++ y/drivers/media/usb/em28xx/em28xx-video.c @@ -2150,6 +2150,10 @@ static int em28xx_v4l2_open(struct file if (mutex_lock_interruptible(&dev->lock)) return -ERESTARTSYS; + if (dev->v4l2 == NULL) { + mutex_unlock(&dev->lock); + return -EINVAL; + } ret = v4l2_fh_open(filp); if (ret) { dev_err(&dev->intf->dev, @@ -2898,7 +2902,6 @@ unregister_dev: v4l2_device_unregister(&v4l2->v4l2_dev); err: dev->v4l2 = NULL; - kref_put(&v4l2->ref, em28xx_free_v4l2); mutex_unlock(&dev->lock); return ret; } --