Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-0995: Linux Kernel watch_queue Out-of-Bounds Write Privilege Escalation

Published Mar 25, 2022 · Updated 3 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS5.2%93rd percentile
CISA KEVYesAdded Aug 26, 2026
In the wildActivePer CISA KEV
Vendors
Fedora ProjectNetAppLinux
IdentifiersCVE-2022-0995CWE-787 · Out-of-bounds Write

CVE-2022-0995 is an out-of-bounds memory write vulnerability in the Linux kernel's watch_queue event-notification subsystem. A local unprivileged user can trigger writes outside the intended memory bounds, corrupting kernel state and potentially gaining elevated privileges or causing denial of service. The vulnerability has been exploited in real-world attacks for local privilege escalation.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Successful exploitation can elevate an unprivileged local user to root, compromising host confidentiality and integrity. Corruption of kernel state can also crash the system or otherwise cause denial of service.

Mitigation

If you can’t patch tonight, do this now.

Where immediate patching is not possible, limit local interactive access to affected hosts, minimize execution by untrusted users and workloads, and restrict access to systems that expose vulnerable kernel builds. Monitor for anomalous local privilege-escalation activity and prioritize remediation because the vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog.

Remediation

Patch, then assume compromise.

Apply the Linux distribution or product vendor's kernel security update addressing CVE-2022-0995, incorporating the upstream watch_queue correction. Reboot into the corrected kernel and verify that the running kernel includes the fix. Assess appliances and other products that incorporate the affected kernel subsystem.

Public exploits

Exploits

4 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
cve_2022_0995_watch_queue.rbThis repository contains a single Metasploit module implementing a local privilege escalation exploit for CVE-2022-0995, a heap out-of-bounds write vulnerability in the Linux kernel's watch_queue event notification system. The exploit targets Ubuntu Linux 5.13.0-37-generic (x86_64) and requires a local session on the target system. The module checks for the correct kernel version and architecture, uploads and compiles (or drops a precompiled) exploit binary to a writable directory (default: /tmp), uploads a user-supplied payload (such as a shell or meterpreter), and executes the exploit to run the payload as root. The exploit is operational but may require multiple attempts due to heap spray reliability. The module is part of the Metasploit framework and is structured to clean up dropped files and directories after execution. No network endpoints are involved; the attack vector is purely local.Disclosed Mar 14, 2022 · Framework: metasploit · ruby · localWeaponizedCVE-2022-0995This repository contains a local privilege escalation exploit for CVE-2022-0995, a heap out-of-bounds write vulnerability in the Linux kernel's watch_queue subsystem. The exploit is implemented in C and consists of three main files: 'exploit.c' (main exploit logic), 'util.c', and 'util.h' (helper functions and structures). The Makefile is provided for building a statically linked binary. The exploit targets Ubuntu 21.10 with kernel 5.13.0-37 and works by spraying kernel heap objects, leaking the KASLR base, and constructing a ROP chain to escalate privileges. Upon successful exploitation, a root shell is spawned. The exploit requires local access to the vulnerable system and is not 100% reliable, as noted in the README. No network endpoints are involved; the attack vector is purely local. The code demonstrates advanced kernel exploitation techniques, including heap spraying, KASLR bypass, and ROP chain construction.Bonfee · Disclosed Mar 26, 2022 · c · makefile · localOperationalCVE-2022-0995This repository contains a working exploit for CVE-2022-0995, a local privilege escalation vulnerability in the Linux kernel (tested on version 5.13.18). The exploit is implemented in C (exploit.c) and is accompanied by a README.md with build instructions and references. The exploit works by abusing the watch_queue subsystem and message queue spraying to achieve a use-after-free condition, leak kernel heap and base addresses, and ultimately gain code execution in kernel context. The payload creates a setuid-root shell at /tmp/shell, which is then executed to provide the attacker with a root shell. The exploit is operational and requires local access to the target system. The main fingerprintable endpoints are the files /tmp/shell, /tmp/x, and /tmp/trigger, which are created and used during exploitation. The repository is structured simply, with the main exploit logic in exploit.c and documentation in README.md.1nzag · Disclosed Jan 3, 2024 · c · localOperationalPage_Jack_pwnThis repository is a standalone educational PageJack exploitation lab, not a framework module or detection script. Its 28 listed files comprise one C exploit, three Bash scripts, one Python utility, two GDB command files, an intentional kernel-vulnerability patch, documentation, checksums, a flag image, and saved debugging/exploitation evidence. The seven code-file count covers source and executable/debugger scripts; the kernel patch is counted separately as a patch artifact. The exploit submits four watch_queue notification filters through IOC_WATCH_QUEUE_SET_FILTER, with the final type set to 0x306. In the deliberately weakened kernel, __set_bit accesses type_filter + 0x60 with mask 0x40. Heap grooming aims to place a pipe_buffer page pointer at that location. Corrupting the pointer can make two pipes reference the same physical page without the correct reference accounting. Closing one pipe frees the page while the other retains access. Spraying 256 read-only /etc/passwd opens can reclaim that page for file objects; writing through the dangling pipe then changes f_mode, allowing a normally forbidden passwd write. The source defines a spray of 1,936 pipes. The final hardcoded account record sets the root password to Lotus. No ROP, reverse connection, external exfiltration, or runtime command-and-control endpoint is shown. Importantly, this is not evidence that unmodified Linux 6.5-rc1 is vulnerable to CVE-2022-0995. The included patch deliberately disables two unknown-type checks when CONFIG_PAGEJACK_LAB_VULN is enabled. The launchers also disable KASLR and page-allocation shuffling, so the results do not establish KASLR bypass or production-target reliability. Supplied records show both failed allocation layouts and successful guest root/flag verification, including an automated run succeeding on its second attempt; these are repository-provided observations, not independently reproduced results or statistical reliability measurements. build_debug_kernel.sh obtains a pinned upstream Linux revision and builds the patched kernel inside an Ubuntu Podman container. run_auto.sh and run_gdb.sh boot separate external initramfs images in a 512 MiB QEMU guest; the latter exposes a GDB listener on TCP port 1234 without an explicit loopback-only bind. pack_rootfs.py rebuilds newc CPIO archives and patches BusyBox permission bits. The remaining documentation and report/evidence files explain and record the exploitation chain. Large runtime artifacts and referenced kernel configuration files are not present in the supplied listing. The exploit source and lab document are partially truncated, limiting verification of omitted control flow. No original repository URL, repository revision, or archive size was supplied; empty strings and zero represent unavailable repository metadata.Calculusdetective · Disclosed Nov 18, 2026 · c · bash · localOperational
Exposure surface

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.

VendorProductType
Fedora ProjectFedoraoperating_system
LinuxLinux Kerneloperating_system
NetAppH300e Firmwareoperating_system
NetAppH300s Firmwareoperating_system
NetAppH410c Firmwareoperating_system
NetAppH410s Firmwareoperating_system
NetAppH500e Firmwareoperating_system
NetAppH500s Firmwareoperating_system
NetAppH610c Firmwareoperating_system
NetAppH610s Firmwareoperating_system
NetAppH615c Firmwareoperating_system
NetAppH700e Firmwareoperating_system
NetAppH700s Firmwareoperating_system
FAQ

Frequently asked questions

Is CVE-2022-0995 exploited in the wild?
Yes. As of Nov 25, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Aug 26, 2026.
Is there a public exploit for CVE-2022-0995?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2022-0995, the earliest disclosed Mar 14, 2022.
Is there a patch for CVE-2022-0995?
Apply the Linux distribution or product vendor's kernel security update addressing CVE-2022-0995, incorporating the upstream watch_queue correction. Reboot into the corrected kernel and verify that the running kernel includes the fix.
What products are affected by CVE-2022-0995?
Linux Kernel, Fedora Project Fedora, NetApp H300e Firmware, NetApp H300s Firmware, NetApp H410c Firmware, and 8 more.
How severe is CVE-2022-0995?
CVE-2022-0995 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 5.2% (93rd percentile) as of Nov 25, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence4Every report linking this CVE to a named adversary.
Associated malware6Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity28Community discussion across Reddit, Mastodon, and other social sources.