packages/lang/perl
Jo-Philipp Wich 0d18627cd2 perl: securely handle duplicate environment variables [CVE-2016-2381]
Stephane Chazelas discovered a bug in the environment handling in Perl.

Perl provides a Perl-space hash variable, %ENV, in which environment
variables can be looked up.  If a variable appears twice in envp, only
the last value would appear in %ENV, but getenv would return the first.
Perl's taint security mechanism would be applied to the value in %ENV,
but not to the other rest of the environment.  This could result in an
ambiguous environment causing environment variables to be propagated to
subprocesses, despite the protections supposedly offered by taint
checking.

With this update Perl changes the behavior to match the following:

 a) %ENV is populated with the first environment variable, as getenv
    would return.
 b) Duplicate environment entries are removed.

References:

 * http://perl5.git.perl.org/perl.git/commit/ae37b791a73a9e78dedb89fb2429d2628cf58076
 * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-2381

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-03-01 17:26:51 +01:00
..
files perl: Update to 5.22.1 2015-12-21 17:53:02 +01:00
patches perl: securely handle duplicate environment variables [CVE-2016-2381] 2016-03-01 17:26:51 +01:00
Config.in perl: Enable threading support by default for all libc implementations 2015-06-18 23:58:45 +02:00
Makefile perl: securely handle duplicate environment variables [CVE-2016-2381] 2016-03-01 17:26:51 +01:00
perlbase.mk perl: Invert perlbase-essential/perlbase-config circular dependency solution 2015-09-25 10:59:15 +02:00
perlmod.mk treewide: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST), sync with changes in trunk 2016-01-20 21:56:03 +01:00
README.patches perl: Reorganize patches 2015-09-25 11:50:52 +02:00

The patches in this package are loosely sorted into the following categories:

0xx - Bugfixes
1xx - Cross-compile fixes
3xx - Workarounds
7xx - Testsuite fixes

Feel free to add another one if your new patch doesn't seem to fit into an
existing category.