Skip to content
Info disclosure Advisory Intermediate CVE-2018-3970

Sophos HitmanPro.Alert hmpalert 0x222000 kernel memory disclosure vulnerability

The 0x222000 IOCTL handler in the hmpalert driver fails to initialise part of a 16-byte output buffer, so any local user can send a crafted request and receive five bytes of uninitialised kernel memory. This could leak sensitive kernel data.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

Medium 4.0 View original

An exploitable memory disclosure vulnerability exists in the 0x222000 IOCTL handler functionality of Sophos HitmanPro.Alert 3.7.6.744.

Marcin 'Icewall' Noga, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The driver does not initialise all bytes of the output buffer before returning it to user mode, and it also fails to validate the input buffer size.

Impact

A local attacker could disclose five bytes of kernel memory per request, potentially revealing sensitive information.

What the attacker needed

Local access to the system; ability to open the hmpalert device

The fix

The vendor patched the vulnerability.

How it was found

  1. Open a handle to the hmpalert device.
  2. Send an IOCTL request with control code 0x222000 and an empty input buffer, requesting 16 bytes of output.
  3. Read the returned buffer; bytes at offsets 2 through 7 contain uninitialised kernel memory.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A driver is a low-level program that runs with high privileges. It has a communication channel that any user on the machine can use. When asked for information, the driver fills a small buffer but forgets to set every byte, so some bytes still contain whatever was in memory before. Those leftover bytes are sent back to the user, revealing private kernel data.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Marcin 'Icewall' Noga

View all

146 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.