Shellfeed logo Shellfeed

CVE-2026-98160 · UNKNOWN

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

EPSS: 0.1% probability of exploitation in the next 30 days (percentile 1.5).

Details

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 packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [554c0a3abf216c991c5ebddcdb2c08689ecd290b – ff6d1ba247b5c62bdb678f1069abc86ad88a1402]
  • Linux Kernel [4.12.0 – 5.10.270] [5.11.0 – 5.15.221] [5.16.0 – 6.1.188] [6.2.0 – 6.6.157] [6.7.0 – 6.12.110] [6.13.0 – 6.18.52] [6.19.0 – 7.2.6]

References