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

  • 摘要:Variant
  • 结构:Simple
  • 状态:Draft
  • 发布日期:2009-07-27
  • 更新日期:2025-12-11

名称

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

描述

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.

常见后果

范围:Integrity, Availability, Confidentiality

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

注释: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.

相关 CWE