Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
dbutil-2-3-CVE-2021-21551-Documentation — dbutil_2_3.sys is a dell driver that existed from 2009. It contains a servre vulnerability, since it takes user input as parameters for a memove call later in the driver. The vulnerability was waiting to be exploited for 11 years. | Kitploit
工具/GitHubGitHub/00xauto/dbutil-2-3-cve-2021-21551-documentation
Privilege EscalationVulnerability AnalysisExploitationReverse EngineeringDebuggersBinary AnalysisPapers & ResearchLearning & EducationBinary Exploitation
GitHub00xauto/dbutil-2-3-cve-2021-21551-documentation

dbutil-2-3-CVE-2021-21551-Documentation

52026年12月3日尚未审核
分享

dbutil_2_3.sys is a dell driver that existed from 2009. It contains a servre vulnerability, since it takes user input as parameters for a memove call later in the driver. The vulnerability was waiting to be exploited for 11 years.

查看仓库
内容在请求的语言中不可用。显示英文版本。

CVE-2021-21551 : Dell's 11 year old driver

Before we start :

  • In this blog specifically, I will be just trying to do the "data-only" attack, to steal the system token. I will not be creating ROPs or the PTE method, though, I will indeed do them in the next blog and talk a little about them.
  • Hard coded offsets, please make sure you find the offset of your own machine. I will try to provide help with that
  • People before me wrote this, I apologize if I don't mention them here

0x00. Background

dbutil_2_3.sys is a dell driver that existed from 2009. It contains a servre vulnerability, since it takes user input as parameters for a memmove call later in the driver. The vulnerability was waiting to be exploited for 11 years (that's if it wasn't exploited in the wild).

I used connor's blog here, He also did it for crowdstrike here. So I would obviously recommend reading his blogs too, since he covered alot of stuff compared to this one. I will be covering PTE bit flipping later and explain more about why it used to work. Also covering HCVI, and more stuff to come.

For now, as I mentioned above, the driver just takes user input and takes them as parameters into the the call to memmove, leading to a BSOD if you didn't manage correctly. The main obstacles that you might face are kCFG and SMEP in this blog.

Let's start.

0x01. Driver Analysis

I will be providing the driver in the repo just incase you would like to follow me to understand more (it's always good to do hands on). Feel free to do whatever you want.

opening the driver in IDA, we are welcomed to our beloved interface.

image

Scrolling down in the "DriverEntry" function, we will see that it calls another function below :

image

Double clicking on it, we see the following function :

image

I will be calling this function as "FxDriverEntry", and it's the function that runs right after the driver is called/used. "DriverEntry" is developer supplied, it loads before FxDriverEntry as we can see in this driver.

Looking at the function we are in now, we can find the driver name, which we can use to create a handle to the driver. And this is the first step when it comes to reverse engineering a driver for exploitation or vulnerability research.

Here it is incase it's not clear :

image

For our next step, we need to find the IOCTL (Input/output control) function, which is the function responsible for managing input and output requests which we can use to send our buffer. Since the driver is not even that long, we could easily find it. Which makes life much easier for us.

After some looking around, we see that the function called "sub_11170", is the function responsible for the IOCTL codes. Let's rename it to DispatchIo for better understanding later.

Looking at the function, we see alot of branches which indicates that it is probably alot of if/switch statements indicating that it is the IOCTL function, looking deeper, we see that the "codes" are 4 bytes, which confirms that this is the IOCTL function :

image

Looking more into the IOCTLs (they are 17ish IOCTL codes, I won't go through everyone).

The first IOCTL that caught my attention is IOCTL code : 0x9B0C1EC8

image

Let's now go through the conditions to see how it takes the input from the IOCTL.

The jump under our IOCTL takes us to the next instruction (since our IOCTL will equal the value in eax, the return value will be zero, hence the driver will take the jump) :

image

We will see later what "edx" is, but as we know from our logic gates, XOR zeros if inputs are the same, so (1 XOR 1) or (0 XOR 0) returns 0, so this zeros our edx.

it jumps directly to the next block without any conditions and it takes us to a the interesting block. It moves the value inside "rdi" into "rcx" which we will see what they are later. Then, the next instruction is a call instruction to another function :

image

Double clicking on the function being called, we see that later on, it calls memmove, this may indicate that we control what goes into the memmove method :

image

Now that we have identified the vulnerability, which is a probably just a write primitve, we need to think about how the memmove takes input.

Looking at any resource explaining memmove, we see that it takes 3 parameters (you can take a look at this here) :

image

void* memmove( void* dest, const void* src, size_t count );
  • The first parameter is the destination address, in other words, where do we want our buffer (if we control it) exist in memory
  • The second parameter is the source, where it comes from. Let's say you have a token in a variable called "adminToken", we will take the address of this function and put it in the destination parameter (which is also an address).
  • The size is just the number of bytes to copy.

Now, back to our driver, if we really struggle to read the assembly code (which you should learn to be really efficent with), you could press "TAB" and then wait for the decompilation to take place as shown below :

image

If we happen to control parameters of memmove (being rdx, rcx or eax), we can from there pivot to privilege escalation.

0x02. Hunting for Write

We need to figure out what we control in these parameters, and we can do that from windbg (because I am lazy).

From here, let's just send random buffer to the driver and see what parameters we control.

I will be using 2 main windows API functions, DeviceIoControl and CreateFileA.

Here how it will look like :

#include <windows.h>
#include <psapi.h>
#include <ioapiset.h>
#include <stdio.h>
#include <fileapi.h>

#define IOCTL_CODE 0x9B0C1EC8

int main(){
    HANDLE hDevice = CreateFileA(
        "\\\\.\\DBUtil_2_3", 
        GENERIC_READ | GENERIC_WRITE,
        0,
        NULL,
        0x3,
        FILE_ATTRIBUTE_NORMAL,
        NULL
    );
    DWORD buf = 0xdeadbeefdaedcafe;
 
    DWORD byte = 0;
    BOOL hResult = DeviceIoControl(
        hDevice,
        IOCTL_CODE,
        &buf,
        0x18,
        &buf,
        0x18,
        &byte,
        NULL
    );
}
下载工具

相关工具

  • PEASS-ng

    PEASS - 权限提升 Awesome 脚本套件(带颜色)

  • PrivescCheck

    Windows 权限提升枚举脚本

  • LinEnum

    脚本化的本地 Linux 信息收集与权限提升检查

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    Callisto

    jetp1ane/callisto

    自动化二进制漏洞分析工具,通过Ghidra反编译可执行文件,使用Semgrep扫描伪C代码,并利用GPT-3.5-Turbo验证发现以减少误报。

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    针对 CVE-2026-43499 的一键式 Android 内核漏洞利用应用,通过内核模块加载实现权限提升,并提供偏移提取与设备端分析工具。

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher 平台,可部署伪基站 GSM 小区以拦截短信、注入消息并追踪移动设备

    721
  • 4

    opencti

    opencti-platform/opencti

    开放式网络威胁情报平台

    535
  • 5

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    424
  • 6

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    419

探索所有工具

浏览我们的工具集合

查看所有工具 →