# CVE-2026-98160: staging: rtl8723bs: fix mismatched free of HalData in rtw\_sdio\_if1\_init()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-763
- **Published:** 2026-09-25T13:06:50.521Z
- **Modified:** 2026-10-19T10:18:16.280Z

## Who should check

- Anyone running Linux \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< ff6d1ba247b5c62bdb678f1069abc86ad88a1402; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< d6158333d630a1b21d8914feaf77a6f5deb185d9; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 6c017ab2b0e1b60b5be94636c94720347213d78b; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 4520d673d49dabfd42c008a33889251025f7d6d5; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 423574feaed192063ef0cd0813fb85425f39e539; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 737c928ff5092d7e55128a232c231248fc993777; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 911190f0b9511c3c81f2f2484414c1ae26f636b3; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 264676418b726baca7be49171e306b6aa05cceb0
- Anyone running Linux 4.12

## 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 and fixed versions

- Linux: \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< ff6d1ba247b5c62bdb678f1069abc86ad88a1402; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< d6158333d630a1b21d8914feaf77a6f5deb185d9; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 6c017ab2b0e1b60b5be94636c94720347213d78b; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 4520d673d49dabfd42c008a33889251025f7d6d5; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 423574feaed192063ef0cd0813fb85425f39e539; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 737c928ff5092d7e55128a232c231248fc993777; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 911190f0b9511c3c81f2f2484414c1ae26f636b3; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 264676418b726baca7be49171e306b6aa05cceb0 (cvelist)
- Linux: 4.12 (cvelist)

## Mitigation

- Upgrade Linux to 264676418b726baca7be49171e306b6aa05cceb0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98160. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98160.md
Affected: Linux >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < ff6d1ba247b5c62bdb678f1069abc86ad88a1402; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < d6158333d630a1b21d8914feaf77a6f5deb185d9; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 6c017ab2b0e1b60b5be94636c94720347213d78b; >= 554c0a3abf216c991c5ebdd…
Fixed in: Linux 6c017ab2b0e1b60b5be94636c94720347213d78b, Linux 4520d673d49dabfd42c008a33889251025f7d6d5, Linux 423574feaed192063ef0cd0813fb85425f39e539, Linux 737c928ff5092d7e55128a232c231248fc993777, Linux 911190f0b9511c3c81f2f2484414c1ae26f636b3, Linux 264676418b726baca7be49171e306b6aa05cceb0

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98160 being exploited?

There is no confirmed exploitation: CVE-2026-98160 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98160?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-98160?

Linux \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< ff6d1ba247b5c62bdb678f1069abc86ad88a1402; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< d6158333d630a1b21d8914feaf77a6f5deb185d9; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 6c017ab2b0e1b60b5be94636c94720347213d78b; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 4520d673d49dabfd42c008a33889251025f7d6d5; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 423574feaed192063ef0cd0813fb85425f39e539; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 737c928ff5092d7e55128a232c231248fc993777; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 911190f0b9511c3c81f2f2484414c1ae26f636b3; \>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, \< 264676418b726baca7be49171e306b6aa05cceb0; Linux 4.12.

### Is there a fix for CVE-2026-98160?

Yes. Fixed in Linux 6c017ab2b0e1b60b5be94636c94720347213d78b, Linux 4520d673d49dabfd42c008a33889251025f7d6d5, Linux 423574feaed192063ef0cd0813fb85425f39e539, Linux 737c928ff5092d7e55128a232c231248fc993777, Linux 911190f0b9511c3c81f2f2484414c1ae26f636b3, Linux 264676418b726baca7be49171e306b6aa05cceb0. Upgrade Linux to 264676418b726baca7be49171e306b6aa05cceb0 or later.

### How do I check if I'm affected by CVE-2026-98160?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98160>

HTML: <https://flawdb.com/CVE-2026-98160> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98160>
