Rapid7 Vulnerability & Exploit Database

Watch Queue Out of Bounds Write

Back to Search

Watch Queue Out of Bounds Write

Disclosed
03/14/2022
Created
04/21/2022

Description

This module exploits a vulnerability in the Linux Kernel's watch_queue event notification system. It relies on a heap out-of-bounds write in kernel memory. The exploit may fail on the first attempt so multiple attempts may be needed. Note that the exploit can potentially cause a denial of service if multiple failed attemps occur, however this is unlikely.

Author(s)

  • Jann Horn
  • bonfee
  • bwatters-r7

Platform

Linux

Architectures

x64

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/local/cve_2022_0995_watch_queue
msf exploit(cve_2022_0995_watch_queue) > show targets
    ...targets...
msf exploit(cve_2022_0995_watch_queue) > set TARGET < target-id >
msf exploit(cve_2022_0995_watch_queue) > show options
    ...show and set options...
msf exploit(cve_2022_0995_watch_queue) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;