KernelScan.io

HIGH Introduced in 3.15

rsi KeyRemoval OOB

CVE-2026-98407

CVSS 7.8 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

01

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.

02

Engine v0.9.0

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.

Affecteddrivers/net/wireless/rsi/rsi_91x_mgmt.c (rsi wifi driver)

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.

03

BranchIntroducedFixed inPatch commit
5.103.155.10.271b79e2f6585c0
5.153.155.15.222c67fb3b875a8
6.13.156.1.18962d40db89180
6.123.156.12.112ac599cf8edf8
6.183.156.18.54f4f2852b664c
6.63.156.6.15800bea3589255
7.23.157.2.88dab6ee020b2
mainline3.157.3e6c5ed7a98d7
cip/5.103.155.10.271-cip78b79e2f6585c0
cip/5.10-rt3.155.10.272-cip79-rt35b79e2f6585c0
cip/6.13.156.1.189-cip6162d40db89180
cip/6.1-rt3.156.1.189-cip61-rt3262d40db89180
cip/6.123.156.12.112-cip33ac599cf8edf8

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip115)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)