CVE-2026-49416 PUBLISHED

Integer overflow in vt(4) CONS_HISTORY ioctl

Assigner: freebsd
Reserved: 29.05.2026 Published: 27.06.2026 Updated: 27.06.2026

The CONS_HISTORY ioctl handler did not adequately validate the requested history size. A large value caused an integer overflow in the buffer size calculation, resulting in a heap allocation smaller than expected. Subsequent initialization of the buffer wrote beyond the end of the allocation.

An unprivileged local user with access to a vt(4) device can trigger an out-of-bounds write in the kernel, potentially escalating privileges.

Product Status

Vendor FreeBSD
Product FreeBSD
Versions Default: unknown
  • affected from 15.0-RELEASE to p10 (excl.)
  • affected from 14.4-RELEASE to p6 (excl.)
  • affected from 14.3-RELEASE to p15 (excl.)

Credits

  • Ed Maste finder

References

Problem Types

  • CWE-190: Integer Overflow or Wraparound CWE