From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 50D7031F991 for ; Mon, 8 Jun 2026 15:47:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780933648; cv=none; b=KGW+VEc5P8gUJX8Zo2RJhO0xRk/7rxjV7DjGAuzJ+SdD1FtGLPPadoFTF47PmRzweJRUfJ8ClnFDiOmoMBCIR0sWlqDDG5BPkIHlQlIPoW6uJilRjFOcivx9dglwLlv94ZxwrszR1XSdHmdA9BAzMit6QzcT4j2PAtOv/WqwS3k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780933648; c=relaxed/simple; bh=gXnJg0dMW88lisNz2WgbXe9jBh0JCgUC2mZ0iz1UIvQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S5MdqFRjlcsFT7w9r50gxBEybTGpwkk5o/WE7YrR6R+X7stCki0AT9W6isud+T/KUiQylZbkJATte6umzlsiHIFmvCg2mEBiuy6IcFE/tuDiwv6qXBKT/7fcERJsiWR/orFGc0JMyHkN/Z7dX0eOgrVzgGavs7SBOyfWJ84YSDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jE46jTJZ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jE46jTJZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 473641F00893; Mon, 8 Jun 2026 15:47:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780933646; bh=oY9eGWd/3YnWenZ/eidRRVIFk3Ija+J8or5lQmKwtNI=; h=From:To:Cc:Subject:Date:Reply-To; b=jE46jTJZ0ZBPKZQYM9xyjvRQkmBV5sFzVmIFWuZir84zHGiCOTqDR0i4iJnFR+FQl TiTfVNMdxYuq4M/J5WKVOqMrZOpLGHQQ/D92Zk3HK1/lH94iZjpKkA5vTikzAZKyvj OVASh5PAyzXTTaqixkF6iyMJQNxYRvzfd9bXgMdk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46305: staging: rtl8723bs: os_dep: avoid NULL pointer dereference in rtw_cbuf_alloc Date: Mon, 8 Jun 2026 17:46:12 +0200 Message-ID: <2026060800-CVE-2026-46305-d3f2@gregkh> X-Mailer: git-send-email 2.54.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=2069; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7n1kRcIx+mb76XUWMFCTHI3AO25+JQHC/9srRADZK8U=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlqj3c4C4SubW2dNEmFg/+uc8G/uU1pUr3Mv0V9nRp5t jjVLZLoiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlk72BYsK/RODfff/KzKy8P lp+5q9zEKXtKnWFB49OLkkw+YZqyDG4uK72bm/++zdkAAA== 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: staging: rtl8723bs: os_dep: avoid NULL pointer dereference in rtw_cbuf_alloc The return value of kzalloc_flex() is used without ensuring that the allocation succeeded, and the pointer is dereferenced unconditionally. Guard the access to the allocated structure to avoid a potential NULL pointer dereference if the allocation fails. The Linux kernel CVE team has assigned CVE-2026-46305 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit 980cd426a25747daf8ed25e2a1904b2d26ffbb3d and fixed in 7.0.7 with commit 0a5f411becfb7c57aa89827213d31ef23a03d75a Issue introduced in 7.0 with commit 980cd426a25747daf8ed25e2a1904b2d26ffbb3d and fixed in 7.1-rc3 with commit bc851db06045a40c18233dd76ef0562d7f8bb6db 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-46305 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/staging/rtl8723bs/os_dep/osdep_service.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/0a5f411becfb7c57aa89827213d31ef23a03d75a https://git.kernel.org/stable/c/bc851db06045a40c18233dd76ef0562d7f8bb6db