logo

CWE-781 - Improper Address Validation in IOCTL with METHOD_NEITHER I/O Control Code

CWE-781

  • Abstraction:
  • Variant
  • Structure:
  • Simple
  • Status:
  • Draft
Weakness Name

Improper Address Validation in IOCTL with METHOD_NEITHER I/O Control Code

Description

The product defines an IOCTL that uses METHOD_NEITHER for I/O, but it does not validate or incorrectly validates the addresses that are provided.

When an IOCTL uses the METHOD_NEITHER option for I/O control, it is the responsibility of the IOCTL to validate the addresses that have been supplied to it. If validation is missing or incorrect, attackers can supply arbitrary memory addresses, leading to code execution or a denial of service.

Common Consequences

Scope: Integrity, Availability, Confidentiality

Impact: Modify Memory, Read Memory, Execute Unauthorized Code or Commands, DoS: Crash, Exit, or Restart

Notes: An attacker may be able to access memory that belongs to another process or user. If the attacker can control the contents that the IOCTL writes, it may lead to code execution at high privilege levels. At the least, a crash can occur.

Related Weaknesses
  • Release Date:
  • 2009-07-27
  • Latest Modification Date:
  • 2023-06-29

Free security scan for your website