CVE-2021-3612: Linux kernel joydev JSIOCSBTNMAP Out-of-Bounds Write
- Vendors
- NetAppOracle CorporationDebian ProjectFedora ProjectLinuxRed Hat
CVE-2021-3612 is an out-of-bounds memory-access vulnerability in Linux kernel joydev joystick-device ioctl handling. Malformed input to the JSIOCSBTNMAP ioctl can cause incorrect processing in joydev_handle_JSIOCSBTNMAP(). In upstream kernels beginning with Linux v5.12-rc1, following commit 182d679b2298, the condition can produce an out-of-bounds kernel-memory write and panic. Earlier affected kernels exposed an out-of-bounds stack-read condition instead.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A local attacker able to invoke the vulnerable joystick ioctl can crash the kernel, causing a denial of service. The out-of-bounds write in affected newer upstream kernels may also be exploitable for local privilege escalation, with potential compromise of confidentiality and integrity.
Mitigation
If you can’t patch tonight, do this now.
Until patched, prevent untrusted local users from accessing joystick device interfaces, and disable or avoid loading the joydev subsystem where joystick support is not required. Restrict permissions on joystick device nodes and limit local code execution by untrusted users.
Remediation
Patch, then assume compromise.
Install the vendor kernel update containing the joydev fix and reboot into the updated kernel. For affected Red Hat Enterprise Linux 8 Real Time deployments, Red Hat provided the fix through RHSA-2022:1975 and RHSA-2022:1988; RHSA-2022:1975 includes kernel-rt-4.18.0-372.9.1.rt7.166.el8 or later applicable packages.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-3612 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2021-3612 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-3612?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2021-3612.
- Is there a patch for CVE-2021-3612?
- Install the vendor kernel update containing the joydev fix and reboot into the updated kernel. For affected Red Hat Enterprise Linux 8 Real Time deployments, Red Hat provided the fix through RHSA-2022:1975 and RHSA-2022:1988; RHSA-2022:1975 includes kernel-rt-4.18.0-372.9.1.rt7.166.el8 or later applicable packages.
- What products are affected by CVE-2021-3612?
- Linux Kernel, NetApp Cloud Backup, Oracle Corporation Communications Cloud Native Core Binding Support Function, Oracle Corporation Communications Cloud Native Core Network Exposure Function, Oracle Corporation Communications Cloud Native Core Policy, and 12 more.
- How severe is CVE-2021-3612?
- CVE-2021-3612 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.69% (48th percentile) as of Oct 16, 2026.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.