Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 19A0B23C8AE for ; Fri, 24 Apr 2026 14:45:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041941; cv=none; b=fwv3a2GEnHQ6y0vPEmQ2Vpmn5adNKOgS+lGVzixjVlO8WV8sR2F4BNYu2zY/HC8wnO83m/OKxhSCkMpQzw37Q5YLllFVYUSwnBXCqzRfMI1MMfvGx8i1gTeaIXOn/K8jo1pufM9edflWy8TM+oseSf07WJJj2wP7+pV8m4rP4mY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041941; c=relaxed/simple; bh=a4ELrqAiRioo4/eZztX2a/hfqyrbL7bv1zW++m1tt2g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=T8tZPpM5VmRtE3pK8a1z//RizO9VReh3WzsvZ6jwA62LMuCGXxFC2n5VEECD2EtpU/vC4d1tPSruE+/xEbP4oXN1LENgOYDOCcbOlZ/0cSGpjAgiEk3DWy4L7KaJgdRH5jRs/5g0CYlNTI2Df8ZQv4tnDTZrQPTjPc3KPpYjMPs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AJxYOr95; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="AJxYOr95" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59CC2C19425; Fri, 24 Apr 2026 14:45:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041940; bh=a4ELrqAiRioo4/eZztX2a/hfqyrbL7bv1zW++m1tt2g=; h=From:To:Cc:Subject:Date:Reply-To:From; b=AJxYOr956ptQLeA/jex521lfUfAOwklyIfhjxkegDcDjAxmQeYOjgsAv08c4SkGDx hh5ZssBUN1XEqBQrOuCv54MS43SuzVxdgnacEg565uhZt7F6ZuF7FZJyA62FoIhWT3 Lx24Maf5pyeHe5xR6OKJig4K3kKeyTzmkrGt7HS4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31599: media: vidtv: fix NULL pointer dereference in vidtv_channel_pmt_match_sections Date: Fri, 24 Apr 2026 16:43:35 +0200 Message-ID: <2026042418-CVE-2026-31599-b2c6@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3258; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CE/FL7H6F0agaME0t6X69hNmUV6n0qilquB7k5vKYGs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvG9uCey697JwhFq5/OCCtwu/yxrNyc6wL99q5L3A6n jOT68GsjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIIg6G+ZGBj7JqMxp//Xwk VBPwJmN51jze7wxzeOcerjlS/pNHPU3BL/vzE/F/Bw4wAQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: media: vidtv: fix NULL pointer dereference in vidtv_channel_pmt_match_sections syzbot reported a general protection fault in vidtv_psi_desc_assign [1]. vidtv_psi_pmt_stream_init() can return NULL on memory allocation failure, but vidtv_channel_pmt_match_sections() does not check for this. When tail is NULL, the subsequent call to vidtv_psi_desc_assign(&tail->descriptor, desc) dereferences a NULL pointer offset, causing a general protection fault. Add a NULL check after vidtv_psi_pmt_stream_init(). On failure, clean up the already-allocated stream chain and return. [1] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] RIP: 0010:vidtv_psi_desc_assign+0x24/0x90 drivers/media/test-drivers/vidtv/vidtv_psi.c:629 Call Trace: vidtv_channel_pmt_match_sections drivers/media/test-drivers/vidtv/vidtv_channel.c:349 [inline] vidtv_channel_si_init+0x1445/0x1a50 drivers/media/test-drivers/vidtv/vidtv_channel.c:479 vidtv_mux_init+0x526/0xbe0 drivers/media/test-drivers/vidtv/vidtv_mux.c:519 vidtv_start_streaming drivers/media/test-drivers/vidtv/vidtv_bridge.c:194 [inline] vidtv_start_feed+0x33e/0x4d0 drivers/media/test-drivers/vidtv/vidtv_bridge.c:239 The Linux kernel CVE team has assigned CVE-2026-31599 to this issue. Affected and fixed versions =========================== Fixed in 6.12.83 with commit e589de36da106ef739ba98f66f5a5c2023370706 Fixed in 6.18.24 with commit 2dff11fb5098ae453651f8f77e94ad499c078022 Fixed in 6.19.14 with commit b832cfd516b8504e95884622cee60bf9a39b7945 Fixed in 7.0.1 with commit 07c1e474cf9acf777f09d14a8f8dfcef5b84e46f Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-31599 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/media/test-drivers/vidtv/vidtv_channel.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/e589de36da106ef739ba98f66f5a5c2023370706 https://git.kernel.org/stable/c/2dff11fb5098ae453651f8f77e94ad499c078022 https://git.kernel.org/stable/c/b832cfd516b8504e95884622cee60bf9a39b7945 https://git.kernel.org/stable/c/07c1e474cf9acf777f09d14a8f8dfcef5b84e46f https://git.kernel.org/stable/c/f8e1fc918a9fe67103bcda01d20d745f264d00a7