Ubuntu fixes five OpenRazer kernel driver flaws, including a 2025 out-of-bounds read
OpenRazer's DKMS kernel modules mishandled device- and user-supplied lighting frame data, allowing kernel stack leaks, buffer overflows and an out-of-bounds read that could be triggered locally or via a malicious USB device.
Summary
Ubuntu published USN-9283-1 covering five CVEs in OpenRazer, the out-of-tree driver and daemon set that provides Linux support for Razer keyboards, mice and accessories. The flaws stem from missing validation of data sizes: the driver trusted the length of data returned by devices, and the keyboard, mouse and accessory drivers trusted the length of custom lighting frame data. Consequences range from leaking kernel stack addresses to buffer overflows that a local attacker could use for denial of service or privilege escalation, plus an out-of-bounds read of kernel memory that was then sent back to the device.
The 2022-era issues (CVE-2022-23467, CVE-2022-29021, CVE-2022-29022, CVE-2022-29023) are scoped to Ubuntu 20.04 LTS and 22.04 LTS, while CVE-2025-32776 applies more broadly. Fixed openrazer-driver-dkms builds are offered for 24.04 LTS, 22.04 LTS and 20.04 LTS, but all three are delivered through Ubuntu Pro's ESM Apps channel, with the notice stating a community fix might appear publicly later. Because the package is a DKMS module, users must reboot after updating for the rebuilt kernel module to take effect.
What the OpenRazer fixes change in the kernel modules
- Device response validation (CVE-2022-23467): the driver did not check the size of data returned by Razer USB devices, so a crafted USB device could leak sensitive kernel information such as kernel stack addresses; only Ubuntu 20.04 LTS and 22.04 LTS were affected.
- Lighting frame buffer overflow (CVE-2022-29021, CVE-2022-29022, CVE-2022-29023): the keyboard, mouse and accessory drivers failed to validate the length of custom lighting frame data, enabling a buffer overflow that a local attacker could turn into a denial of service or privilege escalation on 20.04 LTS and 22.04 LTS.
- Out-of-bounds kernel read (CVE-2025-32776): custom lighting frame sizes were again insufficiently validated, producing an out-of-bounds read of kernel memory that was subsequently transmitted to the device, allowing denial of service or information disclosure.
- Packaging and delivery: fixes ship as openrazer-driver-dkms 3.7.0+dfsg-1ubuntu0.3+esm1 (24.04), 3.2.0+dfsg-3ubuntu0.1~esm1 (22.04) and 2.5.0+dfsg-1ubuntu2+esm1 (20.04), all via Ubuntu Pro ESM Apps, and require a reboot so DKMS rebuilds and loads the patched module.
Why it matters
OpenRazer is the de facto path to RGB control and macro support for Razer peripherals on Linux, and it runs as a privileged kernel module, so validation bugs there carry real local privilege-escalation weight on desktop and gaming systems. The fact that all three supported Ubuntu releases receive the fix only through Ubuntu Pro's ESM Apps channel means users without a Pro subscription remain exposed until a community build appears, which matters for hobbyist and gaming desktops that rarely enable ESM. It also underscores the maintenance burden of out-of-tree DKMS drivers: patches must be rebuilt per kernel and users must reboot to pick them up.
Original reference: ubuntu.com →