{"exploit":{"id":"EDB-38274","name":"Microsoft Windows Kernel - Null Pointer Dereference with Window Station and Clipboard (MS15-061)","description":"Microsoft Windows Kernel - Null Pointer Dereference with Window Station and Clipboard (MS15-061)","cves":["CVE-2015-1721"],"author":"Nils Sommer","published":"2015-09-22","platform":"windows_x86","type":"dos","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/38274","path":"exploits/windows_x86/dos/38274.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-38274.txt","vulnerabilities":[{"id":"CVE-2015-1721","state":"PUBLISHED","title":null,"titleSource":null,"description":"The kernel-mode drivers in Microsoft Windows Server 2003 SP2 and R2 SP2, Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8, Windows 8.1, Windows Server 2012 Gold and R2, and Windows RT Gold and 8.1 allow local users to gain privileges or cause a denial of service (NULL pointer dereference and system crash) via a crafted application, aka \"Win32k Null Pointer Dereference Vulnerability.\"","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2015-1721","cvss":{"version":"2.0","baseScore":7.2,"severity":"high","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2015-1721"},"updatedAt":"2024-08-06T04:54:15.414Z","retrievedAt":"2026-11-27T17:11:49.293Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-38274.png?v=2","url":"https://exploitbin.com/exploits/EDB-38274","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-38274/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-38274/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"Source: https://web.archive.org/web/2015/https://code.google.com/p/google-security-research/issues/detail?id=294\n\nPlatform: Win7 32-bit.\ntrigger.cpp should fire the issue, with a caveat\n- PoC might NOT work if compiled as a debug build.\n\nwindbg.txt is a sample crash log.\n\nAnalysis from Nils:\n\n---\nplease find attached a C trigger, windbg output and the minimised testcase of a null pointer issue (exploitable on Win 7 32-bit). The trigger also demonstrates that the null page can be mapped in user mode and accessed from kernel mode.\n\nQuick analysis:\n\nThe trigger creates a new window station which is freed during the process clean up. Through the clipboard operations the window's last reference is hold by the clipboard which is freed during the clean up of the window station object. This will also result in destroying the window object at a time where _gptiCurrent (threadinfo) is already set to null. This is used in xxxDestroyWindow in multiple locations. Depending on the window type it is potentially possible to trigger different kinds of crashes, this one demonstrates a write to a chosen memory location:\n\nwin32k!HMChangeOwnerThread+0x40:\n96979765 ff412c          inc     dword ptr [ecx+2Ch]  ds:0023:bebebeea=????????\n---\n\nProof of Concept:\nhttps://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/38274.zip","sha256":"08b85a55ad6c40f90aefc7ac5206341d81c14830ae20169ecdfda9e42d9b6659","bytes":1346,"fetchedAt":"2026-11-27T17:11:47.525Z","encoding":"utf-8 (display only; download retains original bytes)"}