CVE-2026-98160

staging: rtl8723bs: fix mismatched free of HalData in rtw_sdio_if1_init()

MEDIUM
5.5
CVSS Score
Published: September 25, 2026 at 01:06 PM UTC
Updated: October 19, 2026 at 10:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.1%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.12 ≤ v < 5.10.2705.11 ≤ v < 5.15.2215.16 ≤ v < 6.1.1886.13 ≤ v < 6.18.526.19 ≤ v < 7.2.66.2 ≤ v < 6.6.1576.7 ≤ v < 6.12.1104.12554c0a3abf216c991c5ebddcdb2c08689ecd290b
Vendor states this is fixed in 264676418b726baca7be49171e306b6aa05cceb0 (fixed)
Vendor states this is fixed in 423574feaed192063ef0cd0813fb85425f39e539 (fixed)
Vendor states this is fixed in 4520d673d49dabfd42c008a33889251025f7d6d5 (fixed)
Vendor states this is fixed in 6c017ab2b0e1b60b5be94636c94720347213d78b (fixed)
Vendor states this is fixed in 737c928ff5092d7e55128a232c231248fc993777 (fixed)
Vendor states this is fixed in 911190f0b9511c3c81f2f2484414c1ae26f636b3 (fixed)
Vendor states this is fixed in d6158333d630a1b21d8914feaf77a6f5deb185d9 (fixed)
Vendor states this is fixed in ff6d1ba247b5c62bdb678f1069abc86ad88a1402 (fixed)
Vendor states this is fixed in 4.12 (unaffected)
Vendor states this is fixed in 5.10.270 (unaffected)
Vendor states this is fixed in 5.15.221 (unaffected)
Vendor states this is fixed in 6.1.188 (unaffected)
Vendor states this is fixed in 6.12.110 (unaffected)
Vendor states this is fixed in 6.18.52 (unaffected)
Vendor states this is fixed in 6.6.157 (unaffected)
Vendor states this is fixed in 7.2.6 (unaffected)
Vendor states this is fixed in 7.3 (unaffected)
Vendor states this is fixed in 7.3-rc1 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-763

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card