From nobody Thu Apr 2 15:35:57 2026 Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E914E27CCF0 for ; Wed, 11 Feb 2026 02:22:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.199 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770776578; cv=none; b=V2O4xzGjz6H7+hXIvOM7kwYD8xKh/oNah9VQvBV9t/By0S65plQ/V3iDYBgXBrvfS+B1ZyCt45nNMgEirREifo8COd8vOyrmvZFJblvMBbGQMXbE2oS8ebQk2UwmUWbeo17Cwm7RP7wwDyxN+3PQpZdXxLND//9jnS5d9JgCBfI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770776578; c=relaxed/simple; bh=pXWJThMLU3FTd42/1wD2x/MWbTen8Tr2/WfytL9bxNk=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=Zjin9GTrS8vxn84OdgO05/IWN6FEbh2TsE8daiK86bZ26OMADG5kAELkFePiAfApK+B/Y4Ga+1Ap//a3R6sbK33duflSXjKWaxUiR1TuC5hiQSxQ2/6Xn5Ktb7NwKdOVhKYgWDe00f50TjVCuJkSlG+2E1d4a+c6XmIfcJAP5DE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.167.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-45f16aa81a8so2245918b6e.1 for ; Tue, 10 Feb 2026 18:22:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770776576; x=1771381376; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FkFyjyduQJJf5gAx0Y2Ys0ab7SusDnYloDU3vB0xVHI=; b=SdXRBrRu1GQM2SmVwxwmywV0vxYulpT6FNDKxGJ9mu1uJTy4YNSX3E926t1KO9WjFS +v0wJQRs69MmZq9vzGZlbpujGjlZ8FeZJHE7DsyeNevSYtNKV8PETpR4Hv+pEDlgUzJC rzKcRPcaQPHselSnIGKviSY41AC6Pnui4ybSNSCmYjsoT0pxYR/0AaWBk14+qdTkbdzL SDjqWzMmMVm7uS2CJR4dCJ/emwnKqnXytM8NUKlI4uQusOWKmMYP2fNXlfEizW6ZXHmr B/P8SLyFJhMpVveNENSzaVPBg7WWVKfrE3Z1MsJE4V59fA8Yn4DiXtcOnYD5LPCTO6xw 0YwA== X-Gm-Message-State: AOJu0YynYj2mlv9URI8DPCvjA/6rlV9yHGWgaqx4rUbXnmGkguORWs8x UD4X2CJj9AMHf2U4GOOXaD/d+zUnquadgsIG45SDQI0nL2I4E4LkgbfZ4yszol2Vn2Q5xy3CvB/ IRK+BIOz+8ayVRVow99baKFeuBqbnQzUxVrGcelYgMMMMePk7KNQxdyk8D08= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:174c:b0:661:8bd:6aa1 with SMTP id 006d021491bc7-672e67a5404mr1979309eaf.35.1770776575967; Tue, 10 Feb 2026 18:22:55 -0800 (PST) Date: Tue, 10 Feb 2026 18:22:55 -0800 In-Reply-To: <698b7b22.050a0220.2eeac1.008d.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <698be7ff.050a0220.340abe.0009.GAE@google.com> Subject: Forwarded: [PATCH] media: dvb-core: fix uninit-value in dvb_dmxdev_read_sec From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: [PATCH] media: dvb-core: fix uninit-value in dvb_dmxdev_read_sec Author: kartikey406@gmail.com #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git= master dvb_dmxdev_init() allocates the filter array using vmalloc_array(), which does not zero-initialize memory. The subsequent init loop only sets a few fields (dev, buffer.data, state), leaving other fields like todo, type, and secheader uninitialized. When dvb_demux_read() is called before the filter is fully configured, it reads these uninitialized fields, triggering a KMSAN uninit-value warning. Use vcalloc() instead to zero-initialize the entire allocation. Reported-by: syzbot+bd7c90de4c9f1f8ab660@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=3Dbd7c90de4c9f1f8ab660 Signed-off-by: Deepanshu Kartikey --- drivers/media/dvb-core/dmxdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-core/dmxdev.c b/drivers/media/dvb-core/dmxde= v.c index 8c6f5aafda1d..94010c4e4f89 100644 --- a/drivers/media/dvb-core/dmxdev.c +++ b/drivers/media/dvb-core/dmxdev.c @@ -1414,7 +1414,7 @@ int dvb_dmxdev_init(struct dmxdev *dmxdev, struct dvb= _adapter *dvb_adapter) if (dmxdev->demux->open(dmxdev->demux) < 0) return -EUSERS; =20 - dmxdev->filter =3D vmalloc_array(dmxdev->filternum, + dmxdev->filter =3D vcalloc(dmxdev->filternum, sizeof(struct dmxdev_filter)); if (!dmxdev->filter) return -ENOMEM; --=20 2.43.0