Security fixes apply to the latest main branch and current 0.3.x releases of MAD68 HE Studio (mad68-studio).
| Version | Supported |
|---|---|
main / 0.3.x |
Yes |
< 0.3.0 |
No |
Please do not open a public GitHub issue for security vulnerabilities.
Instead, report vulnerabilities privately through GitHub Security Advisories:
Please include as much detail as possible to help reproduce and assess the issue:
- Affected version or commit SHA and operating system
- Component involved (e.g., Linux
udev/HID layer, protocol framing, profile parser, or UI) - Step-by-step reproduction instructions or a minimal proof of concept
- Potential impact
You can expect an initial acknowledgment as soon as the report is reviewed, followed by coordination on a fix and advisory disclosure once patched.
MAD68 HE Studio runs entirely in user space and does not install kernel drivers:
- Linux: Reads
/sys/class/hidrawand communicates over/dev/hidraw*usinglibcI/O, targeting devices with USBVID 0x373Bon the vendor Raw HID interface (USAGE_PAGE 0xFF60,USAGE 0x61). - Windows & macOS: Communicates via
hidapiin user space (windows-nativeon Windows, shared non-exclusive IOKithidapion macOS).
The GUI application is designed to run as an unprivileged user—never run the configurator itself as root.
Non-root access on Linux requires udev/68-mad68he.rules to be installed at /etc/udev/rules.d/68-mad68he.rules:
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="373b", MODE="0660", TAG+="uaccess"
SUBSYSTEM=="usb", ATTRS{idVendor}=="373b", MODE="0660", TAG+="uaccess"
- Scope:
TAG+="uaccess"grants read/write access to matchingVID 0x373Bhidrawandusbdevice nodes only to the active local desktop session (plusroot/ matching device group via0660). Because anyhidrawinterface on a matchingVID 0x373Bdevice inherits that access, any local process running under the active user session can also access those vendor device nodes while the keyboard is connected. - Installation: You can inspect and run
sudo ./udev/install_udev.shdirectly, or trigger udev Kuralını Kur (pkexec) inside the app. The in-app helper (install_udev_rule()insrc/ui/tabs.rs) stages the compiled-in68-mad68he.rulesandinstall_udev.shinside a freshly created0700user-owned temporary directory with0700script permissions, executespkexec /bin/bash <script>, and removes the temporary directory immediately afterward.
- Bootloader & protocol guards: Devices detected on a bootloader PID are rejected with an error, and configuration writes are gated when the firmware protocol version does not match the known protocol (
v9). - Flash brightness cap: Persistent flash writes clamp LED brightness to
BRIGHTNESS_MAX(210). Experimental overdrive values (211..=255hardware) are applied in RAM only, read back from firmware, and guarded on USB disconnect. - Profile path sanitization: Local JSON profile names are sanitized via
sanitize_name()(src/profiles.rs) before constructing paths inside the user's profiles directory (~/.config/mad68-linux/profiles/on Linux) to prevent path traversal and invalid filenames.