Public bug reported: Net::IDN::Punycode versions before 2.301 for Perl allow a heap buffer overflow via unchecked writes past the output buffer in encode_punycode. The XS backend builds the encoded label in the string buffer of the scalar it returns, sized from the input length. The loop that emits the digits of each code point checks for room before every write, but the write of the last digit of each round and the write of the terminating NUL do not, so an input whose encoded form fills the buffer writes past its end. Only the XS backend is affected. Encoding an attacker-supplied string corrupts the heap.
References: https://www.cve.org/CVERecord?id=CVE-2016-15059 https://lists.security.metacpan.org/cve-announce/msg/43753031/ https://rt.cpan.org/Ticket/Display.html?id=118924 https://github.com/robrwo/Net-IDN-Encode/commit/9a3ba07f15d22c0347eefee9625b012cbc803657.patch https://metacpan.org/release/CFAERBER/Net-IDN-Encode-2.301/changes Bugs: ** Affects: libnet-idn-encode-perl in ESM Apps Legacy Security Importance: Medium Status: New ** Affects: libnet-idn-encode-perl in ESM Apps Security Importance: Medium Status: New ** Affects: libnet-idn-encode-perl (Ubuntu) Importance: Medium Status: Invalid ** Affects: libnet-idn-encode-perl in ESM Apps Legacy Security (Ubuntu Xenial) Importance: Medium Status: New ** Affects: libnet-idn-encode-perl in ESM Apps Security (Ubuntu Bionic) Importance: Medium Status: Unknown ** Affects: libnet-idn-encode-perl in ESM Apps Security (Ubuntu Focal) Importance: Medium Status: Unknown ** Affects: libnet-idn-encode-perl (Ubuntu Jammy) Importance: Medium Status: Invalid ** Affects: libnet-idn-encode-perl in ESM Apps Security (Ubuntu Jammy) Importance: Medium Status: Invalid ** Affects: libnet-idn-encode-perl (Ubuntu Noble) Importance: Medium Status: Invalid ** Affects: libnet-idn-encode-perl in ESM Apps Security (Ubuntu Noble) Importance: Medium Status: Invalid ** Affects: libnet-idn-encode-perl (Ubuntu Resolute) Importance: Medium Status: Invalid ** Affects: libnet-idn-encode-perl in ESM Apps Security (Ubuntu Resolute) Importance: Medium Status: Invalid ** Affects: libnet-idn-encode-perl (Ubuntu Stonking) Importance: Medium Status: Invalid ** Affects: libnet-idn-encode-perl (Ubuntu Tenacious) Importance: Medium Status: Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2184130 Title: CVE-2016-15059 To manage notifications about this bug go to: https://bugs.launchpad.net/~ubuntu-esm/+archive/ubuntu/esm-apps-legacy-security/+source/libnet-idn-encode-perl/+bug/2184130/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
