HIGH Introduced in 3.15
rsi KeyRemoval OOB
CVE-2026-98407
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: wifi: rsi: fix heap OOB write on key removal When a key is removed (data == NULL), rsi_hal_load_key() runs: memset(&set_key[FRAME_DESC_SZ], 0, frame_len - FRAME_DESC_SZ); set_key is a struct rsi_set_key *, so the subscript is scaled by sizeof(struct rsi_set_key) (160 bytes): &set_key[FRAME_DESC_SZ] is skb->data + 2560, and the memset writes 144 zero bytes starting 2.4KB past the end of the 160-byte skb data buffer, corrupting unrelated heap objects. The intended byte offset would have been (u8 *)set_key + FRAME_DESC_SZ. The write fires on every DISABLE_KEY callback, so plain disconnects, roams and interface teardowns trigger it on real networks. The memset is redundant: the whole buffer is zeroed right after allocation, so the frame sent to the device is byte-identical without it. Drop the else branch; normal operation is unaffected. Discovered by Atuin - Automated Vulnerability Discovery Engine.
02KernelScan AI Analysis
Risk summary
A heap out-of-bounds write in the RSI RS9113 wireless driver triggers on every WiFi disconnect, roam, or interface teardown. Any local user who can cause a WiFi key removal (normal network operation) can corrupt kernel heap memory, potentially leading to privilege escalation or kernel panic.
Vulnerability analysis
When a WiFi encryption key is removed, the driver's rsi_hal_load_key() function incorrectly calculates a memory offset using pointer arithmetic on a structure pointer instead of a byte pointer. This causes a memset to write 144 zero bytes roughly 2.4KB past the end of a 160-byte socket buffer, corrupting adjacent heap objects. The bug fires automatically on every DISABLE_KEY callback — plain disconnects, roams, and interface teardowns all trigger it. The fix removes the redundant memset entirely because the buffer is already zeroed at allocation time, eliminating the out-of-bounds write without affecting normal operation. Any local user with access to WiFi interfaces (including inside containers or user namespaces) can trigger this by simply disconnecting from a network or roaming between access points.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 3.15 | 5.10.271 | b79e2f6585c0 |
| 5.15 | 3.15 | 5.15.222 | c67fb3b875a8 |
| 6.1 | 3.15 | 6.1.189 | 62d40db89180 |
| 6.12 | 3.15 | 6.12.112 | ac599cf8edf8 |
| 6.18 | 3.15 | 6.18.54 | f4f2852b664c |
| 6.6 | 3.15 | 6.6.158 | 00bea3589255 |
| 7.2 | 3.15 | 7.2.8 | 8dab6ee020b2 |
| mainline | 3.15 | 7.3 | e6c5ed7a98d7 |
| cip/5.10 | 3.15 | 5.10.271-cip78 | b79e2f6585c0 |
| cip/5.10-rt | 3.15 | 5.10.272-cip79-rt35 | b79e2f6585c0 |
| cip/6.1 | 3.15 | 6.1.189-cip61 | 62d40db89180 |
| cip/6.1-rt | 3.15 | 6.1.189-cip61-rt32 | 62d40db89180 |
| cip/6.12 | 3.15 | 6.12.112-cip33 | ac599cf8edf8 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |