# CVE-2026-98160: staging: rtl8723bs: fix mismatched free of HalData in rtw_sdio_if1_init()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-09-25T13:06:50.521Z
- Modified: 2026-10-19T10:18:16.280Z
- Weaknesses: CWE-763
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before ff6d1ba247b5c62bdb678f1069abc86ad88a1402; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before d6158333d630a1b21d8914feaf77a6f5deb185d9; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 6c017ab2b0e1b60b5be94636c94720347213d78b; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 4520d673d49dabfd42c008a33889251025f7d6d5; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 423574feaed192063ef0cd0813fb85425f39e539; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 737c928ff5092d7e55128a232c231248fc993777; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 911190f0b9511c3c81f2f2484414c1ae26f636b3; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 264676418b726baca7be49171e306b6aa05cceb0; 4.12 (not affected: before 4.12; from 5.10.270 up to 5.10.*; from 5.15.221 up to 5.15.*; from 6.1.188 up to 6.1.*; from 6.6.157 up to 6.6.*; from 6.12.110 up to 6.12.*; from 6.18.52 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)
- linux linux_kernel: from 4.12 before 5.10.270; from 5.11 before 5.15.221; from 5.16 before 6.1.188; from 6.2 before 6.6.157; from 6.7 before 6.12.110; from 6.13 before 6.18.52; from 6.19 before 7.2.6

## References

- <https://git.kernel.org/stable/c/ff6d1ba247b5c62bdb678f1069abc86ad88a1402> (patch)
- <https://git.kernel.org/stable/c/d6158333d630a1b21d8914feaf77a6f5deb185d9> (patch)
- <https://git.kernel.org/stable/c/6c017ab2b0e1b60b5be94636c94720347213d78b> (patch)
- <https://git.kernel.org/stable/c/4520d673d49dabfd42c008a33889251025f7d6d5> (patch)
- <https://git.kernel.org/stable/c/423574feaed192063ef0cd0813fb85425f39e539> (patch)
- <https://git.kernel.org/stable/c/737c928ff5092d7e55128a232c231248fc993777> (patch)
- <https://git.kernel.org/stable/c/911190f0b9511c3c81f2f2484414c1ae26f636b3> (patch)
- <https://git.kernel.org/stable/c/264676418b726baca7be49171e306b6aa05cceb0> (patch)

## Sources

- CVE List: [CVE-2026-98160](https://www.cve.org/CVERecord?id=CVE-2026-98160), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98160](https://nvd.nist.gov/vuln/detail/CVE-2026-98160), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98160 · Whole record: https://cve.day/CVE-2026-98160.json · Rebuilt by cve.day 2026-11-25T22:59:41.097Z
