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 64BF249A3C9 for ; Fri, 25 Sep 2026 13:07:12 +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=1790341633; cv=none; b=VwhNh1TLqhGOJz3Op+O1wo2jK6kPnJZyBV8LhSUg+lQqP0YqB/3dHa90noLlWhmCPY0CnlXTnMGn8Vz1ylRhXMV/NPNlw4iyA9CLYgDADP2wY3wDghvkkX89WYmvEEWfN0rKkfW8WijkSxEiHZVbLF9ZE8Dc84lUxJlP/ux2cs0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790341633; c=relaxed/simple; bh=1XUm4oTaRnDlXARZSSvr/uPVyCvaKOYSgeMo5+P9pII=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gve2v/iLtTD9LD5NdSwWT6eJgl89k9l9uwT3Y6PE6PncownBplvaAXHHYYkogkq8hx+RpifGL2LV3mMEOfxdR59iS1eUJ9MoM8q27Taxs/6OA5jGAd5qaT4eloIbd5/2dFC5qF3i3zPxlfDL/mzryKvVhNuSbk+kxKCbnjr2vT8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BMSwV4Ku; 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="BMSwV4Ku" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A08941F00893; Fri, 25 Sep 2026 13:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790341632; bh=joo7IyuzNegqeQFYtz/SX1dlemKgH2U95nZMWMELohA=; h=From:To:Cc:Subject:Date:Reply-To; b=BMSwV4Kux1ggzLuFeAVPEopDRtI2dTYqKdH2V8YRmV6Lpxy7ezvSoX3HVJe6zGJwv ihA8lO+OlKu//SO3V6KgK518j7ino+6XWQhNnbn6f9oYNf5dvlrZe62G3TC59sWUPJ Ij3o4pnJym4g3WZzsIG3TIrTO673LjkpBJqR7ekg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98160: staging: rtl8723bs: fix mismatched free of HalData in rtw_sdio_if1_init() Date: Fri, 25 Sep 2026 15:07:05 +0200 Message-ID: <2026092558-CVE-2026-98160-d5c6@gregkh> X-Mailer: git-send-email 2.55.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=3845; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U1eW7Mbaoj7gnrIFd6pkoPwbpTLzSe41k9rI9f1KyWc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbCj+J+c+43xQeUPij/Ktibtw0rYlKC0Q3pPnUTdQ87 j5T6ZJRRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE2JFhwb4v97f2N3ysVljR PGHLFX0GXwG7JIb5QZJzp3Bm9fE/6SpZnXP9jnPAg/sPAQ== 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: fix mismatched free of HalData in rtw_sdio_if1_init() padapter->HalData is allocated via vzalloc(), but incorrectly freed using kfree() in the rtw_sdio_if1_init() error path. Using kfree() to release this vmalloc-backed buffer can lead to memory corruption. Use rtw_hal_data_deinit() to pair the free correctly and free HalData with vfree(). The bug was first flagged by an experimental static analysis tool we are developing for kernel memory-management bugs. Manual inspection confirms that the issue is still present in current mainline. An x86_64 allyesconfig build showed no new warnings. As we do not have suitable RTL8723BS SDIO hardware to test with, no runtime testing was able to be performed. The Linux kernel CVE team has assigned CVE-2026-98160 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 5.10.270 with commit ff6d1ba247b5c62bdb678f1069abc86ad88a1402 Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 5.15.221 with commit d6158333d630a1b21d8914feaf77a6f5deb185d9 Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 6.1.188 with commit 6c017ab2b0e1b60b5be94636c94720347213d78b Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 6.6.157 with commit 4520d673d49dabfd42c008a33889251025f7d6d5 Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 6.12.110 with commit 423574feaed192063ef0cd0813fb85425f39e539 Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 6.18.52 with commit 737c928ff5092d7e55128a232c231248fc993777 Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 7.2.6 with commit 911190f0b9511c3c81f2f2484414c1ae26f636b3 Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 7.3-rc1 with commit 264676418b726baca7be49171e306b6aa05cceb0 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-98160 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/sdio_intf.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/ff6d1ba247b5c62bdb678f1069abc86ad88a1402 https://git.kernel.org/stable/c/d6158333d630a1b21d8914feaf77a6f5deb185d9 https://git.kernel.org/stable/c/6c017ab2b0e1b60b5be94636c94720347213d78b https://git.kernel.org/stable/c/4520d673d49dabfd42c008a33889251025f7d6d5 https://git.kernel.org/stable/c/423574feaed192063ef0cd0813fb85425f39e539 https://git.kernel.org/stable/c/737c928ff5092d7e55128a232c231248fc993777 https://git.kernel.org/stable/c/911190f0b9511c3c81f2f2484414c1ae26f636b3 https://git.kernel.org/stable/c/264676418b726baca7be49171e306b6aa05cceb0