Skip to content

Arbitrary Kernel Read in SbieDrv.sys API (API_SET_SECURE_PARAM)

Moderate
DavidXanatos published GHSA-3984-r877-q7xp May 22, 2025

Package

No package listed

Affected versions

>= 1.3.0

Patched versions

1.15.12

Description

Summary

API_SET_SECURE_PARAM fails to validate that a pointer passed is safe to read from.

Details

Api_SetSecureParam fails to sanitize incoming pointers, and implicitly trusts that the pointer the user has passed in is safe to read from. SetRegValue then reads an arbitrary address, which can be a kernel pointer, into a HKLM Security SBIE registry value. This can later be retrieved by API_GET_SECURE_PARAM.

This is very similar to the issue in API_GET_SECURE_PARAM.

        data_len = args->param_size.val;
        data = Mem_Alloc(Driver_Pool, data_len);
        memcpy(data, args->param_data.val, data_len);

The user controls param_data.val, and the data pointed to by this is memcopied into the registry hive.

This requires being called from a "signed" process, but this should be possible to bypass through process injection. I will look into this separately and e-mail you the results if I have time as this isn't really a security boundary but more of DRM protection protecting your registration scheme.

All incoming data needs to be validated.

PoC

Found via code review. Untested.

Impact

Arbitrary kernel read.

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

CVE ID

CVE-2025-46716

Weaknesses

No CWEs

Credits