HomeFreeBSD

- Prevent buffer overflow in IPFilter's load_http function used to load
rS193043Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

  • Prevent buffer overflow in IPFilter's load_http function used to load ipfilter tables via http by the user-level ippool utility. Previously the 1024-byte buffer used to store a http request coudld easily overflow if the length of the hostname part of the url passes exceeded 496 bytes. [1]
  • Use snprintf to prevent possieble buffer overflows in future. [2]
  • Do not try to close the descriptor twice on failure. [2]

Reported by: Maksymilian Arciemowicz <cxib@securityreason.com> [1]
Obtained from: NetBSD CVS [2]
MFC after: 2 weeks

Details

Provenance
stasAuthored on
Parents
rS193042: Free device strings.
Branches
Unknown
Tags
Unknown

Event Timeline