Rapid7 Vulnerability & Exploit Database

Microsoft SRV2.SYS SMB2 Logoff Remote Kernel NULL Pointer Dereference

Back to Search

Microsoft SRV2.SYS SMB2 Logoff Remote Kernel NULL Pointer Dereference



This module triggers a NULL pointer dereference in the SRV2.SYS kernel driver when processing an SMB2 logoff request before a session has been correctly negotiated, resulting in a BSOD. Effecting Vista SP1/SP2 (And possibly Server 2008 SP1/SP2), the flaw was resolved with MS09-050.


  • sf <stephen_fewer@harmonysecurity.com>


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 auxiliary/dos/windows/smb/ms09_050_smb2_session_logoff
msf auxiliary(ms09_050_smb2_session_logoff) > show actions
msf auxiliary(ms09_050_smb2_session_logoff) > set ACTION < action-name >
msf auxiliary(ms09_050_smb2_session_logoff) > show options
    ...show and set options...
msf auxiliary(ms09_050_smb2_session_logoff) > run 

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