CVE-2026-98160·Kernel vulnerability
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.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 7.2.6
- Published
- 2026-09-25
Affected versions
From: 6.19
Until: 7.2.6
Fixed in: 7.2.6
How to fix this CVE
Update your Linux kernel to version 7.2.6 or later to patch a critical memory management bug in the RTL8723BS SDIO driver. The vulnerability stems from incorrect deallocation of vmalloc-allocated memory using kfree() instead of vfree(), which can cause kernel memory corruption. Apply the latest stable kernel update and reboot your system to resolve this issue.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r | grep -E '^(6\.(19|[2-9]|[0-9]{2})|7\.[0-2]\.[0-5])'
- Verify RTL8723BS SDIO driver is loaded: lsmod | grep rtl8723bs
- Check kernel logs for memory corruption warnings: dmesg | grep -iE '(memory|corruption|vmalloc|HalData|rtl8723bs)'
- Confirm patch applied: grep -r 'rtw_hal_data_deinit' /lib/modules/$(uname -r)/kernel/drivers/staging/rtl8723bs/ 2>/dev/null && echo 'Patched' || echo 'Vulnerable'
FAQ
What is CVE-2026-98160?
This vulnerability is a memory safety bug in the Linux kernel's RTL8723BS SDIO wireless driver where memory allocated via vmalloc() is incorrectly freed with kfree(), leading to potential kernel memory corruption and system instability.
Is CVE-2026-98160 being actively exploited?
No, this vulnerability is not currently being actively exploited in the wild according to CISA's Known Exploited Vulnerabilities (KEV) catalog, and no public exploits are available.
What versions of Kernel are affected by CVE-2026-98160?
Kernel versions 6.19 through 7.2.5 are vulnerable. The fix is available in version 7.2.6 and later.
How do I check if my server is vulnerable to CVE-2026-98160?
Run 'uname -r' and verify your kernel version is at least 7.2.6, then check if the RTL8723BS driver is loaded with 'lsmod | grep rtl8723bs'. If you're on an older version and have the driver active, you are vulnerable.
Does Defensia detect CVE-2026-98160?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-98160 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/264676418b726baca7be49171e306b6aa05cceb0
- https://git.kernel.org/stable/c/423574feaed192063ef0cd0813fb85425f39e539
- https://git.kernel.org/stable/c/4520d673d49dabfd42c008a33889251025f7d6d5
- https://git.kernel.org/stable/c/6c017ab2b0e1b60b5be94636c94720347213d78b
- https://git.kernel.org/stable/c/737c928ff5092d7e55128a232c231248fc993777
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98160. Free for 1 server.
Get started free